Personal tools

Difference between revisions of "S0 reader script"

From PhotoVoltaic Logger new generation

Jump to: navigation, search
m
m
 
Line 1: Line 1:
 
{{TOCright}}[[Category:Scripts]]
 
{{TOCright}}[[Category:Scripts]]
The script uses outputs of the [[S0 reader]] daemon.
+
 
 +
# 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.dist</tt> to configure your environment regarding interfaces and channels.
+
Please refer to <tt>dist/S0.conf</tt> to configure your environment regarding interfaces and channels.
  
  # cp S0.conf.dist S0.conf
+
  # cp dist/S0.conf .
  
 
=== Test ===
 
=== Test ===
Line 12: Line 15:
 
To test your configuration, run
 
To test your configuration, run
  
  # ./S0.sh -tv S0.conf
+
  # ./S0.sh -tv
  
 
=== Run with cron ===
 
=== Run with cron ===
Line 19: Line 22:
  
 
  ### run S0 reader each minute
 
  ### run S0 reader each minute
  * * * * * /path/to/PVLng-sctipts/S0/S0.sh S0.conf
+
  * * * * * /path/to/PVLng-scripts/S0-serial/S0.sh

Latest revision as of 14:42, 23 October 2016

# 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