Skip to content

Sars47/energy-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hourly Energy Twitter Bot

The code repository for this energy twitter bot. The bot exists to help illustrate that sustainable energy production in the United States is a complex and ever-present problem.

Context

This script runs at the 5 minute mark every hour according to a cron job scheduled on a raspberry pi. For testing purposes, I recommend printing out generated tweet strings rather than tweeting them to any particular account. You can do this by changing which line is commented out / uncommented out in the app.py script in the update_status() function.

Runnning

To run the code, you'll need to register your own developer accounts with EIA and Twitter and put their API tokens into a JSON file according to the specifications of the getters at the top of app.py. I am unsure if a particular version of python is needed - I have been using 3.7.3.

Built using

Got an idea for improvement?

Contact the maintainers or open an issue/pull request.

About

A bot to tweet out data from the US Energy grid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages