Personal tools

Difference between revisions of "Template:PVLngScript"

From PhotoVoltaic Logger new generation

Jump to: navigation, search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
{{{global_1_desc}}}<br />{{#ifeq: {{{global_1_required}}} | x | ''required'' | ''optional'' }}
 
{{{global_1_desc}}}<br />{{#ifeq: {{{global_1_required}}} | x | ''required'' | ''optional'' }}
 
  {{{global_1_var}}}
 
  {{{global_1_var}}}
}}{{#if: {{{global_2|}}} |
+
}}
 +
{{#if: {{{global_2|}}} |
 
=== {{{global_2}}} ===
 
=== {{{global_2}}} ===
 
{{{global_2_desc}}}<br />{{#ifeq: {{{global_2_required}}} | x | ''required'' | ''optional'' }}
 
{{{global_2_desc}}}<br />{{#ifeq: {{{global_2_required}}} | x | ''required'' | ''optional'' }}
 
  {{{global_2_var}}}
 
  {{{global_2_var}}}
}}{{#if: {{{global_3|}}} |
+
}}
 +
{{#if: {{{global_3|}}} |
 
=== {{{global_3}}} ===
 
=== {{{global_3}}} ===
 
{{{global_3_desc}}}<br />{{#ifeq: {{{global_3_required}}} | x | ''required'' | ''optional'' }}
 
{{{global_3_desc}}}<br />{{#ifeq: {{{global_3_required}}} | x | ''required'' | ''optional'' }}
 
  {{{global_3_var}}}
 
  {{{global_3_var}}}
 
}}
 
}}
 +
{{#if: {{{sections|}}} |
 
=== Count of {{{sections}}} ===
 
=== Count of {{{sections}}} ===
 
Count of following sections.<br />''required''
 
Count of following sections.<br />''required''
Line 40: Line 43:
 
{{{section_3_desc}}}<br />{{#ifeq: {{{section_3_required}}} | x | ''required'' | ''optional'' }}
 
{{{section_3_desc}}}<br />{{#ifeq: {{{section_3_required}}} | x | ''required'' | ''optional'' }}
 
  {{{section_3_var}}}
 
  {{{section_3_var}}}
 +
}}
 
}}
 
}}
 
== Test ==
 
== Test ==
Line 45: 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
{{{testoutput}}}
+
{{{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

Latest revision as of 13:32, 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