Hallo,
Ich habe ein Pi eingerichtet mit Volkzaehler und den USB IR lezekopf.
das vzlogger.conf ist
{
"retry" : 30, /* how long to sleep between failed requests, in seconds */
"daemon" : false, /* run periodically */
"verbosity" : 15, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log", /* path to logfile, optional */
"local" : {
"enabled" : false, /* should we start the local HTTPd for serving live readings? */
"port" : 80, /* the TCP port for the local HTTPd */
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */
},
"meters" : [{
"enabled" : true, /* disabled meters will be ignored */
"protocol" : "sml", /* see 'vzlogger -h' for list of available prot$ */
"bautrate" : 300,
"device" : "/dev/USB0",
"parity" : "7E1
// /* "pullseq" : "2f3f210d0a"/*
"interval" : 15,
"channels": [{
"uuid" : "77ac01c0-7333-11e5-85ab-c51b9bef70bf",
"middleware" : "http://localhost/middleware.php",
"identifier" : "1.8.1", /* Leistung */
}, {
"uuid" : "f8ee0750-7334-11e5-8d73-75dd745c8c9b",
"middleware" : "http://localhost/middleware.php",
"identifier" : "1.8.2", /* Wirkarbeit Bezug +A */
}, {
"uuid" : "03803260-7335-11e5-831f-9df27282af3e",
"middleware" : "http://localhost/middleware.php",
"identifier" : "255:2.8.1*255/", /* Wirkarbeit Bezug +A */
}, {
"uuid" : "094f1dc0-7335-11e5-8aee-110968bca865",
"middleware" : "http://localhost/middleware.php",
"identifier" : "255:2.8.2*255/", /* Wirkarbeit Lieferung -A */
}]
}
]}
die uuid sind in Frontend eingegeben.
wen ich vzlogger -o, eingebe bekomme ich folgendes;
root@raspberrypi:/home/pi# vzlogger -o,
[Oct 15 14:52:02][main] vzlogger v0.4.0 based on heads/master-0-g19eb2d0ebf from Sun, 19 Apr 2015 08:29:22 +0200 started.
[Oct 15 14:52:02][mtr0] Creating new meter with protocol d0.
[Oct 15 14:52:02][d0] pullseq len:5 found
[Oct 15 14:52:02][mtr0] Meter configured, enabled.
[Oct 15 14:52:02] New meter initialized (protocol=d0)
[Oct 15 14:52:02] Configure channel.
[Oct 15 14:52:02][chn0] New channel initialized (uuid=...1e7922 api=volkszaehler id=255-255:1.8.1*255)
[Oct 15 14:52:02] Configure channel.
[Oct 15 14:52:02][chn1] New channel initialized (uuid=...f013f2 api=volkszaehler id=255-255:2.8.1*255)
[Oct 15 14:52:02] Configure channel.
[Oct 15 14:52:02][chn2] New channel initialized (uuid=...84ed65 api=volkszaehler id=255-255:1.8.1*255)
[Oct 15 14:52:02] Have 1 meters.
[Oct 15 14:52:02][main] log level is 15
[Oct 15 14:52:02][main] daemon=0, local=0
[Oct 15 14:52:02] Process not daemonized...
[Oct 15 14:52:02] Opened logfile ,
[Oct 15 14:52:02][] ===> Start meters
[Oct 15 14:52:02][mtr0] Meter connection established
[Oct 15 14:52:02][mtr0] Meter thread started
[Oct 15 14:52:02][mtr0] Meter is opened. Starting channels.
[Oct 15 14:52:02][chn0] Logging thread started
[Oct 15 14:52:02][chn1] Logging thread started
[Oct 15 14:52:02][chn2] Logging thread started
[Oct 15 14:52:02][] Startup done.
[Oct 15 14:52:02][mtr0] Number of readers: 400
[Oct 15 14:52:02][chn0] Start logging thread for volkszaehler-api. Running as daemon: no
[Oct 15 14:52:02][chn2] Start logging thread for volkszaehler-api. Running as daemon: no
[Oct 15 14:52:02][chn1] Start logging thread for volkszaehler-api. Running as daemon: no
[Oct 15 14:52:02][chn0] Using default volkszaehler api.
[Oct 15 14:52:02][chn1] Using default volkszaehler api.
[Oct 15 14:52:02][chn2] Using default volkszaehler api.
[Oct 15 14:52:02][mtr0] Config.daemon: 0
[Oct 15 14:52:02][mtr0] Config.local: 0
[Oct 15 14:52:02][d0] sending pullsequenz send (len:5 is:5).
[Oct 15 14:52:03][d0] Pull answer (vendor=LGZ, baudrate=0, identification=ZME100AC.L03)
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte hex= 2
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte F hex= 46
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte F hex= 46
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:05][d0] DEBUG VALUE byte= ) hex= 29
[Oct 15 14:52:05][d0] Parsed reading (OBIS code=F.F, value=00, unit=)
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte C hex= 43
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte 1 hex= 31
[Oct 15 14:52:05][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 4 hex= 34
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 2 hex= 32
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 6 hex= 36
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:05][d0] DEBUG VALUE byte= 5 hex= 35
[Oct 15 14:52:05][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:05][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= hex= 20
[Oct 15 14:52:06][d0] DEBUG VALUE byte= ) hex= 29
[Oct 15 14:52:06][d0] Parsed reading (OBIS code=C.1, value=94729675 , unit=)
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte 1 hex= 31
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte 8 hex= 38
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte 1 hex= 31
[Oct 15 14:52:06][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 2 hex= 32
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 6 hex= 36
[Oct 15 14:52:06][d0] DEBUG VALUE byte= . hex= 2e
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:06][d0] DEBUG VALUE byte= 5 hex= 35
[Oct 15 14:52:06][d0] DEBUG VALUE byte= * hex= 2a
[Oct 15 14:52:07][d0] Parsed reading (OBIS code=1.8.1, value=79926.95, unit=kWh)
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte 2 hex= 32
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte 8 hex= 38
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte 1 hex= 31
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 1 hex= 31
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:07][d0] DEBUG VALUE byte= . hex= 2e
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:07][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:07][d0] DEBUG VALUE byte= * hex= 2a
[Oct 15 14:52:07][d0] Parsed reading (OBIS code=2.8.1, value=00719.99, unit=kWh)
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:07][d0] DEBUG OBIS_CODE byte 1 hex= 31
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte 8 hex= 38
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte 2 hex= 32
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 4 hex= 34
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 3 hex= 33
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 3 hex= 33
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:08][d0] DEBUG VALUE byte= . hex= 2e
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:08][d0] DEBUG VALUE byte= * hex= 2a
[Oct 15 14:52:08][d0] Parsed reading (OBIS code=1.8.2, value=43030.77, unit=kWh)
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte 2 hex= 32
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte 8 hex= 38
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte 2 hex= 32
[Oct 15 14:52:08][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:08][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 1 hex= 31
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 7 hex= 37
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 4 hex= 34
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 9 hex= 39
[Oct 15 14:52:09][d0] DEBUG VALUE byte= . hex= 2e
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 4 hex= 34
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:09][d0] DEBUG VALUE byte= * hex= 2a
[Oct 15 14:52:09][d0] Parsed reading (OBIS code=2.8.2, value=01749.40, unit=kWh)
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte C hex= 43
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte 5 hex= 35
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte . hex= 2E
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte 0 hex= 30
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte ( hex= 28
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:09][d0] DEBUG VALUE byte= 0 hex= 30
[Oct 15 14:52:09][d0] DEBUG VALUE byte= ) hex= 29
[Oct 15 14:52:09][d0] Parsed reading (OBIS code=C.5.0, value=00, unit=)
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:09][d0] DEBUG OBIS_CODE byte
hex= A
[Oct 15 14:52:10][d0] Read package with 7 tuples (vendor=LGZ, baudrate=0, identification=ZME100AC.L03)
[Oct 15 14:52:10][mtr0] Got 7 new readings from meter:
[Oct 15 14:52:10][mtr0] Reading: id=255-255:97.97.255*255/ObisItentifier:255-255:97.97.255*255 value=0.00 ts=1444913525330
[Oct 15 14:52:10][mtr0] Reading: id=255-255:96.1.255*255/ObisItentifier:255-255:96.1.255*255 value=94729675.00 ts=1444913526233
[Oct 15 14:52:10][mtr0] Reading: id=255-255:1.8.1*255/ObisItentifier:255-255:1.8.1*255 value=79926.95 ts=1444913527033
[Oct 15 14:52:10][mtr0] Reading: id=255-255:2.8.1*255/ObisItentifier:255-255:2.8.1*255 value=719.99 ts=1444913527833
[Oct 15 14:52:10][mtr0] Reading: id=255-255:1.8.2*255/ObisItentifier:255-255:1.8.2*255 value=43030.77 ts=1444913528634
[Oct 15 14:52:10][mtr0] Reading: id=255-255:2.8.2*255/ObisItentifier:255-255:2.8.2*255 value=1749.40 ts=1444913529428
[Oct 15 14:52:10][mtr0] Reading: id=255-255:96.5.0*255/ObisItentifier:255-255:96.5.0*255 value=0.00 ts=1444913529856
[Oct 15 14:52:10][chn0] Adding reading to queue (value=79926.95 ts=1444913527033)
[Oct 15 14:52:10][chn1] Adding reading to queue (value=719.99 ts=1444913527833)
[Oct 15 14:52:10][chn2] Adding reading to queue (value=79926.95 ts=1444913527033)
[Oct 15 14:52:10][chn0] ==> number of tuples: 1
[Oct 15 14:52:10][chn0] compare: 0 1444913527033
[Oct 15 14:52:10][chn0] JSON request body: [ [ 1444913527033, 79926.949999999997 ] ]
[Oct 15 14:52:10][chn0] Buffer dump (size=0): {}
[Oct 15 14:52:10][chn1] ==> number of tuples: 1
[Oct 15 14:52:10][chn1] compare: 0 1444913527833
[Oct 15 14:52:10][chn1] Buffer dump (size=0): {}
[Oct 15 14:52:10][chn2] ==> number of tuples: 1
[Oct 15 14:52:10][chn2] compare: 0 1444913527033
[Oct 15 14:52:10][chn2] Buffer dump (size=0): {}
[Oct 15 14:52:10][mtr0] Next reading in 10 seconds
[Oct 15 14:52:10][chn0] CURL: About to connect() to localhost port 80 (#0)
[Oct 15 14:52:10][chn0] CURL: Trying 127.0.0.1...
[Oct 15 14:52:10][chn0] CURL: connected
[Oct 15 14:52:10][chn0] CURL: Connected to localhost (127.0.0.1) port 80 (#0)
[Oct 15 14:52:10][chn0] CURL: Sent 41 bytes..
[Oct 15 14:52:10][chn0] CURL: Sent '[ [ 1444913527033, 79926.949999999997 ] ]' bytes
[Oct 15 14:52:10][chn0] CURL: upload completely sent off: 41 out of 41 bytes
[Oct 15 14:52:10][chn0] CURL: additional stuff not fine transfer.c:1037: 0 0
[Oct 15 14:52:10][chn0] CURL: HTTP 1.0, assume close after body
[Oct 15 14:52:10][chn0] CURL: Received 139 bytes
[Oct 15 14:52:10][chn0] CURL: Received '{"version":"0.3","exception":{"message":"No entity found with UUID: 'bcab76e0-70ca-11e5-a9ae-c9e5bb1e7922'","type":"Exception","code":404}}' bytes
[Oct 15 14:52:11][chn0] CURL: nread <= 0, server closed connection, bailing
[Oct 15 14:52:11][chn0] CURL: Closing connection #0
[Oct 15 14:52:11][chn1] JSON request body: [ [ 1444913527833, 719.99000000000001 ] ]
[Oct 15 14:52:11][chn1] CURL: About to connect() to localhost port 80 (#0)
[Oct 15 14:52:11][chn1] CURL: Trying 127.0.0.1...
[Oct 15 14:52:11][chn1] CURL: connected
[Oct 15 14:52:11][chn1] CURL: Connected to localhost (127.0.0.1) port 80 (#0)
[Oct 15 14:52:11][chn0] CURL Request succeeded with code: 200
[Oct 15 14:52:11][chn1] CURL: Sent 41 bytes..
[Oct 15 14:52:11][chn1] CURL: Sent '[ [ 1444913527833, 719.99000000000001 ] ]' bytes
[Oct 15 14:52:11][chn1] CURL: upload completely sent off: 41 out of 41 bytes
[Oct 15 14:52:11][chn1] CURL: additional stuff not fine transfer.c:1037: 0 0
[Oct 15 14:52:11][chn1] CURL: HTTP 1.0, assume close after body
[Oct 15 14:52:11][chn1] CURL: Received 139 bytes
[Oct 15 14:52:11][chn1] CURL: Received '{"version":"0.3","exception":{"message":"No entity found with UUID: '3f6d1cd0-70d1-11e5-b813-910baef013f2'","type":"Exception","code":404}}' bytes
[Oct 15 14:52:11][chn1] CURL: nread <= 0, server closed connection, bailing
[Oct 15 14:52:11][chn1] CURL: Closing connection #0
[Oct 15 14:52:11][chn2] JSON request body: [ [ 1444913527033, 79926.949999999997 ] ]
[Oct 15 14:52:11][chn2] CURL: About to connect() to localhost port 80 (#0)
[Oct 15 14:52:11][chn2] CURL: Trying 127.0.0.1...
[Oct 15 14:52:11][chn2] CURL: connected
[Oct 15 14:52:11][chn2] CURL: Connected to localhost (127.0.0.1) port 80 (#0)
[Oct 15 14:52:11][chn1] CURL Request succeeded with code: 200
[Oct 15 14:52:11][chn2] CURL: Sent 41 bytes..
[Oct 15 14:52:11][chn2] CURL: Sent '[ [ 1444913527033, 79926.949999999997 ] ]' bytes
[Oct 15 14:52:11][chn2] CURL: upload completely sent off: 41 out of 41 bytes
[Oct 15 14:52:11][chn2] CURL: additional stuff not fine transfer.c:1037: 0 0
[Oct 15 14:52:11][chn2] CURL: HTTP 1.0, assume close after body
[Oct 15 14:52:11][chn2] CURL: Received 139 bytes
[Oct 15 14:52:11][chn2] CURL: Received '{"version":"0.3","exception":{"message":"No entity found with UUID: '27657a40-70d1-11e5-b3e3-379df584ed65'","type":"Exception","code":404}}' bytes
[Oct 15 14:52:11][chn2] CURL: nread <= 0, server closed connection, bailing
[Oct 15 14:52:11][chn2] CURL: Closing connection #0
[Oct 15 14:52:11][chn2] CURL Request succeeded with code: 200
^C[Oct 15 14:52:13] terminating on signal 2.
[Oct 15 14:52:14] Closing connections to terminate
*** glibc detected *** vzlogger: free(): corrupted unsorted chunks: 0x00d5f2a0 ***
Aborted
aber das Frontend sagt nothing to plot.
kan mir eine helfen?