<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">mit ppm musst du das middleware.php in der URL weglassen.</div><div dir="auto"><br></div><div dir="auto">Grüße</div><div dir="auto">Frank</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Sebastian Pricker <<a href="mailto:mail@pricker.net">mail@pricker.net</a>> schrieb am Mo., 25. März 2019, 22:10:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Moin zusammen,<div><br></div><div>Ich muss mich leider nochmal mit einem Fehler melden. Mein VZlogger hat bislang nur die Zählerdaten in die influxDB geschrieben, problemlos.</div><div>Nun habe ich die neueste Version des Volkszähler installiert und lasse die Daten in die middleware schreiben.</div><div>Hier ein Ausschnitt aus dem Log:</div><div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Got 10 new readings from meter:</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12980593.20 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12980593.20 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12833695.10 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12833695.10 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=472.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=-2.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=127.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][mtr0] Reading: id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=346.00 ts=1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:50][chn0] Adding reading to queue (value=12980593.20 ts=1553547410869)</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] ==> number of tuples: 2</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] compare: 1553547407522 1553547409155</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] compare: 1553547409155 1553547410869</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] copied 8/8 values for middleware transmission</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] JSON request body: [ [ 1553547399372, 12980591.800000001 ], [ 1553547401053, 12980592 ], [ 1553547402735, 12980592.200000001 ], [ 1553547404191, 12980592.4 ], [ 1553547405890, 12980592.600000001 ], [ 1553547407522, 12980592.800000001 ], [ 1553547409155, 12980593 ], [ 1553547410869, 12980593.200000001 ] ]</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Hostname 127.0.0.1 was found in DNS cache</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL:   Trying 127.0.0.1...</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: TCP_NODELAY set</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#4)</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Sent 286 bytes.. </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Sent '[ [ 1553547399372, 12980591.800000001 ], [ 1553547401053, 12980592 ], [ 1553547402735, 12980592.200000001 ], [ 1553547404191, 12980592.4 ], [ 1553547405890, 12980592.600000001 ], [ 1553547407522, 12980592.800000001 ], [ 1553547409155, 12980593 ], [ 1553547410869, 12980593.200000001 ] ]' bytes</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: upload completely sent off: 286 out of 286 bytes</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Received 105 bytes</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Received '{"version":"0.3","exception":{"message":"Unknown context: 'middleware.php'","type":"Exception","code":0}}' bytes</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Curl_http_done: called premature == 0</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL: Closing connection 4</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] CURL Error from middleware: 'Exception': 'Unknown context: 'middleware.php''</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:51][chn0] Waiting 3 secs for next request due to previous failure</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Mar 25 21:56:52][mtr0] Got 10 new readings from meter:</span></div></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">Die vzlogger.conf:</div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-stretch:normal;line-height:normal"><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">{</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"retry" : 3,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"daemon": true,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"verbosity" : 15,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"log" : "/var/log/vzlogger.log",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"> </span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"local" : {</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "enabled" : false,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "port" : 80,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "index" : false,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "timeout" : 30,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "buffer" : 600</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">},</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"> </span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">"meters" : [{</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "protocol" : "sml",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"><span class="m_8433419296535072953Apple-tab-span" style="white-space:pre-wrap">               </span>"use_local_time" : true,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "enabled" : true,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "device" : "/dev/ttyUSB0",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "parity" : "8N1",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "baudrate" : 9600,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "aggtime" : -1,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "aggfixedinterval" : false,</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">         "channels": [</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">             {<span class="m_8433419296535072953Apple-tab-span" style="white-space:pre-wrap">  </span></span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"><span class="m_8433419296535072953Apple-tab-span" style="white-space:pre-wrap">                             </span>"api": "volkszaehler",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">                "uuid" : "c1461740-4e3d-11e9-8f0e-7be4169ace4f",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">                "middleware" : "<a href="http://127.0.0.1/middleware.php" target="_blank" rel="noreferrer">http://127.0.0.1/middleware.php</a>",</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">                "identifier" : "1-0:1.8.0*255"</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">          }</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">]</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">     }]</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px">}</span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal"><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div style="margin:0px;font-stretch:normal;line-height:normal">Ich habe Apache2 deinstalliert und nutze den PPM Webserver, wie auf git beschrieben. Deshalb habe ich Port 80 ausgewählt.</div><div style="margin:0px;font-stretch:normal;line-height:normal"><br></div><div style="margin:0px;font-stretch:normal;line-height:normal">Ist das ein Fehler in der middleware?</div><div style="margin:0px;font-stretch:normal;line-height:normal"><br></div><div style="margin:0px;font-stretch:normal;line-height:normal">Viele Grüße</div><div style="margin:0px;font-stretch:normal;line-height:normal">Sebastian</div><div style="margin:0px;font-stretch:normal;line-height:normal"><br></div></div></div></blockquote></div>