<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hallo Community,<br>
<br>
ich habe ein Problem mit der Ersteinrichtung meines Pi's:<br>
<br>
Ich habe mit Hterm den Stromzähler abgehört und ich bekomme folgende Ausgabe:<br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
/SAT63511C01251002666<\r><\n><2>F.F(00000000)<\r><\n>0.0.0(021204650)<\r><\n>0.0.1(G23-511-C.01/251-002666)<\r><\n>C.70.0()<\r><\n>1.128.0(0.000*kWh)<\r><\n>0.1.0(02)<\r><\n>0.1.2*02(14-07-01
00:00)<\r><\n>0.1.2&01(14-06-16
09:10)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>0.1.2*00(00-00-00
00:00)<\r><\n>1.2.0(2.119*kW)<\r><\n>2.2.0(5.692*kW)<\r><\n>1.4.0(08
0.000*kW)<\r><\n>2.4.0(08
2.217*kW)<\r><\n>1.6.0(2.303*kW)(14-07-13
19:45)<\r><\n>1.6.0*02(1.904)(14-06-22
20:00)<\r><\n>1.6.0&01(0.215)(14-06-16
09:10)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0(5.711*kW)(14-07-16
11:15)<\r><\n>2.6.0*02(5.692)(14-06-19
15:00)<\r><\n>2.6.0&01(0.000)(05-01-01
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00
00:00)<\r><\n>1.8.0(174.979*kWh)<\r><\n>1.8.0*02(77.580)<\r><\n>1.8.0&01(0.054)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n><font style="font-size: 16pt;" size="4"><b>1.8.1(174.979*kWh)</b></font><\r><\n>1.8.1*02(77.580)<\r><\n>1.8.1&01(0.054)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.2(0.000*kWh)<\r><\n>1.8.2*02(0.000)<\r><\n>1.8.2&01(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.3(0.000*kWh)<\r><\n>1.8.3*02(0.000)<\r><\n>1.8.3&01(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.4(0.000*kWh)<\r><\n>1.8.4*02(0.000)<\r><\n>1.8.4&01(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.5(0.000*kWh)<\r><\n>1.8.5*02(0.000)<\r><\n>1.8.5&01(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.6(0.000*kWh)<\r><\n>1.8.6*02(0.000)<\r><\n>1.8.6&01(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>2.8.0(1047.293*kWh)<\r><\n>2.8.0*02(489.371)<\r><\n>2.8.0&01(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n><font style="font-size: 16pt;" size="4"><b>2.8.1(1047.303*kWh)</b></font><\r><\n>2.8.1*02(489.371)<\r><\n>2.8.1&01(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.2(0.000*kWh)<\r><\n>2.8.2*02(0.000)<\r><\n>2.8.2&01(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0. (...usw...)<br>Die fett markierten will ich auslesen:<br><font style="font-size: 16pt;" size="4"><b>1.8.1(174.979*kWh)</b></font><br><font style="font-size: 16pt;" size="4"><b>2.8.1(1047.303*kWh)</b></font><br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
meine vzlogger.conf sieht folgendermaßen aus:<br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
/**<br>
* vzlogger configuration<br>
*<br>
* use proper encoded JSON with javascript comments<br>
*<br>
* take a look at the wiki for detailed information:<br>
* http://wiki.volkszaehler.org/software/controller/vzlogger#configuration<br>
*/<br>
<br>
{<br>
"retry" : 30, /* how long to sleep between failed requests, in seconds */<br>
"daemon": true, /* run periodically */<br>
//"foreground" : true, /* dont run in background (prevents forking) */<br>
"verbosity" : 500, /* between 0 and 15 */<br>
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */<br>
<br>
"local" : {<br>
// "enabled" : false, /* should we start the local HTTPd for serving live readings? */<br>
"port" : 8080, /* the TCP port for the local HTTPd */<br>
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */<br>
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */<br>
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */<br>
},<br>
<br>
"meters" : [<br>
{<br>
"protocol" : "d0",<br>
"device" : "/dev/ttyUSB0",<br>
"enabled" : true,<br>
"interval" : 61,<br>
"baudrate" : 115200,<br>
"parity" : "7E1",<br>
"pullseq" : "2F3F210D0A",<br>
"max" : 40.0, /* has to be double! */<br>
"min" : -5.0, /* has to be double! */<br>
"channel" : {<br>
"uuid" : "1df4aca0-0fff-11e4-bbf2-bdf25f107f24",<br>
"middleware" : "http://localhost/middleware.php"<br>
}<br>
} // meter<br>
,<br>
//<br>
{<br>
"enabled" : false,<br>
"protocol" : "file",<br>
"path" : "/sys/class/thermal/thermal_zone0/temp",<br>
// "format" : "$v", /* a format string for parsing complex logfiles */<br>
/* arbitrary text and whitespaces are allowed, see 'scanf()' */<br>
/* at least $v has to be used */<br>
/* $i => identifier, $v => value, $t => timestamp */<br>
"rewind" : true, /* reset file pointer each interval to the beginning of the file */<br>
"interval" : 20, /* of ommitted, we will try to listen on changes with inotify */<br>
"identifier" : "1-0:1.8.1*255",<br>
"channel" : {<br>
"uuid" : "1972bf30-0f80-11e4-b333-d76abce3aed8",<br>
"middleware" : "http://localhost/middleware.php"<br>
} // channel<br>
} // meter<br>
,<br>
{<br>
"enabled" : false,<br>
"protocol" : "file",<br>
"path" : "/proc/loadavg",<br>
// "format" : "$i $v $t", /* a format string for parsing complex logfiles */<br>
/* arbitrary text and whitespaces are allowed, see 'scanf()' */<br>
/* at least $v has to be used */<br>
/* $i => identifier, $v => value, $t => timestamp */<br>
"rewind" : true, /* reset file pointer each interval to the beginning of the file */<br>
"interval" : 10, /* of ommitted, we will try to listen on changes with inotify */<br>
"aggtime" : 300, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */<br>
"aggfixedinterval" : true, /* round all timestamps to middleware to nearest aggtime */<br>
"channel" : {<br>
"uuid" : "1972bf30-0f80-11e4-b333-d76abce3aed8",<br>
"middleware" : "http://localhost/middleware.php",<br>
"aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAX and NONE */<br>
} // channel<br>
} // meter<br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
wenn ich vzlogger in den Terminal eingebe erhalte ich folgendes:<br>
root@raspberrypi:/home/pi# vzlogger<br>
[Jul 20 14:19:00][mtr0] Creating new meter with protocol d0.<br>
[Jul 20 14:19:00][d0] pullseq len:5 found<br>
[Jul 20 14:19:00][mtr0] Meter configured. enabled<br>
[Jul 20 14:19:00] New meter initialized (protocol=d0)<br>
[Jul 20 14:19:00] Configure channel.<br>
[Jul 20 14:19:00] Identifier is not set. Set it to default value 'NilItentifier'.<br>
Segmentation fault<br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
Was muss ich noch ändern damit ich Daten erhalte? :D Wie mache ich die
Einstellungen, dass die Daten in eine schon existierende Datenbank im
Internet verknüfe?<br>
<br>
Vielen Dank für die Hilfe!<br>
<br>
Mit freundlichen Grüßen,<br>
René Schmidt </div></body>
</html>