https://github.com/quickblox/sample-powerbot-python-rpi
QuickBlox PowerBot
https://github.com/quickblox/sample-powerbot-python-rpi
Last synced: 9 months ago
JSON representation
QuickBlox PowerBot
- Host: GitHub
- URL: https://github.com/quickblox/sample-powerbot-python-rpi
- Owner: QuickBlox
- Created: 2014-09-21T06:20:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-06T06:50:45.000Z (over 11 years ago)
- Last Synced: 2025-07-16T02:59:40.760Z (11 months ago)
- Language: Python
- Size: 223 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sample-powerbot-python-rpi
==========================
QuickBlox PowerBot.
Allows to control power sockets via chat. In current implementation Energenie RF controlled power sockets are used along with Q-municate open source IM / chat app by QuickBlox, this chat bot running on Raspberry Pi model B.
Usage
powerbot.py -d -r <QuickBlox MUC room to join>
Example: powerbot.py -d -r 14628_541f4ab3535c124866028b17@muc.chat.quickblox.com
Dependencies
You may need to run these under root to install the missing packages on your Pi:
apt-get install python-dev
pip install sleekxmpp
pip install dnspython
pip install pyasn1 pyasn1-modules
apt-get install python-rpi.gpio
Notes
For room auto-join to work, make the script executable ("chmod +x powerbot.py").