Difference between revisions of "Template:PVLngScript"
From PhotoVoltaic Logger new generation
m |
m |
||
Line 6: | Line 6: | ||
{{{config_dist}}} | {{{config_dist}}} | ||
Copy this file and edit for your needs. | Copy this file and edit for your needs. | ||
− | {{{#if: {{{global_1_name}}} | | + | {{{#if: {{{global_1_name|}}} | |
== Global settings == | == Global settings == | ||
=== {{{global_1_name}}} === | === {{{global_1_name}}} === | ||
Line 12: | Line 12: | ||
{{{global_1_var}}} | {{{global_1_var}}} | ||
}}} | }}} | ||
− | {{{#if: {{{global_2_name}}} | | + | {{{#if: {{{global_2_name|}}} | |
=== {{{global_2_name}}} === | === {{{global_2_name}}} === | ||
{{{global_2_desc}}} | {{{global_2_desc}}} | ||
{{{global_2_var}}} | {{{global_2_var}}} | ||
}}} | }}} | ||
− | {{{#if: {{{global_3_name}}} | | + | {{{#if: {{{global_3_name|}}} | |
=== {{{global_3_name}}} === | === {{{global_3_name}}} === | ||
{{{global_3_desc}}} | {{{global_3_desc}}} |
Revision as of 11:25, 9 September 2014
{{{description}}}
Location
{{{script}}}
Configuration example
{{{config_dist}}}
Copy this file and edit for your needs.
Global settings
{{{global_1_name}}}
{{{global_1_desc}}}
{{{global_1_var}}}
{{{global_2_name}}}
{{{global_2_desc}}}
{{{global_2_var}}}
{{{global_3_name}}}
{{{global_3_desc}}}
{{{global_3_var}}}
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 _<#>
{{{section1}}} {{{section2}}} {{{section3}}} {{{section4}}} {{{section5}}}
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