From: Alexander Vasarab Date: Wed, 17 Jun 2020 19:59:26 +0000 (-0700) Subject: Update README with program invocation fixes X-Git-Tag: v1.0.0^2~5 X-Git-Url: https://wylark.com/src/infoex-autowx.git/commitdiff_plain/2324a120893dec7b946065c4a46680fa0ba0b8c9?hp=34a5aa872ba8f4fce7ba5ea6a27ccb2721d860b4 Update README with program invocation fixes --- diff --git a/README b/README index 8e37c2e..39ce7bc 100644 --- a/README +++ b/README @@ -35,15 +35,17 @@ This design allows you to run a separate program instance for each NRCS weather station from which you'd like to automate the importation of data into your InfoEx subscriber account. -To run ad-hoc: +To run ad-hoc (be sure to activate the virtual environment, as detailed in the +Installation section): ./infoex-autowx.py --config Here's an example of a crontab(5) with two SNOTEL sites, each of which -will run once per hour: +will run once per hour (note that this will activate the virtual environment +created earlier): -2 * * * * /home/alv/infoex-autowx/infoex-autowx.py --config laurance-lake.ini -4 * * * * /home/alv/infoex-autowx/infoex-autowx.py --config mud-ridge.ini +2 * * * * /usr/bin/env bash -c 'cd /home/user/infoex-autowx && source env/bin/activate && ./infoex-autowx.py --config laurance-lake.ini' +4 * * * * /usr/bin/env bash -c 'cd /home/user/infoex-autowx && source env/bin/activate && ./infoex-autowx.py --config mud-ridge.ini' Configuration File ==================