solar_edge/README.md

18 lines
749 B
Markdown
Raw Normal View History

2019-04-15 16:15:57 -06:00
# Solar Edge Status Updater
When placed in a cron job this uppdater will make an https call to a json api to retrieve the co2 savings and equivenant trees planted and overlay those numbers on a graphic and upload them to the website.
# Dependancies
* Python 3 and contents of `requirements.txt`.
* The font `Biko_Regular.otf`.
* A `.png` graphic to write text on.
* The package direnv and the follwing changes to the user account:
* [bash.rc] (https://github.com/direnv/direnv/wiki/Python#bash)
* [venv] (https://github.com/direnv/direnv/wiki/Python#venv-stdlib-module)
2019-04-15 16:15:57 -06:00
# Bulid Instructions
2019-04-15 16:19:29 -06:00
`pip install -r requirements.txt`
2019-04-15 16:15:57 -06:00
user crontab
2019-04-15 16:19:29 -06:00
`05 * * * * cd ~/.venv/solar_edge && direnv exec . python solar_edge.py > /dev/null 2>&1`