[vz-users] vzlogger: Daten in mySQL im Sekundentakt

Mark mark.schuette at gmail.com
Thu Mar 13 10:26:52 CET 2014


Hallo zusammen,

habe mittlerweile VZLogger mit IRDA Schreib- Lesekopf (von Udo) am 
Laufen. Daten kommen auch in SQL an, leider allerdings etwas zu viel :-)

Kann mir jemand sagen wie ich das umstellen kann damit nur alle 5 
Minuten ein Wert als Summe geschrieben wird?

Anbei meine vzlogger.conf und ein Screen aus phpmyadmin.

/**
  * 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 seconds */
"daemon": true,                      /* run periodically */
//"foreground" : true,               /* dont run in background (prevents 
forking) */
//"verbosity" : 5,                   /* between 0 and 15 */
// "log" : "/var/log/vzlogger.log",     /* path to logfile, optional */

"local" : {
         "enabled" : true,      /* 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" : [{
         "enabled" : true,       /* disabled meters will be ignored */
         "protocol" : "d0",     /* see 'vzlogger -h' for list of 
available protocols */
         "device" : "/dev/ttyAMA0",
         "interval" : 900, /* */
         "channels": [{
                 "uuid" : "ce6670c0-a864-11e3-a5e7-392e581bc035",
                 "middleware" : "http://192.168.2.114/middleware.php",
                 "identifier" : "1-0:1.8.0" /* Gesamtstromverbrauch 
Hauszaehler */
         }]
         }
]}


###

sql

Die Datenmenge laesst ansonsten meinen Raspberry bald in die Knie gehen!

VG
Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20140313/c2ce3313/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql_sekundentakt.PNG
Type: image/png
Size: 85706 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20140313/c2ce3313/attachment-0001.png>


More information about the volkszaehler-users mailing list