Tweet bot for MicroPython v1.8.4 (ESP8266)
This program is a Tweet bot (Twitter status updater) for MicroPython ESP8266. Confirmed working with MicroPython 1.8.4.
One problem is, this program consumes a lot of heap memory, so it will not run if you add more functionality.
To run, we need a modified hmac.py which is compatible with SHA1. We can obtain the code below even though it is not merged to the main stream, yet. (Thanks to the patch author.)
https://github.com/micropython/micropython-lib/pull/82/files
In addition, you need some authentication keys and secrets for Twitter. You can obtain them at https://dev.twitter.com/oauth/overview/application-owner-access-tokens . You can apply them to the variables in the tweet.py as following.
CK = '' # CONSUMER_KEY
CS = '' # CONSUMER_SECRET
AT = '' # ACCESS_KEY
AS = '' # ACCESS_SECRET
Any question, please send email to [email protected] though I may not have time to answer clearly.
Thanks you.
Yokoyama, Atsushi
Firmlogics (http://flogics.com)