File: htmlwriter.conf

package info (click to toggle)
solarpowerlog 0.24-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 3,244 kB
  • sloc: sh: 11,444; cpp: 8,900; ansic: 1,044; makefile: 118
file content (57 lines) | stat: -rw-r--r-- 2,495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
        {
            # This filters will be known as (required)
            name = "HTMLWriterExample";
            # It is of the type
            type = "HTMLWriter";
            # And gets its data from
            datasource = "Inverter1";

            # The module has a parameter-set which might be useful for generating
            # your own templates: Template-Generatin-Assitance. In this mode, all generated
            # values will be put out to a template file called like the name of
            # the HTML Writer object (see above, name), listing all known capabilites
            # for the inveerter.

            # the next one is the main switch for the feature: (optional, default false)
            # generate_template = false;

            # this one says the template generator, in what directory to put
            # the template (optional, default /tmp/)
            # generate_template_dir = "/tmp/";

            #update the HTML page every seconds:
            #the value "0" means everytime something changes ,probably not what you want
            #( WARNING: THE VALUE 0 IS NOT YET IMPLEMENTED)
            #if not given, we will try to extract this out of the Data Query Interval
            #of the inverter, which will, if not available, defaults to 300.
            #if not available
            #writeevery=300;

            # As in the CSV Plugin,
            # you can specify here the file/path where to store the files
            # the files. %s will be replaced by the current date in ISO 8601
            # format: YYYY-MM-DD. When there is no %s, the file will be replaced
            # on midnight.
            # This option is required.
            htmlfile="/var/www/solarpowerlog-%s.html";

            # Template file to be used
            # This file will be loaded as template... Mandatory.
            templatefile="example_confs/htmlwritertemplate/test.tmpl";

            # The filter can do some modifcations on the values
            # before handing them over to the template engine:
            # to keep it flexible, this is done with this list lists:
            # what_capbility names the one to be formatted
            # formatting operation is the operation to be performed:
            #   stripwebroot    remove the webroot-prefix from the capa

            formatters = (
            # (  what_capability,    formating_operation )
              (   CVSDumper::Filename, stripwebroot      )
            );


        }