Personal tools

Difference between revisions of "Template:PVLngScript"

From PhotoVoltaic Logger new generation

Jump to: navigation, search
m
m
Line 49: Line 49:
 
Run the script with your config in test & debug mode (-tv)
 
Run the script with your config in test & debug mode (-tv)
 
  $ ./{{{script}}} -tv your_config.conf
 
  $ ./{{{script}}} -tv your_config.conf
{{{testoutput}}}
+
{{{testoutput}}}
 
If you get no error messages here, run live in verbose mode (-v). The output should look like this with HTTP code 201 meaning data added.
 
If you get no error messages here, run live in verbose mode (-v). The output should look like this with HTTP code 201 meaning data added.
  
 
  $ ./{{{script}}} -v your_config.conf
 
  $ ./{{{script}}} -v your_config.conf
{{{liveoutput}}}
+
{{{liveoutput}}}
  
 
== Cron ==
 
== Cron ==
 
You can run the script around the clock with a cron tab entry like this:
 
You can run the script around the clock with a cron tab entry like this:
 
  * * * * * /path/to/PVLng-scripts/{{{script}}} your_config.conf
 
  * * * * * /path/to/PVLng-scripts/{{{script}}} your_config.conf

Revision as of 13:26, 9 September 2014

{{{description}}}

Location

{{{script}}}

Configuration example

{{{config_dist}}}

Copy this file and edit for your needs.



Test

Run the script with your config in test & debug mode (-tv)

$ ./{{{script}}} -tv your_config.conf

{{{testoutput}}} If you get no error messages here, run live in verbose mode (-v). The output should look like this with HTTP code 201 meaning data added.

$ ./{{{script}}} -v your_config.conf

{{{liveoutput}}}

Cron

You can run the script around the clock with a cron tab entry like this:

* * * * * /path/to/PVLng-scripts/{{{script}}} your_config.conf