vzlogger cron

raw

phork0.txt

root@dojo:/etc> /usr/local/bin/vzlogger -c /etc/vzlogger-cron.conf 
[Aug 27 21:37:15][main] vzlogger v0.7.0 based on heads/master-0-gd60752b537-dirty from Sun, 6 Jan 2019 14:31:51 +0100 started.
[Aug 27 21:37:15][mtr0] Creating new meter with protocol sml.
[Aug 27 21:37:15][mtr0] Meter configured, enabled.
[Aug 27 21:37:15]       New meter initialized (protocol=sml)
[Aug 27 21:37:15]       Configure channel.
[Aug 27 21:37:15][chn0] New channel initialized (uuid=...01870a api=volkszaehler id=1-0:1.8.0)
[Aug 27 21:37:15]       Configure channel.
[Aug 27 21:37:15][chn1] New channel initialized (uuid=...d4d784 api=volkszaehler id=1-0:16.7.0)
[Aug 27 21:37:15]       Have 1 meters.
[Aug 27 21:37:15][main] log level is 15
[Aug 27 21:37:15][main] daemon=0, local=0
[Aug 27 21:37:15]       Process not  daemonized...
[Aug 27 21:37:15]       Opened logfile /var/log/vzlogger.log
[Aug 27 21:37:15][push] No pushDataServer defined.
[Aug 27 21:37:15][]     ===> Start meters
[Aug 27 21:37:15][mtr0] Meter connection established
[Aug 27 21:37:15][mtr0] Meter thread started
[Aug 27 21:37:15][mtr0] Meter is opened. Starting channels.
[Aug 27 21:37:15][chn0] Logging thread started
[Aug 27 21:37:15][chn0] Start logging thread for volkszaehler-api. Running as daemon: no
[Aug 27 21:37:15][chn0] Using default volkszaehler api.
[Aug 27 21:37:15][chn1] Start logging thread for volkszaehler-api. Running as daemon: no
[Aug 27 21:37:15][mtr0] Number of readers: 32
[Aug 27 21:37:15][chn1] Using default volkszaehler api.
[Aug 27 21:37:15][mtr0] Config.daemon: 0
[Aug 27 21:37:15][chn1] Logging thread started
[Aug 27 21:37:15][mtr0] Config.local: 0
[Aug 27 21:37:15][]     Startup done.
[Aug 27 21:37:16][mtr0] Got 10 new readings from meter:
[Aug 27 21:37:16][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=11799985.10 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=11799985.10 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=0.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=0.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=521.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=22.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=178.00 ts=1566934636091
[Aug 27 21:37:16][mtr0] Reading: id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=320.00 ts=1566934636091
[Aug 27 21:37:16][chn0] Adding reading to queue (value=11799985.10 ts=1566934636091)
[Aug 27 21:37:16][chn1] Adding reading to queue (value=521.00 ts=1566934636091)
[Aug 27 21:37:16][MAX]  11799985.100000 @ 1566934636091
[Aug 27 21:37:16][MAX]  RESULT 11799985.100000 @ 1566934636091
[Aug 27 21:37:16][AVG]  [0] 521.000000 @ 1566934636091
[Aug 27 21:37:16][chn0] ==> number of tuples: 1
[Aug 27 21:37:16][chn0] compare: 0 1566934636091
[Aug 27 21:37:16][AVG]  [1] RESULT 521.000000 @ 1566934636091
[Aug 27 21:37:16][chn0] copied 1/1 values for middleware transmission
[Aug 27 21:37:16][mtr0] Stopped reading. 
[Aug 27 21:37:16][chn0] JSON request body: [ [ 1566934636091, 11799985.100000001 ] ]
[Aug 27 21:37:16][chn1] ==> number of tuples: 1
[Aug 27 21:37:16][chn1] compare: 0 1566934636091
[Aug 27 21:37:16][chn1] copied 1/1 values for middleware transmission
[Aug 27 21:37:17][]     Server stopped.
[Aug 27 21:37:17][]     Trying to delete curlSessionProvider...
[Aug 27 21:37:17][chn0] CURL: Curl_http_done: called premature == 1
[Aug 27 21:37:17][chn0] CURL: stopped the pause stream!
[Aug 27 21:37:17][chn0] CURL: Closing connection 0
[Aug 27 21:37:17][]     deleted curlSessionProvider
raw

vzlogger.json

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
{
    // General settings
    "daemon": false,
    "verbosity": 15,         // log verbosity (0=log_alert, 1=log_error, 3=log_warning, 5=log_info, 10=log_debug, 15=log_finest)
    "log": "/var/log/vzlogger.log", // log file, optional
    "retry": 30,            // http retry delay in seconds
 
    // Meter configuration
    "meters": [
        {
            // Example SML meter
 
            "enabled": true,               // disabled meters will be ignored (default)
            "skip": false,                  // errors when opening meter may be ignored if enabled
            "protocol": "sml",              // meter protocol, see 'vzlogger -h' for full list
            "device": "/dev/stromzaehler0",       // meter device
//          "host": "http://my.ddns.net::7331",   // uri if meter not locally connected using <device>
 
            //"aggtime": -1,
            //"aggfixedintervall": false,
 
            "channels": [
                {
                    "uuid": "c877f250-1fdc-11e9-bfa0-7fa41a01870a",
                    "middleware": "http://strom.home.cweiske.de/middleware.php",
                    "identifier": "1-0:1.8.0",
                    "aggmode": "max"
                },
                {
                    "uuid": "fc2d7bc0-1fdc-11e9-b9df-39bcf1d4d784",
                    "middleware": "http://strom.home.cweiske.de/middleware.php",
                    "identifier": "1-0:16.7.0",
                    "aggmode": "avg"
                }
            ]
        }
    ]
}
 
Christian Weiske Christian Weiske
owner

History