A python daemon that uses the Twitter Streaming API to access tweets and republishes them to an MQTT topic.
The daemon uses the Mosquitto Python client - http://mosquitto.org/
Update settings.py with:
- Your twitter username/password
- The twitter streaming API url to use (see https://dev.twitter.com/docs/streaming-api)
- The MQTT broker details and topic to publish to
To start the daemon, run:
$ python twitter-to-mqtt.py
It can be stopped with Ctrl^C, but thanks to the way pycurl works, it will not exit until the next tweet is received. Alternatively, kill the process.
- Handle connection lost from either connection