Raspberry Pi IoT Project: Temperature Part 3 – Tweet Bot (Raspberry Pi / Python)

geektechstuff tweet bot now with temperature readings

With the Raspberry Pi set up (see parts 1 and 2) it is time to expand the project. First up is bringing back the geektechstuff_automated twitter bot to get it to regularly tweet the room temperature.

temperature_tweet_bot_geektechstuff
geektechstuff tweet bot now with temperature readings

Thankfully my previous experience with Twitter let me reuse some of my old coding:

temperature_tweet_geektechstuff
Full code at https://github.com/geektechdude/twitter_sensor

And using a crontab I can leave the Raspberry Pi to take a temperature reading every 30 mins and post the details to Twitter.

twtter_temperature_cron_geektechstuff
Setting up a cron job to run every 30 minutes

The full code for my temperature tweet bot can be found at https://github.com/geektechdude/twitter_sensor. Twitter API keys are needed for this project, I am currently storing my in a Python file called auth which contains values for:

consumer_key
consumer_secret
access_token
access_token_secret

2 thoughts on “Raspberry Pi IoT Project: Temperature Part 3 – Tweet Bot (Raspberry Pi / Python)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.