Update README with program invocation fixes
authorAlexander Vasarab <alexander@wylark.com>
Wed, 17 Jun 2020 19:59:26 +0000 (12:59 -0700)
committerAlexander Vasarab <alexander@wylark.com>
Wed, 17 Jun 2020 20:12:56 +0000 (13:12 -0700)
README

diff --git a/README b/README
index 8e37c2ed89b853ca9403ee5f8f00c5cebd5815b5..39ce7bc6283bbe59e0ca21a09946555ad4d5753a 100644 (file)
--- 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 <path/to/config-file.ini>
 
 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
 ==================