From 84679fa77465fae48fc5faccfd7484cbd54f9ab2 Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Mon, 15 Apr 2019 15:47:27 -0700 Subject: [PATCH] Updated README.md and added sample .env file --- README.md | 11 +++++++---- env.sample | 7 +++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 env.sample diff --git a/README.md b/README.md index 5fb4a1a..cc80bca 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,16 @@ 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. +* 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) # Bulid Instructions `pip install -r requirements.txt` -crontab +user crontab `05 * * * * cd ~/.venv/solar_edge && direnv exec . python solar_edge.py > /dev/null 2>&1` diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..8af3e00 --- /dev/null +++ b/env.sample @@ -0,0 +1,7 @@ +SSH_HOST= +SSH_USER= +SSH_FOLDER= +URL= +INFILE= +OUTFILE= +FONT_FACE=