Update the solar edge environmental information graphic on the website
			
		
		| .envrc | ||
| .gitignore | ||
| Biko_Regular.otf | ||
| env.sample | ||
| environmental_benefits_blank.png | ||
| README.md | ||
| requirements.txt | ||
| solar_edge.py | ||
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 .pnggraphic to write text on.
- The package direnv and the follwing changes to the user account:
Bulid Instructions
pip install -r requirements.txt
user crontab
05   *     *   *  *    cd ~/.venv/solar_edge && direnv exec . python solar_edge.py > /dev/null 2>&1