[vz-dev] sml - aggregation oder interval?

Michael Baer mibaer at web.de
Tue Feb 18 21:29:46 CET 2014


Kann / könnte man in der vzlogger.conf bei 
"protocol" : "sml", 
anstatt "aggregation" nicht auch "interval" nehmen?

Weniger Daten lesen und auswerten - vor allem auf dem PI!

Ein kurzer Versuch hat keine Fehlermeldung aber auch keine Daten in 
der DB gebracht.

Ist das überhaupt so vorgesehen oder kann das gar nicht funktionieren?


Auszug vzlogger.conf:
===========================
"meters" : [{
         "enabled" : true, /* disabled meters will be ignored */
         "protocol" : "sml", /* see 'vzlogger -h' for list of 
available prot$ */
         "device" : "/dev/ttyAMA0",
         "interval" : 60,
         "aggfixedinterval" : false,

         "channels": [{
         "uuid" : "xxxx",
         "middleware" : "http://localhost/middleware.php",
         "identifier" : "counter", /* Bezug +A */
         "aggmode" : "MAX",

         }, {
         "uuid" : "xxxx",
         "middleware" : "http://localhost/middleware.php",
         "identifier" : "counter-out", /* Lieferung -A */
         "aggmode" : "MAX",
===========================


vzlogger.log:  
===========================
 
[Feb 18 20:52:03][mtr0] Next reading in 60 seconds
[Feb 18 20:52:03][chn0] CURL: Sent 44 bytes.. 
[Feb 18 20:52:03][chn0] CURL: Sent '[ [ 1392753123892.404053, 
4560911.300000 ] ]' bytes
[Feb 18 20:52:03][chn0] CURL: upload completely sent off: 44 out of 44 
bytes
[Feb 18 20:52:03][chn0] CURL: additional stuff not fine 
transfer.c:1037: 0 0
[Feb 18 20:52:04][chn0] CURL: HTTP 1.1 or later with persistent 
connection, pipelining supported
[Feb 18 20:52:04][chn0] CURL: Received 17 bytes
[Feb 18 20:52:04][chn0] CURL: Received '{"version":"0.3"}' bytes
[Feb 18 20:52:04][chn0] CURL: Connection #0 to host localhost left 
intact
[Feb 18 20:52:04][chn0] CURL Request succeeded with code: 200
[Feb 18 20:52:04][chn1] CURL: HTTP 1.1 or later with persistent 
connection, pipelining supported
[Feb 18 20:52:04][chn1] CURL: Received 17 bytes
[Feb 18 20:52:04][chn1] CURL: Received '{"version":"0.3"}' bytes
[Feb 18 20:52:04][chn1] CURL: Connection #0 to host localhost left 
intact
[Feb 18 20:52:04][chn1] CURL Request succeeded with code: 200
[Feb 18 20:53:03][mtr0] Got 11 new readings from meter:
[Feb 18 20:53:03][mtr0] Reading: 
id=129-129:199.130.3*255/ObisItentifier:129-129:199.130.3*255 
value=0.00 ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:0.0.9*255/ObisItentifier:1-0:0.0.9*255 value=0.00 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:1.8.0*255/ObisItentifier:1-0:1.8.0*255 value=4560911.50 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:2.8.0*255/ObisItentifier:1-0:2.8.0*255 value=5347617.20 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:1.8.1*255/ObisItentifier:1-0:1.8.1*255 value=4560911.50 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:2.8.1*255/ObisItentifier:1-0:2.8.1*255 value=5347617.20 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:1.8.2*255/ObisItentifier:1-0:1.8.2*255 value=0.00 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:2.8.2*255/ObisItentifier:1-0:2.8.2*255 value=0.00 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=1-0:16.7.0*255/ObisItentifier:1-0:16.7.0*255 value=400.50 
ts=1392753183.932
[Feb 18 20:53:03][mtr0] Reading: 
id=129-129:199.130.5*255/ObisItentifier:129-129:199.130.5*255 
value=0.00 ts=49369847.000
[Feb 18 20:53:03][mtr0] Reading: 
id=0-0:0.0.0*0/ObisItentifier:0-0:0.0.0*0 value=0.00 ts=0.000
[Feb 18 20:53:03][chn0] Adding reading to queue (value=4560911.50 
ts=1392753183.932)
[Feb 18 20:53:03][chn0] Adding reading to queue (value=4560911.50 
ts=1392753183.932)
[Feb 18 20:53:03][chn0] Adding reading to queue (value=0.00 
ts=1392753183.932)
[Feb 18 20:53:03][chn1] Adding reading to queue (value=5347617.20 
ts=1392753183.932)
[Feb 18 20:53:03][chn1] Adding reading to queue (value=5347617.20 
ts=1392753183.932)
[Feb 18 20:53:03][chn1] Adding reading to queue (value=0.00 
ts=1392753183.932)
[Feb 18 20:53:03][MAX]  4560911.500000 @ 1392753183.931740
[Feb 18 20:53:03][MAX]  4560911.500000 @ 1392753183.931757
[Feb 18 20:53:03][MAX]  0.000000 @ 1392753183.931772
[Feb 18 20:53:03][MAX]  RESULT 4560911.500000 @ 1392753183.931772
[Feb 18 20:53:03][chn0] ==> number of tuples: 1
[Feb 18 20:53:03][chn0] compare: 1392753123892 1392753183932 
1392753183931.771973
[Feb 18 20:53:03][chn0] JSON request body: [ [ 1392753183931.771973, 
4560911.500000 ] ]
[Feb 18 20:53:03][chn0] CURL: Connection #0 seems to be dead!
[Feb 18 20:53:03][chn0] CURL: Closing connection #0
[Feb 18 20:53:03][chn0] CURL: About to connect() to localhost port 80 
(#0)
[Feb 18 20:53:03][chn0] CURL:   Trying 127.0.0.1...
[Feb 18 20:53:03][chn0] CURL: connected
[Feb 18 20:53:03][chn0] CURL: Connected to localhost (127.0.0.1) port 
80 (#0)
[Feb 18 20:53:03][chn0] Buffer dump (size=0 keep=32): {}
[Feb 18 20:53:03][MAX]  5347617.200000 @ 1392753183.931748
[Feb 18 20:53:03][MAX]  5347617.200000 @ 1392753183.931764
[Feb 18 20:53:03][MAX]  0.000000 @ 1392753183.931780
[Feb 18 20:53:03][MAX]  RESULT 5347617.200000 @ 1392753183.931780
[Feb 18 20:53:03][chn1] ==> number of tuples: 1
[Feb 18 20:53:03][chn1] compare: 1392753123892 1392753183932 
1392753183931.780029
[Feb 18 20:53:03][chn1] JSON request body: [ [ 1392753183931.780029, 
5347617.200000 ] ]
[Feb 18 20:53:03][chn1] CURL: Connection #0 seems to be dead!
[Feb 18 20:53:03][chn1] CURL: Closing connection #0
[Feb 18 20:53:03][chn1] CURL: About to connect() to localhost port 80 
(#0)
[Feb 18 20:53:03][chn1] Buffer dump (size=0 keep=32): {}
[Feb 18 20:53:03][mtr0] Next reading in 60 seconds

===============================


-- 


Gruss,
	Michael

GnuPG-ID 0x1E4ED700  http://pgp.mit.edu/


More information about the volkszaehler-dev mailing list