<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Moin,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Mar 2017, at 10:31, News <<a href="mailto:news@spider-wolf.de" class="">news@spider-wolf.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorry kann dir nicht ganz folgen. </div></div></blockquote><div><br class=""></div>Dann nochmal, jetzt habe ich etwas mehr Zeit.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hier meine Option.js</div><div class=""><br class=""></div><div class=""><div class="">vz.options = {</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>language: 'de',</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>precision: 2,<span class="Apple-tab-span" style="white-space:pre"> </span>// TODO update from middleware capabilities?</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>maxPrecision: {<span class="Apple-tab-span" style="white-space:pre"> </span>// override precision for certain units</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>'°C': 1</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>},</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>tuples: null,<span class="Apple-tab-span" style="white-space:pre"> </span>// automatically determined by plot size</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>refresh: true,<span class="Apple-tab-span" style="white-space:pre"> </span>// update chart if zoomed to current timestamp</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>interval: 24*60*60*1000,<span class="Apple-tab-span" style="white-space:pre"> </span>// 1 day default time interval to show</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>totalsInterval: 300,<span class="Apple-tab-span" style="white-space:pre"> </span>// update interval for total consumption in s (only channels where initialconsumption > 0)</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>pushRedrawTimeout: 1000,<span class="Apple-tab-span" style="white-space:pre"> </span>// ms delay for collecting push updates before redrawing</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>minTimeout: 2000,<span class="Apple-tab-span" style="white-space:pre"> </span>// minimum refresh time in ms</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>shortenLongTypes: false,<span class="Apple-tab-span" style="white-space:pre"> </span>// show shorter type names in table</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>middleware: [</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>title: 'Local (default)',</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>url: 'middleware.php'</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>// live: 8082<span class="Apple-tab-span" style="white-space:pre"> </span>// NOTE: live updates require</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>// - push-server running and</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>// - either apache proxy forwarding configured according to</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>//<span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://github.com/volkszaehler/volkszaehler.org/issues/382" class="">https://github.com/volkszaehler/volkszaehler.org/issues/382</a></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>// <span class="Apple-tab-span" style="white-space:pre"> </span>- or push-server live update port configured and accessible</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}, {</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>title: 'Volkszaehler Demo',</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>url: '//<a href="http://demo.volkszaehler.org/middleware.php'" class="">demo.volkszaehler.org/middleware.php'</a></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</div></div></div></div></blockquote><div><br class=""></div>Hier ist der Fehler. Es muss heissen:</div><div><br class=""></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}, {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>title: 'Volkszaehler Demo',</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>url: '<a href="https://demo.volkszaehler.org/middleware.php" class="">https://demo.volkszaehler.org/middleware.php</a>'</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br class=""></div><div>Da fehlte also das https. Seitdem demo einen “harten” redirect von http auf https macht mag Safari/Chrome das mangels Konformität mit der CORS Policy nicht mehr. Soeben behoben.</div><div><br class=""></div><div>Hat aber alles nix mit nicht ankommenden Daten zu tun. Wie Du die analysieren kannst ist im angegebenen Wikilink ebenfalls ganz gut erklärt.</div><div><br class=""></div><div>Viele Grüße, Andreas</div><div><br class=""></div><div>...</div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">};</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 12.03.2017 um 08:46 schrieb Andreas Götz <<a href="mailto:cpuidle@gmail.com" class="">cpuidle@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">Das reicht, schaue ich mit an. Fürs erste genügt es wenn Du demo aus der options.js entfernst, dann sollte der Fehler weg sein. <br class=""><br class="">Viele Grüße,<div class="">Andreas</div></div><div class=""><br class="">Am 12.03.2017 um 08:34 schrieb News <<a href="mailto:news@spider-wolf.de" class="">news@spider-wolf.de</a>>:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class="">Hi,<div class=""><br class=""></div><div class="">ich arbeite mit OSX. habe im Safari die „Fehlerkonsole einblenden“ ausgewählt. Hoffe das ist gemeint</div><div class=""><br class=""></div><div class=""><Bildschirmfoto 2017-03-12 um 08.32.42.png></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 12.03.2017 um 08:15 schrieb Andreas Götz <<a href="mailto:cpuidle@gmail.com" class="">cpuidle@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Entwicklerkonsole</span></div></blockquote></div><br class=""></div></div></blockquote></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>