<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Wenn vzlogger so alle 5 Minuten abbricht und sich nicht mehr starten lässt- was macht man denn dann?</div><div><br></div><div>Cronjob alle 5 Minuten reboot ist doof!<br><br><p><span style="background-color: rgba(255, 255, 255, 0);">Mit den besten Grüßen</span></p><p><span style="background-color: rgba(255, 255, 255, 0);">Bernd Gewehr</span></p><div><pre><font face=".Helvetica NeueUI"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><a href="x-apple-data-detectors://0/0" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="0/0">Burgstr. 45F</a></span></font></pre><pre><font face=".Helvetica NeueUI"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><a href="x-apple-data-detectors://0/0" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="0/0">45289 Essen</a></span></font></pre><pre><font face=".Helvetica NeueUI"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><a href="tel:02014784606" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="0/1">02014784606</a></span></font></pre><pre><font face=".Helvetica NeueUI"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><a href="tel:015209328236" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="0/2">015209328236</a></span></font></pre></div></div><div><br>Am 05.02.2013 um 21:54 schrieb "Bernd Gewehr" <<a href="mailto:Bernd@gewehr.net">Bernd@gewehr.net</a>>:<br><br></div><blockquote type="cite"><div><span>.. Erstaunlich, was ein reboot bewirken kann!</span><br><span></span><br><span>Nun stehe die richtigen Werte in der DB, aber die Anzeige im Frontend ist falsch:</span><br><span></span><br><span>DB</span><br><span>870 7 1360096833217 19659339</span><br><span>     871 6 1360096833217 1089.5</span><br><span></span><br><span></span><br><span>FRONTEND:</span><br><span>     (7) Arbeit Strommesser -288435.37 W 573.55 kW 531.49 W -2971.43 W 88.9 Wh</span><br><span></span><br><span>     (6) Strom Stromzaehler 61.26 W 1.43 kW 452.58 W 914.29 W 75.7 Wh</span><br><span></span><br><span></span><br><span>(6) ist ja OK, aber (7) ist Blödsinn. Was tun?</span><br><span></span><br><span>-----Ursprüngliche Nachricht----- From: Bernd Gewehr</span><br><span>Sent: Tuesday, February 05, 2013 9:20 PM</span><br><span>To: <a href="http://volkszaehler.org">volkszaehler.org</a> - users</span><br><span>Subject: Re: [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</span><br><span></span><br><span>Mann, ist das schwierig.</span><br><span></span><br><span>Nun habe ich vzlogger soweit, mir die richtigen Daten anzuzeigen:</span><br><span></span><br><span>[Feb 05 21:15:01][mtr0] Got 5 new readings from meter:</span><br><span>[Feb 05 21:15:01][mtr0] Reading: id=129-129:199.130.3*255 value=0.00</span><br><span>ts=1360095301.335</span><br><span>[Feb 05 21:15:01][mtr0] Reading: id=1-0:0.0.9*255 value=0.00</span><br><span>ts=1360095301.335</span><br><span>[Feb 05 21:15:01][mtr0] Reading: id=1-0:1.8.1*255 value=19658886.70</span><br><span>ts=1360095301.335</span><br><span>[Feb 05 21:15:01][mtr0] Reading: id=1-0:1.7.1*255 value=1165.00</span><br><span>ts=1360095301.335</span><br><span>[Feb 05 21:15:01][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000</span><br><span>[Feb 05 21:15:01][mtr0] Updating interval to 1</span><br><span>[Feb 05 21:15:01][ch0]  Buffer dump (size=0 keep=0): {}</span><br><span>[Feb 05 21:15:01][ch1]  Buffer dump (size=0 keep=0): {}</span><br><span></span><br><span>Wenn ich aber in meiner vzlogger.conf das Folgende eintrage, wird nichts in</span><br><span>die db geschrieben:</span><br><span>/**</span><br><span>* vzlogger configuration</span><br><span>*</span><br><span>* use proper encoded JSON with javascript comments</span><br><span>*</span><br><span>* take a look at the wiki for detailed information:</span><br><span>* <a href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a></span><br><span>*/</span><br><span></span><br><span>{</span><br><span>"retry" : 30,                   /* how long to sleep between failed</span><br><span>requests, in sec$</span><br><span>"daemon": true,         /* run periodically */</span><br><span>//"foreground" : true,          /* dont run in background (prevents forking)</span><br><span>*/</span><br><span>"verbosity" : 15,               /* between 0 and 15 */</span><br><span>"log" : "/var/log/vzlogger.log",/* path to logfile, optional */</span><br><span></span><br><span>"local" : {</span><br><span>//      "enabled" : false,      /* should we start the local HTTPd for</span><br><span>serving live $</span><br><span>       "port" : 8080,          /* the TCP port for the local HTTPd */</span><br><span>       "index" : true,         /* should we provide a index listing of</span><br><span>available ch$</span><br><span>       "timeout" : 30,         /* timeout for long polling comet requests,</span><br><span>0 disabl$</span><br><span>       "buffer" : 600          /* how long to buffer readings for the local</span><br><span>interfa$</span><br><span>},</span><br><span></span><br><span>    "meters" : [{</span><br><span>        "enabled" : true,</span><br><span>        "device" : "/dev/ttyAMA0",</span><br><span>        "protocol" : "sml",</span><br><span>        "channels": [{</span><br><span>            "uuid" : "635481a0-6fcd-11e2-8587-eda25228f8bf",</span><br><span>            "middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</span><br><span>            "identifier" : "1-0:1.8.1", /* Leistung */</span><br><span>            }, {</span><br><span>            "uuid" : "745bf0c0-6fcd-11e2-8fe3-b791ba7abaa9",</span><br><span>            "middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</span><br><span>            "identifier" : "1-0:1.7.1*", /* Wirkarbeit */</span><br><span>            }],</span><br><span>                 }]</span><br><span>}</span><br><span></span><br><span>, obwohl die UUIDs aus der entities-Tabelle genau zusammenpassen:</span><br><span>           6 635481a0-6fcd-11e2-8587-eda25228f8bf electric meter channel</span><br><span>           7 745bf0c0-6fcd-11e2-8fe3-b791ba7abaa9 power channel</span><br><span>           8 8102dbc0-6fcd-11e2-a8b7-a1307aa80770 gas channel</span><br><span>           9 89a19f80-6fcd-11e2-be46-d7713e888ef4 water channel</span><br><span></span><br><span></span><br><span>WARUM???</span><br><span></span><br></div></blockquote></body></html>