File: solarpowerlog_complex.conf

package info (click to toggle)
solarpowerlog 0.25-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,748 kB
  • sloc: cpp: 11,856; sh: 4,270; ansic: 1,044; makefile: 169
file content (244 lines) | stat: -rw-r--r-- 6,859 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# This is coldtobi's c onfiguation file for solarpowerlog.
# 3 Inverters, feed data to a CVS logger each for data storage and a CVS logger each to store data for the HTML Writer
# Of course, there is one HTML Writer for each Inverter.

# Please note, the file is parsed by libconfig.

application:
{
    # what debuglevel should be used if not specified by any component
    # Choose out of ALL, TRACE, DEBUG, INFO, WARN, ERROR ,FATAL and NONE
    # optional. If not given, it defaults to "ERROR"
    # Note, if specified a logconfig file, the config file can override this
    # setting.
    dbglevel = "FATAL";
};

inverter :
{
  inverters = (
    {
      name   = "Inverter_1";
      description = "A Inverter inverting";
      manufacturer =  "SPUTNIK_ENGINEERING";
      model ="S-Series";

      comms = "TCP/IP";
      tcpadr =  "10.243.48.201";
      tcpport = "12345";
      tcptimeout = 3000;

      commadr = 1;
      ownadr = 0xfb;

      queryinterval= 5;
    },
    {
      name   = "Inverter_2";
      description = "A Inverter inverting";
      manufacturer =  "SPUTNIK_ENGINEERING";
      model ="S-Series";

      comms =  "TCP/IP";
      tcpadr =  "10.243.48.202";
      tcpport = "12345";
      tcptimeout = 3000;

      commadr = 1;
      ownadr = 0xfb;

      queryinterval=5;
    },
    {
      name   = "Inverter_3";
      description = "A Inverter inverting";
      manufacturer =  "SPUTNIK_ENGINEERING";
      model ="S-Series";

      comms =  "TCP/IP";
      tcpadr =  "10.243.48.203";
      tcpport = "12345";
      tcptimeout = 3000;

      commadr = 1;
      ownadr = 0xfb;

      queryinterval=5;
    }
  );
};

logger:
{
    loggers = (
      {
        name = "CVS_Inverter_1";
        type = "CVSWriter";

        datasource = "Inverter_1";

        logfile = "/home/tobi/solar/Inverter1_%s.csv";
        rotate = true;

        data2log = [
          "AC grid feeding current (A)",
          "AC grid voltage (V)",
          "Current Grid Feeding Power",
          "DC current in (A)",
          "DC voltage in (V)",
          "Energy produced accumulated all time (kWh)",
          "Energy produced this month (kWh)",
          "Energy produced this year (kWh)",
          "Energy produced today (kWh)",
          "Inverter Overall Status",
          "Inverter Temperature (C)",
          "Net frequency (Hz)"
        ];
      },
      {
        name = "CVS_Inverter_2";
        type = "CVSWriter";
        datasource = "Inverter_2";
        logfile="/home/tobi/solar/Inverter2_%s.csv";
        rotate=true;

        data2log= [
          "AC grid feeding current (A)",
          "AC grid voltage (V)",
          "Current Grid Feeding Power",
          "DC current in (A)",
          "DC voltage in (V)",
          "Energy produced accumulated all time (kWh)",
          "Energy produced this month (kWh)",
          "Energy produced this year (kWh)",
          "Energy produced today (kWh)",
          "Inverter Overall Status",
          "Inverter Temperature (C)",
          "Net frequency (Hz)"
        ];
      },
      {
        name = "CVS_Inverter_3";
        type = "CVSWriter";
        datasource = "Inverter_3";
        logfile="/home/tobi/solar/Inverter3_%s.csv";
        rotate=true;

        data2log= [
          "AC grid feeding current (A)",
          "AC grid voltage (V)",
          "Current Grid Feeding Power",
          "DC current in (A)",
          "DC voltage in (V)",
          "Energy produced accumulated all time (kWh)"
          "Energy produced this month (kWh)",
          "Energy produced this year (kWh)",
          "Energy produced today (kWh)",
          "Inverter Overall Status",
          "Inverter Temperature (C)",
          "Net frequency (Hz)"
        ];
      },
      {
        name = "CVS_Inverter_HTML1";
        type = "CVSWriter";
        datasource = "Inverter_1";

        logfile="/var/www/spl/Inverter1_%s.csv";
        rotate=true;

        data2log= [
          "Current Grid Feeding Power",
          "Energy produced today (kWh)"
        ];

        flush_file_buffer_immediatly = true;
      },
      {
        name = "CVS_Inverter_HTML2";
        type = "CVSWriter";
        datasource = "Inverter_2";

        logfile="/var/www/spl/Inverter2_%s.csv";
        rotate=true;

        data2log= [
          "Current Grid Feeding Power",
          "Energy produced today (kWh)"
        ];

        flush_file_buffer_immediatly = true;
    },
    {
      name = "CVS_Inverter_HTML3";
      type = "CVSWriter";
      datasource = "Inverter_3";

      logfile="/var/www/spl/Inverter3_%s.csv";
      rotate=true;

      data2log= [
        "Current Grid Feeding Power",
        "Energy produced today (kWh)"
        ];
      flush_file_buffer_immediatly = true;
    },
    {
      name = "HTMLWriter_Inverter1";
      type = "HTMLWriter";
      datasource = "CVS_Inverter_HTML1";

      generate_template = true;
      generate_template_dir = "/tmp";
      writeevery=60;

      htmlfile="/var/www/solarpowerlog-i1-%s.html";
      templatefile="/etc/solarpowerlog/htmlwritertemplate/test.tmpl";

      formatters = (
      # [ what_capability,       formating_operation, where_to_store ],
        [ "CSVDumper::Filename", "stripwebroot", "" , "/var/www" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "powernow", "Current Grid Feeding Power" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "kwhtoday", "Energy produced today (kWh)" ]
      );
    },
    {
      name = "HTMLWriter_Inverter2";
      type = "HTMLWriter";
      datasource = "CVS_Inverter_HTML2";

      generate_template = false;
      generate_template_dir = "/tmp";
      writeevery=60;

      htmlfile="/var/www/solarpowerlog-i2-%s.html";
      templatefile="/etc/solarpowerlog/htmlwritertemplate/test.tmpl";

      formatters = (
      # [ what_capability,       formating_operation, where_to_store ],
        [ "CSVDumper::Filename", "stripwebroot", "" , "/var/www" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "powernow", "Current Grid Feeding Power" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "kwhtoday", "Energy produced today (kWh)" ]
      );
    },
    {
      name = "HTMLWriter_Inverter3";
      type = "HTMLWriter";
      datasource = "CVS_Inverter_HTML3";

      generate_template = false;
      generate_template_dir = "/tmp";
      writeevery=60;
      htmlfile="/var/www/solarpowerlog-i3-%s.html";
      templatefile="/etc/solarpowerlog/htmlwritertemplate/test.tmpl";

      formatters = (
      # [ what_capability,       formating_operation, where_to_store ],
        [ "CSVDumper::Filename", "stripwebroot", "" , "/var/www" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "powernow", "Current Grid Feeding Power" ],
        [ "CSVDumper::LoggedCaps", "searchcvsentry", "kwhtoday", "Energy produced today (kWh)" ]
      );
    }
  );
};