[vz-users] Raspberry Pi B + Pi-Erweiterung + TTL-Optokopf für eHZ + CNY70 an S0_1 für Gas + CNY70 an S0_2 für Wasser

Bernd Gewehr Bernd at gewehr.net
Tue Feb 5 21:20:26 CET 2013


Mann, ist das schwierig.

Nun habe ich vzlogger soweit, mir die richtigen Daten anzuzeigen:

[Feb 05 21:15:01][mtr0] Got 5 new readings from meter:
[Feb 05 21:15:01][mtr0] Reading: id=129-129:199.130.3*255 value=0.00 
ts=1360095301.335
[Feb 05 21:15:01][mtr0] Reading: id=1-0:0.0.9*255 value=0.00 
ts=1360095301.335
[Feb 05 21:15:01][mtr0] Reading: id=1-0:1.8.1*255 value=19658886.70 
ts=1360095301.335
[Feb 05 21:15:01][mtr0] Reading: id=1-0:1.7.1*255 value=1165.00 
ts=1360095301.335
[Feb 05 21:15:01][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Feb 05 21:15:01][mtr0] Updating interval to 1
[Feb 05 21:15:01][ch0]  Buffer dump (size=0 keep=0): {}
[Feb 05 21:15:01][ch1]  Buffer dump (size=0 keep=0): {}

Wenn ich aber in meiner vzlogger.conf das Folgende eintrage, wird nichts in 
die db geschrieben:
/**
* vzlogger configuration
*
* use proper encoded JSON with javascript comments
*
* take a look at the wiki for detailed information:
* http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
*/

{
"retry" : 30,                   /* how long to sleep between failed 
requests, in sec$
"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 $
        "port" : 8080,          /* the TCP port for the local HTTPd */
        "index" : true,         /* should we provide a index listing of 
available ch$
        "timeout" : 30,         /* timeout for long polling comet requests, 
0 disabl$
        "buffer" : 600          /* how long to buffer readings for the local 
interfa$
},

     "meters" : [{
         "enabled" : true,
         "device" : "/dev/ttyAMA0",
         "protocol" : "sml",
         "channels": [{
             "uuid" : "635481a0-6fcd-11e2-8587-eda25228f8bf",
             "middleware" : "http://localhost/middleware.php",
             "identifier" : "1-0:1.8.1", /* Leistung */
             }, {
             "uuid" : "745bf0c0-6fcd-11e2-8fe3-b791ba7abaa9",
             "middleware" : "http://localhost/middleware.php",
             "identifier" : "1-0:1.7.1*", /* Wirkarbeit */
             }],
                  }]
}

, obwohl die UUIDs aus der entities-Tabelle genau zusammenpassen:
            6 635481a0-6fcd-11e2-8587-eda25228f8bf electric meter channel
            7 745bf0c0-6fcd-11e2-8fe3-b791ba7abaa9 power channel
            8 8102dbc0-6fcd-11e2-a8b7-a1307aa80770 gas channel
            9 89a19f80-6fcd-11e2-be46-d7713e888ef4 water channel


WARUM???



More information about the volkszaehler-users mailing list