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.)
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_SECRETAny question, please send email to [email protected] though I may not have time to answer clearly.
Thanks you.
Yokoyama, Atsushi