Difference between revisions of "Template:PVLngScript"
From PhotoVoltaic Logger new generation
m |
m |
||
Line 30: | Line 30: | ||
{{{section_1_desc}}}<br />{{#ifeq: {{{section_1_required}}} | x | ''required'' | ''optional'' }} | {{{section_1_desc}}}<br />{{#ifeq: {{{section_1_required}}} | x | ''required'' | ''optional'' }} | ||
{{{section_1_var}}} | {{{section_1_var}}} | ||
− | }}{{#if: {{{section_2|}}} | | + | }} |
+ | {{#if: {{{section_2|}}} | | ||
=== {{{section_2}}} === | === {{{section_2}}} === | ||
{{{section_2_desc}}}<br />{{#ifeq: {{{section_2_required}}} | x | ''required'' | ''optional'' }} | {{{section_2_desc}}}<br />{{#ifeq: {{{section_2_required}}} | x | ''required'' | ''optional'' }} | ||
{{{section_2_var}}} | {{{section_2_var}}} | ||
− | }}{{#if: {{{section_3|}}} | | + | }} |
+ | {{#if: {{{section_3|}}} | | ||
=== {{{section_3}}} === | === {{{section_3}}} === | ||
{{{section_3_desc}}}<br />{{#ifeq: {{{section_3_required}}} | x | ''required'' | ''optional'' }} | {{{section_3_desc}}}<br />{{#ifeq: {{{section_3_required}}} | x | ''required'' | ''optional'' }} |
Revision as of 12:24, 9 September 2014
{{{description}}}
Location
{{{script}}}
Configuration example
{{{config_dist}}}
Copy this file and edit for your needs.
Count of {{{sections}}}
Count of following sections.
required
GUID_N 0
Section to repeat
Copy the following settings as much as you need. Name the parameters for each section with the same _<#>
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
{{{testoutput}}}
Cron
You can run the script around the clock with a cron tab entry like this:
* * * * * /path/to/PVLng-scripts/{{{script}}} your_config.conf