Difference between revisions of "S0 reader script"
From PhotoVoltaic Logger new generation
|  (Created page with "{{TOCright}}Category:Scripts") | m | ||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| {{TOCright}}[[Category:Scripts]] | {{TOCright}}[[Category:Scripts]] | ||
| + | |||
| + |  # cd /path/to/PVLng-scripts/S0-serial/ | ||
| + | |||
| + | The script uses outputs of the [[S0 serial reader]] daemon. | ||
| + | |||
| + | === Configuration === | ||
| + | |||
| + | Please refer to <tt>dist/S0.conf</tt> to configure your environment regarding interfaces and channels. | ||
| + | |||
| + |  # cp dist/S0.conf . | ||
| + | |||
| + | === Test === | ||
| + | |||
| + | To test your configuration, run | ||
| + | |||
| + |  # ./S0.sh -tv | ||
| + | |||
| + | === Run with cron === | ||
| + | |||
| + | Edit your crontab | ||
| + | |||
| + |  ### run S0 reader each minute | ||
| + |  * * * * * /path/to/PVLng-scripts/S0-serial/S0.sh | ||
Latest revision as of 14:42, 23 October 2016
Contents
# cd /path/to/PVLng-scripts/S0-serial/
The script uses outputs of the S0 serial reader daemon.
Configuration
Please refer to dist/S0.conf to configure your environment regarding interfaces and channels.
# cp dist/S0.conf .
Test
To test your configuration, run
# ./S0.sh -tv
Run with cron
Edit your crontab
### run S0 reader each minute * * * * * /path/to/PVLng-scripts/S0-serial/S0.sh
