<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Entweder Pfad ändern oder lighthttpd probieren. Der scheint relaxter zu sein.</div><div><br></div><div>Vg Andreas</div><div><br>Am 11.01.2016 um 22:36 schrieb autofee <<a href="mailto:autofee@uni.de">autofee@uni.de</a>>:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=windows-1252">Hallo,<div><br><div><div>Am 11.01.2016 um 21:08 schrieb Andreas Goetz <<a href="mailto:cpuidle@gmail.com">cpuidle@gmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto;"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Was passiert wenn Du die Invalid URI mal im Browser eingibst?<br></div></div></div></blockquote><div><br></div></span><a href="http://172.16.10.42/middleware.php/data/3e708b20-6ce7-11e3-9b8f-293f25607caa.json" target="_blank">http://172.16.10.42/middleware.php/data/3e708b20-6ce7-11e3-9b8f-293f25607caa.json</a></div><div><br></div><div><pre style="word-wrap:break-word;white-space:pre-wrap">{"version":"0.3","data":{"tuples":[],"uuid":"3e708b20-6ce7-11e3-9b8f-293f25607caa","from":0,"to":0,"average":0,"consumption":0,"rows":0}}</pre><span class=""><br></span></div></div></blockquote><div>Passt, der Pfad stimmt also. Denke die Requests der NetIO sind falsch- hoffe Du kannst das zum testen ändern...<br><br></div></div></div></div></blockquote></div><br><div>Auf die schnelle, leider nein. Dafür muss ich im Keller erst den Net-IO wieder ausbauen, den ISP-Programmer suchen, ethersex zusammen klauben, irgendwo noch installieren, eine neu Konfig bauen und diese dann flashen. Das wird ein Akt.</div><div><br></div><div>Okay, scheint sich auf den Net-IO zu konzentrieren.</div><div><br></div><div><blockquote type="cite"><blockquote type="cite">*  Dessen s0 Ausgang hängt an einem "Net-IO" mit ethersex am Eingang ADC4 (PA4). Der Net-IO sendet über die LAN Schnittstelle die Werte an einen Raspberry Pi. Ohne Timestamp, ohne Summierung.<br><br>CONF_WATCHASYNC_SERVER="VZ.lan"<br>CONF_WATCHASYNC_PORT=80<br>CONF_WATCHASYNC_METHOD="POST"<br>CONF_WATCHASYNC_PATH="middleware.php/data/"<br>CONF_WATCHASYNC_END_PATH=".json"<br># CONF_WATCHASYNC_TIMESTAMP is not set<br># CONF_WATCHASYNC_SUMMARIZE is not set<br>CONF_WATCHASYNC_PA4=y<br>CONF_WATCHASYNC_PA4_ID="3e708b20-6ce7-11e3-9b8f-293f25607caa“</blockquote></blockquote><br></div><div>Wenn ich das nach den Jahren noch richtig zusammen bekomme:</div><div><br></div><div>„VZ.lan“ braucht der Net-IO, damit er die IP Adresse der Middleware auflösen (ermitteln) kann.</div><div>Die Auflösung macht der interne DNS Server (Router) hier. Dafür hat dieser einen statischen Eintrag im DNS Server.</div><div>Und, wie es aussieht, funktioniert das auch. Sonst kämen an der RPi, der Middleware, ja keine Daten an.</div><div>Der Name ist eigentlich Schall und Rauch, die Auflösung kann ich jederzeit im Router einfach ändern.</div><div>Daher steht auch nicht die IP des RPi fest programmiert im Net-IO. Da schon wegen einigen anderen Dinge DNS auf dem Net-IO aktiviert sein musste (NTP), wäre die IP Adresse des RPi sowieso nicht fest zu programmieren gewesen.</div><div><br></div><div><pre class="code" style="font-family: monospace, serif; font-size: 12.8px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; padding: 0.5em; border: 1px dashed rgb(201, 223, 230); overflow: auto; text-align: justify; widows: 1; background-color: rgb(247, 249, 250);">...
Applications --->:
  watchasync service --->: einschalten
    Server: <Hostname des Middlewareservers>
    Server IP: <IP-Adresse des Middlewareservers> (diese Option erscheint nur, falls der DNS-Support deaktiviert wurde)</pre><div>Am 11.01.2016 um 21:51 schrieb Justin Otherguy <<a href="mailto:justin@justinotherguy.org">justin@justinotherguy.org</a>>:<br><br><blockquote type="cite">sofern in CONF_WATCHASYNC_PATH wirklich "middleware.php/data/" (ohne führenden „/") steht, ist das konsistent mit dem, was Dein Apache meldet.<br></blockquote><div><br></div><div>Wow, stimmt! Da fehlt der führende Slash! Danke! War mir noch nie aufgefallen.</div><div>Klasse Hinweis, vom von einem Urgestein des Volkszählers. :)</div><br><blockquote type="cite"><br>Der beste Weg: korrigiere CONF_WATCHASYNC_PATH von "middleware.php/data/" in "/middleware.php/data/"<br>alternativ: versuche herauszufinden, wie das vorher funktioniert hat.<br>Die Karte ist futsch - kommst Du noch an die Logs und/oder die Config des Apache?<br></blockquote><div><br></div>Auf der alten Installation lief nicht apache, sondern lighttp.</div><div>Würde es Sinn machen, es mit diesem Webserver es erneut zu versuchen?</div><div><br></div><div>Im error.log von lighttp steht dort gar nichts.</div><div>Im access.log steht:</div><div>172.16.10.44 vzi.lan - [06/Dec/2015:12:53:08 +0100] "POST middleware.php/data/3e708b20-6ce7-11e3-9b8f-293f25607caa.json HTTP/1.1" 200 28 "-" „-"</div><div><br></div><div>Bei apache im access.log steht:</div><div><div>172.16.10.44 - - [11/Jan/2016:21:21:18 +0100] "POST middleware.php/data/3e708b20-6ce7-11e3-9b8f-293f25607caa.json HTTP/1.1" 400 488 "-" „-"</div><div><br></div><div><br></div><div>Inhalt: lighttp.conf</div><div><br></div><div><div>server.modules = (</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"mod_access",</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>"mod_alias",</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>"mod_compress",</div><div> <span class="Apple-tab-span" style="white-space:pre">      </span>"mod_redirect",</div><div>       "mod_rewrite",</div><div>)</div><div><br></div><div>server.document-root        = "/var/www/<a href="http://volkszaehler.org/htdocs">volkszaehler.org/htdocs</a>"</div><div>server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )</div><div>server.errorlog             = "/var/log/lighttpd/error.log"</div><div>server.pid-file             = "/var/run/lighttpd.pid"</div><div>server.username             = "www-data"</div><div>server.groupname            = "www-data"</div><div>server.port                 = 80</div><div><br></div><div><br></div><div>index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )</div><div>url.access-deny             = ( "~", ".inc" )</div><div>static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )</div><div><br></div><div>compress.cache-dir          = "/var/cache/lighttpd/compress/"</div><div>compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain“ )</div></div><div><br></div><div><br></div><div>Inhalt: .htaccess:</div><div><br></div><div><div>Allow from all</div><div><br></div><div><IfModule mod_rewrite.c></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>RewriteEngine On</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>RewriteRule ^middleware/(.*) middleware.php/$1 [L]</div><div></IfModule></div></div><div><br></div><div><br></div><br><blockquote type="cite">Falls Du die Möglichkeit hast, wäre aber das Neu-Flashen des Net-IO ganz klar der bessere Weg.</blockquote><br></div></div><div>Wie oben geschrieben, das wird aufwendig. Aber was muss, das muss.</div><div><br></div><div>Genügt es:</div><div><blockquote type="cite"><blockquote type="cite">CONF_WATCHASYNC_PATH="middleware.php/data/„</blockquote></blockquote><br></div><div>in;</div><div>CONF_WATCHASYNC_PATH=„/middleware.php/data/"</div><div> zu ändern oder muss man sonst noch etwas umkonfigurieren/ändern?</div><div><br></div><div>Das hilft schon mal weiter. Zumindest für die Stromzähler.</div><div>Ist schon mal ein erfolgversprechender Ansatzpunkt zum weiter basteln.</div><div>Vielen Dank an alle die geholfen haben.</div><div><br></div><div>Beste Grüße</div><div>Frank</div><div><br></div><div><br></div></div></div></blockquote></body></html>