Difference between revisions of "S0 reader script"
From PhotoVoltaic Logger new generation
m |
m |
||
(3 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 === | === Configuration === | ||
− | Please refer to <tt>S0.conf | + | Please refer to <tt>dist/S0.conf</tt> to configure your environment regarding interfaces and channels. |
− | # cp S0.conf. | + | # cp dist/S0.conf . |
=== Test === | === Test === | ||
Line 10: | Line 15: | ||
To test your configuration, run | To test your configuration, run | ||
− | # ./S0.sh -tv | + | # ./S0.sh -tv |
=== Run with cron === | === Run with cron === | ||
Line 17: | Line 22: | ||
### run S0 reader each minute | ### run S0 reader each minute | ||
− | * * * * * /path/to/PVLng- | + | * * * * * /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