<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hallo,<div>Nachdem über das Wochenende jemand meinen Raspi am Stromkasten den Stecker gezogen hat, läuft nun so gut wie alles.</div><div>Aber Werte im Fronten habe ich dennoch nicht.</div><div><br></div><div>Ich versuche mal alle relevanten Ausgaben in dieser email zusammen zu fassen.</div><div><br></div><div>Ausgabe <font face="Lucida Grande">cat /dev/ttyUSB0 liefert Pakete von „?“ </font></div><div><font face="Lucida Grande">Ich denke das ist so „richtig“ :-)</font></div><div><font face="Lucida Grande"><br></font></div><div><span style="font-family: 'Lucida Grande';">cat /etc/vzlogger.conf</span></div><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div><div><font face="Lucida Grande">pi@raspberrypi ~ $ cat /etc/vzlogger.conf<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> * <a href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br> */<br> <br>{<br>"retry" : 30,<span class="Apple-tab-span" style="white-space:pre"> </span>/* how long to sleep between failed requests, in seconds */<br>//"daemon": false,<span class="Apple-tab-span" style="white-space:pre"> </span>/* run periodically */<br>//"foreground" : true,<span class="Apple-tab-span" style="white-space:pre"> </span>/* dont run in background (prevents forking) */<br>"verbosity" : 100,<span class="Apple-tab-span" style="white-space:pre"> </span>/* between 0 and 15 */<br>"log" : "/var/log/vzlogger.log",/* path to logfile, optional */<br> <br>"local" : {<br><span class="Apple-tab-span" style="white-space:pre"> </span>"enabled" : true,<span class="Apple-tab-span" style="white-space:pre"> </span>/* should we start the local HTTPd for serving live readings? */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"port" : 8080,<span class="Apple-tab-span" style="white-space:pre"> </span>/* the TCP port for the local HTTPd */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"index" : true,<span class="Apple-tab-span" style="white-space:pre"> </span>/* should we provide a index listing of available channels if no UUID was requested? */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"timeout" : 30,<span class="Apple-tab-span" style="white-space:pre"> </span>/* timeout for long polling comet requests, 0 disables comet, in seconds */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"buffer" : 600<span class="Apple-tab-span" style="white-space:pre"> </span>/* how long to buffer readings for the local interface, in seconds */<br>},<br> <br>"meters" : [<br><span class="Apple-tab-span" style="white-space:pre"> </span>{<br><span class="Apple-tab-span" style="white-space:pre"> </span>"enabled" : true,<span class="Apple-tab-span" style="white-space:pre"> </span>/* disabled meters will be ignored */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"protocol" : "sml",<span class="Apple-tab-span" style="white-space:pre"> </span>/* see 'vzlogger -h' for list of available protocols */<br><span class="Apple-tab-span" style="white-space:pre"> </span>"device" : "/dev/ttyUSB0",<br><span class="Apple-tab-span" style="white-space:pre"> </span>//"host" : "141.45.204.86",<br><span class="Apple-tab-span" style="white-space:pre"> </span>"channels": [{<br><span class="Apple-tab-span" style="white-space:pre"> </span>"uuid" : "fd6d8f90-55bc-11e3-bb6b-73bed098fae3",<br><span class="Apple-tab-span" style="white-space:pre"> </span>"middleware" : "localhost/middleware.php",<br><span class="Apple-tab-span" style="white-space:pre"> </span>"identifier" : "power" /* an OBIS alias, see 'vzlogger -h' for list of available aliases */<br><span class="Apple-tab-span" style="white-space:pre"> </span>}<br><span class="Apple-tab-span" style="white-space:pre"> </span>]<br><span class="Apple-tab-span" style="white-space:pre"> </span>}<br>]}</font></div><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div><div><br></div><div><font face="Lucida Grande">Teil der vzlogger.conf nach letztem Restart:</font></div><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div><div><font face="Lucida Grande">[Nov 25 12:17:59] Opened logfile /var/log/vzlogger.log<br>[Nov 25 12:17:59][] ===> Start meters.<br>[Nov 25 12:17:59][mtr0] Meter connection established<br>[Nov 25 12:17:59][mtr0] Meter thread started<br>[Nov 25 12:17:59][mtr0] meter is opened. Start channels.<br>[Nov 25 12:17:59][chn0] Logging thread started<br>[Nov 25 12:17:59][http] Starting local interface HTTPd on port 8080<br>[Nov 25 12:17:59][] Startup done.<br>[Nov 25 12:17:59][mtr0] Number of readers: 32<br>[Nov 25 12:17:59][mtr0] Config.daemon: 1<br>[Nov 25 12:17:59][mtr0] Config.local: 1<br>[Nov 25 12:17:59][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes<br>[Nov 25 12:17:59][chn0] Using default api:<br>pi@raspberrypi ~ $ </font><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div></div><div><div><span style="font-family: 'Lucida Grande';"><br></span></div><div><span style="font-family: 'Lucida Grande';">sudo /etc/init.d/vzlogger restart</span></div><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div></div><div><font face="Lucida Grande">sudo /etc/init.d/vzlogger restart</font></div><div><font face="Lucida Grande">[....] Restarting smartmetering server: vzlogger[Nov 25 12:48:43][mtr0] Creating new meter with protocol sml.<br>[Nov 25 12:48:43][mtr0] Meter configured.<br>[Nov 25 12:48:43] New meter initialized (protocol=sml)<br>[Nov 25 12:48:43] Configure channel.<br>[Nov 25 12:48:43][chn0] New channel initialized (uuid=...98fae3 protocol=volkszaehler id=power)<br>[Nov 25 12:48:43] Have 1 meters.<br>[Nov 25 12:48:43][main] foreground=0, daemon=1, local=1<br>[Nov 25 12:48:43] Daemonize process...<br>. ok </font></div><div><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span><span style="font-family: 'Lucida Grande';">#############</span></div><div><span style="font-family: 'Lucida Grande';"><br></span></div><div><font face="Lucida Grande">mysql </font></div><div>SELECT * FROM volkszaehler.entities where uuid like 'fd6d8f90-55bc-11e3-bb6b-73bed098fae3‘;</div><div>liefert id 23</div><div><br></div><div>SELECT * FROM volkszaehler.data where channel_id = 23;</div><div>liefert nichts.</div><div><span style="font-family: 'Lucida Grande';"><br></span></div><div><div><font face="Lucida Grande">UUID habe ich als Kanal im frontend angelegt und im vzlogger eingetragen.</font></div><div><font face="Lucida Grande">Ich arbeite noch mit weiteren externen Messgeräten und füttere das frontend per Request mit Daten, das funktioniert und wird angezeigt.</font></div></div><div><font face="Lucida Grande"><br></font></div><div><font face="Lucida Grande">Kann mir wer weiterhelfen ?</font></div><div><font face="Lucida Grande"><br></font></div><div><font face="Lucida Grande">danke</font></div><div><font face="Lucida Grande"><br></font></div><div><font face="Lucida Grande">LG </font></div><div><br></div><div><font face="Lucida Grande">Julian<span class="Apple-tab-span" style="white-space:pre"> </span></font></div><div><font face="Lucida Grande"><br></font></div><div><br></div><div><br><div><div>Am 22.11.2013 um 09:59 schrieb dl4huf <<a href="mailto:dl4huf@t-online.de">dl4huf@t-online.de</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Am 22.11.2013 09:25, schrieb Udo1:<br><blockquote type="cite"><br>Am 22.11.2013 08:58, schrieb Julian Vollmer:<br><blockquote type="cite">cat: /dev/ttypusb0<br></blockquote>Das soll wohl eher cat: /dev/ttyusb0 heißen.<br><br>Gruß<br>Udo<br></blockquote><br>Und noch eher "cat /dev/ttyUSB0".<br>Unter Linux ist Groß-/Kleinschreibung wichtig.<br><br>Du kannst auch mit "ls -l /dev/tty*" nachsehen ob das Device überhaupt da ist.<br><br>Gruß Ronald<br><br></blockquote></div><br></div></body></html>