[vz-users] S0 Zähler an Rapi und vzlogger
Frank Kalberg
fkalberg at yahoo.de
Mon Nov 11 19:04:21 CET 2013
Hallo Rainer,
etwas Ernüchterung heute Morgen um ca. 6:30 ist der vzlogger abgestürzt. In der Nacht hat er wiederum 325,- Euro an Kosten gezählt. Ich habe in der vzlogger.log keinen Hinweis finden können was schief läuft :
vzlogger.log
[Nov 11 18:54:38][chn0] CURL: Connection #0 to host localhost left intact
[Nov 11 18:54:38][chn0] CURL Request succeeded with code: 200
[Nov 11 18:54:45][s0] Reading S0 - n=3 power=949.542418 counter=949.542418
[Nov 11 18:54:45][mtr0] Got 1 new readings from meter:
[Nov 11 18:54:45][mtr0] Reading: id=Counter/StringItentifier: value=34.00 ts=1384192485.649
[Nov 11 18:54:45][chn0] Adding reading to queue (value=34.00 ts=1384192485.649)
[Nov 11 18:54:45][chn0] Buffer dump (size=1 keep=0): {34.0000,}
[Nov 11 18:54:45][mtr0] Next reading in -1 seconds
[Nov 11 18:54:45][chn0] ==> number of tuples: 1
[Nov 11 18:54:45][chn0] compare: 1384192477698 1384192485649 1384192485649.124023
[Nov 11 18:54:45][chn0] JSON request body: [ [ 1384192485649.124023, 34.000000 ] ]
[Nov 11 18:54:45][chn0] CURL: Connection #0 seems to be dead!
[Nov 11 18:54:45][chn0] CURL: Closing connection #0
[Nov 11 18:54:45][chn0] CURL: About to connect() to localhost port 80 (#0)
[Nov 11 18:54:45][chn0] CURL: Trying 127.0.0.1...
[Nov 11 18:54:45][chn0] CURL: connected
[Nov 11 18:54:45][chn0] CURL: Connected to localhost (127.0.0.1) port 80 (#0)
[Nov 11 18:54:45][chn0] CURL: Sent 39 bytes..
[Nov 11 18:54:45][chn0] CURL: Sent '[ [ 1384192485649.124023, 34.000000 ] ]' bytes
[Nov 11 18:54:45][chn0] CURL: upload completely sent off: 39 out of 39 bytes
[Nov 11 18:54:45][chn0] CURL: additional stuff not fine transfer.c:1037: 0 0
[Nov 11 18:54:46][chn0] CURL: HTTP 1.1 or later with persistent connection, pipelining supported
[Nov 11 18:54:46][chn0] CURL: Received 28 bytes
[Nov 11 18:54:46][chn0] CURL: Received '11
{"version":"0.3"}
0
Auch wegen der Abstürze weder in den messages, oder syslog etwas zu finden. Was mache ich flasch ?
Meine vzlogger.conf:
{
"retry" : 30, /* how long to sleep between failed requests, in seconds */
"daemon": true, /* run periodically */
//"foreground" : true, /* dont run in background (prevents forking) */
"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" : 8080, /* 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" : [
{
"protocol" : "s0",
"device" : "dev/ttyUSB0",
"enabled" : true,
"resolution" : 1000,
"aggtime" : 20,
"aggfixedinterval" : true,
"channel" : {
"uuid" : "493c9570-4a36-11e3-be2a-8f7eaxxxxxxxxxx",
"middleware" : "http://localhost/middleware.php",
"identifier" : "Power", /* Wirkleistung total*/
"aggmode" : "AVG"
}
}
]}
Gruß
Frank
-----Ursprüngliche Nachricht-----
Von: volkszaehler-users-bounces at lists.volkszaehler.org [mailto:volkszaehler-users-bounces at lists.volkszaehler.org] Im Auftrag von Rainer Gauweiler
Gesendet: Sonntag, 10. November 2013 21:18
An: volkszaehler.org - users
Betreff: Re: [vz-users] S0 Zähler an Rapi und vzlogger
Hallo Frank,
Am 10.11.2013 10:20, schrieb Frank Kalberg:
> Stromzähler DRT428B mit s0
http://www.elektroladen24.eu/artikeldet.php?proid=340
Demnach ein Zähler in eine Richtung.
> Meine vzlogger.conf
> "meters" : [{
> "enabled" : true, /* disabled meters will be ignored */
> "protocol" : "s0", /* see 'vzlogger -h' for list of available protocols */
> "device" : "/dev/ttyUSB0",
> "channels": [{
> "uuid" : "474b8660-4979-11e3-8658-07cc2891a904",
> "middleware" : "http://localhost/middleware.php",
> "identifier" : "1-0:15.7.0" /* Wirkleistung Hauszaehler */
> }, {
> "uuid" : "f1548a10-4978-11e3-9cca-63b5541f1d79",
> "middleware" : "http://localhost/middleware.php",
> "identifier" : "1-0:2.8.0", /* Gesamtstromvrbrauch */
> }]
Die Identifier die Du da benutzt sind für D0. Du hast aber einen Zähler mit S0.
Beispiele für Konfig:
{
"enabled" : true, /* disabled meters will be ignored */
"protocol" : "s0",
"resolution" : 1000,
"device" : "/dev/usb-ir-lesekopf0",
"aggtime" : 20,
"channel" : {
"identifier" : "Power",
"uuid" : "06d2edd0-9f84-11e2-ad68-XXXXXXXXXXXXXX",
"middleware" : "http://192.168.100.6:8888/middleware.php",
"aggmode" : "AVG"
}
},{
"enabled" : false, /* disabled meters will be ignored */
"protocol" : "s0",
"resolution" : 1000,
"device" : "/dev/usb-ir-lesekopf1",
"aggtime" : 20,
"channel" : {
"identifier" : "Impulse",
"uuid" : "06d2edd0-9f84-11e2-ad68-XXXXXXXXXXXXXX",
"middleware" : "http://192.168.100.6:8888/middleware.php",
"aggmode" : "SUM"
}
}
Der eine trägt Leistung ein und der andere Impulse. Musst halt schauen was Dir lieber ist. Die Typen vom Kanal müssen dazu passen und die Auflösung.
> Kann ich über die S0 Schnittstelle den Zählerstand erfassen ?
Nein.
Gruss
Rainer
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 1584 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
More information about the volkszaehler-users
mailing list