Python Gtalk (XMPP) Bot for Raspberry Pi
Python
Latest commit 641d159 Jul 10, 2015 @mitchtech Merge pull request #1 from UlisesGascon/master
Gtalk and Hangouts compatibility; TLS bug fix; README
Permalink
Failed to load latest commit information.
COPYING testing gpio integration Jun 28, 2012
PyGtalkRobot.py Bug solved Jan 23, 2015
README.md Update README.md Jan 26, 2015
README_es.md Create README_es.md Jan 26, 2015
raspiBot.py Update raspiBot.py Jan 25, 2015

README.md

What is it?

Spanish version

This script will allow you to communicate directly with your Raspberry Pi using Gtalk / Google Hangouts.

You can run it in any device that supports google hangouts

Check the video

How can I install it?

1. Install Python 2.7

sudo apt-get install python-pip git-core python2.7-dev

2. Update easy_install

sudo easy_install -U distribute

3. Install GPIO, xmpppy and pydns modules.

sudo pip install RPi.GPIO xmpppy pydns

4. Clone this repository.

git clone https://github.com/UlisesGascon/raspi_gtalk_robot.git

5 Enter in the folder.

cd raspi_gtalk_robot

6. Edit raspiBot.py.

sudo nano raspiBot.py

7. Search for (BOT_GTALK_USER, BOT_GTALK_PASS, and BOT_ADMIN) in lines 31-33. Edit them and save all the changes.

raspi_bot_setup

8. Run the script.

sudo python ./raspiBot.py

Main commands:

As mitchtech said in this blog entry:

[pinon|pon|on|high] [pin] : turns on the specified GPIO pin
[pinoff|poff|off|low] [pin] : turns off the specified GPIO pin
[write|w] [pin] [state] : writes specified state to the specified GPIO pin
[read|r] [pin]: reads the value of the specified GPIO pin
[available|online|busy|dnd|away|idle|out|xa] [arg1] : set gtalk state and status message to specified argument
[shell|bash] [arg1] : executes the specified shell command argument after ‘shell’ or ‘bash’

Additional resources