<div dir="auto"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">ok, kapiert. Das data-Array kannst du mit forEach() auseinander nehmen. Beim return musst du dann wieder ein Array aus Message-Objekten übergeben (siehe <a href="https://nodered.org/docs/writing-functions#multiple-messages" target="_blank" rel="noreferrer">https://nodered.org/docs/writing-functions#multiple-messages</a>).</div><div dir="auto">Den Rest dazwischen musst du selbst basteln ;-)</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">Christian Wulff <<a href="mailto:christianwulff@gmx.de" target="_blank" rel="noreferrer">christianwulff@gmx.de</a>> schrieb am Mo., 24. Sep. 2018, 23:52:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="DE" link="blue" vlink="purple"><div class="m_3434995697358434531m_8917455727613941367WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Da hab ich mich wohl falsch ausgedrückt. Pro UUID ist immer nur ein timestamp und ein Wert drin.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich hatte weiter unten drei Beispiele eingefügt.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hier nochmal:<u></u><u></u></span></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-1111-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815350021,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    13875.6</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        }</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    ]</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#b72828;background:white">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Der läuft einwandfrei durch, weil es nur ein Kanal ist.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Beim nächsten sind zwei UUIDs drin, davon kriege ich nur die erste erwischt:<u></u><u></u></span></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-2222-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815406656,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    12309.5</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-3333-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                </span><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">[</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815405848,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    13683.8</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        }</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    ]</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#b72828;background:white">}<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#b72828;background:white"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Und hier bei den Temperaturen kommt gleich ein ganzer Haufen zusammen, von dem ich auch nur den ersten rauskriege mit meinem Code ohne Schleife:<u></u><u></u></span></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-6666-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815433104,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    21.562</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-7777-xxxx-xxxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815433972,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    20.937</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-8888-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815420583,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    21.75</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-9999-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815427434,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    22.187</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-0000-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#b72828;background:white">     ...</span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Frank Richter [mailto:<a href="mailto:frank.richter83@gmail.com" rel="noreferrer noreferrer" target="_blank">frank.richter83@gmail.com</a>] <br><b>Gesendet:</b> Montag, 24. September 2018 23:27<br><b>An:</b> <a href="http://volkszaehler.org" rel="noreferrer noreferrer" target="_blank">volkszaehler.org</a> - users<br><b>Betreff:</b> Re: [vz-users] Daten auf MQTT Topics verteilen<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Für welchen Zählertyp liefert Push denn überhaupt mehr als 1 Tupel?<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Grüße<u></u><u></u></p></div><div><p class="MsoNormal">Frank<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Christian Wulff <<a href="mailto:christianwulff@gmx.de" rel="noreferrer noreferrer" target="_blank">christianwulff@gmx.de</a>> schrieb am Mo., 24. Sep. 2018, 23:19:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Moin,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">also wenn ich behilflich sein kann beim Testen, dann immer gerne.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Das Problem ist nur, dass ich kein JavaScript kann, von MQTT keine Ahnung habe, von Linux sicher keine Ahnung habe, usw.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dennoch habe ich hier einiges zum Laufen bekommen mit Eurer Hilfe und Hilfe von Foren, wenn ich denn mal Zeit habe.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Und von der Zeit habe ich leider auch nicht so viel. Deswegen dauert es meistens eine Weile.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich hatte es ja zuerst ohne JSON node. Da hab ich gar nichts hinbekommen. Fehlermeldung: </span><span class="m_3434995697358434531m_8917455727613941367m2591136202427341217debug-message-type-string1"><span style="font-size:10.0pt;font-family:"Courier New";background:white">"SyntaxError: Unexpected token o in JSON at position 1"</span></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dann habe ich den JSON node eingefügt und schon ging es fast. </span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Fehlermeldung:</span><span lang="EN-US"> </span><span class="m_3434995697358434531m_8917455727613941367m2591136202427341217debug-message-type-string1"><span style="font-size:10.0pt;font-family:"Courier New";background:white">"TypeError: Cannot read property '0' of undefined</span></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">"</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich habe mit meinem Displayprojekt ja schon JSONs mit der ArduinoJSON Library geparst.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Zu der Library gibt’s einen JSON Assistent: <a href="https://arduinojson.org/v5/assistant/" rel="noreferrer noreferrer" target="_blank">https://arduinojson.org/v5/assistant/</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Da habe ich die JSONs vom Push Server und vom VZLOGGER reingehauen und habe dann erkannt, dass es beim VZLogger ein kleines bisschen anders aufgebaut ist.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Anstatt:</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myUuid = myJsonObj.data.uuid;</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myTimestamp = myJsonObj.data.tuples[0][0];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myValue = myJsonObj.data.tuples[0][1];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">habe ich dann:</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myUuid = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[0]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.uuid;</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myTimestamp = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[0]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.tuples[0][0];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myValue = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[0]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.tuples[0][1];</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In den Funktion node geschrieben. Und schon läuft es ohne Fehler durch.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Wenn ich das jetzt richtig durchblicke, wird so allerdings immer nur der erste Tuple des JSONs eingelesen, alle anderen nicht.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Die anderen würden wohl mit</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myUuid = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[1]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.uuid;</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myTimestamp = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[1]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.tuples[0][0];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myValue = myJsonObj.data</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">[1]</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">.tuples[0][1];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">usw. eingelesen werden.</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jetzt müsste man irgendwie eine Schleife programmieren, die immer alle Tuples aus einem JSON ausgibt.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Aber da hab ich leider wieder keinen Plan wie das geht </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">L</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich wollte ja auch nur meine drei Stromzähler über den VZLOGGER an MQTT pushen. Die Stromzählerwerte kommen einzeln raus, daher funktioniert das jetzt provisorisch bei mir.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Schöner wäre es natürlich wenn ich alle Werte aus den JSON rauskriegen würde, und nicht nur den ersten Wert.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Liebe Grüße,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chris</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Frank Richter [mailto:<a href="mailto:frank.richter83@gmail.com" rel="noreferrer noreferrer" target="_blank">frank.richter83@gmail.com</a>] <br><b>Gesendet:</b> Montag, 24. September 2018 21:30<br><b>An:</b> <a href="http://volkszaehler.org" rel="noreferrer noreferrer" target="_blank">volkszaehler.org</a> - users<br><b>Betreff:</b> Re: [vz-users] Daten auf MQTT Topics verteilen</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">Hi Christian,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">der Vorschlag von Matthias macht durchaus Sinn, das wäre der direkte Weg. Ich hab allerdings noch keine eigene Erfahrung mit MQTT via vzlogger, deswegen kann ich da nicht helfen. Aber Matthias freut sich sicher über Tester :-)<u></u><u></u></p></div><div><p class="MsoNormal">Den vzlogger kannst du wahrscheinlich auch auf dem alten Image neu compilieren. Aber irgendwann musst du halt auch mal upgraden, wenn du neue Features willst.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Ansonsten: lass den JSON-Node weg, das ist kontraproduktiv. Der Function Node erwartet ein Objekt, keinen String.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Grüße<u></u><u></u></p></div><div><p class="MsoNormal">Frank<u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">Am 24.09.2018 9:07 nachm. schrieb "Christian Wulff" <<a href="mailto:christianwulff@gmx.de" rel="noreferrer noreferrer" target="_blank">christianwulff@gmx.de</a>>:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hallo Matthias,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ich habe mir deine verlinkte Seite mal angesehen.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Verstanden habe ich davon aber nix, oder nur minimal rudimentär.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Weitergebracht hat mich das jetzt leider nicht.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Da die Posts vom August diesen Jahren kommen, vermute ich dass es mir auch nichts hilft.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Meine VZ Installation ist aus ~Oktober 2016.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">@Frank:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich habe jetzt mal testweise in Node-RED hinter den [post] /vzpush node einen json node drangehängt.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Nun wird schon mal aus dem JavaScript Object ein JSON String (ich vermute das hilft)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dann habe ich einen Funktionsknoten mit dem gleichen Code dahintergehängt, der bei dem VZ Push Server funktioniert:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var uuidMap = {</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                'xxxxxxxx-1111-xxxx-xxxx-xxxxxxxxxxxx':{topic:'Haus/Strom/Haus'},</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                ' xxxxxxxx-2222-xxxx-xxxx-xxxxxxxxxxxx ':{topic:'Haus/Strom/WärmepumpeHaupttarif'},</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                ' xxxxxxxx-3333-xxxx-xxxx-xxxxxxxxxxxx ':{topic:'Haus/Strom/WärmepumpeNebentarif'},</span><u></u><u></u></p><p class="MsoNormal" style="text-indent:35.4pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">' xxxxxxxx-4444-xxxx-xxxx-xxxxxxxxxxxx ':{topic:'Haus/Temperatur/T01Aussen'},</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                }; </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">// Parse JSON</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myJsonObj = [];</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myJsonObj = JSON.parse(msg.payload);</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">// Get UUID, timestamp and value</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myUuid = myJsonObj.data.uuid;</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myTimestamp = myJsonObj.data.tuples[0][0];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var myValue = myJsonObj.data.tuples[0][1];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">if (uuidMap[myUuid] !== undefined) {</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  // Create output payload</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  var myOutput = {};</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  myOutput.topic = uuidMap[myUuid]['topic'];</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  myOutput.payload = myValue;</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  return myOutput;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dann bekomme ich allerdings die Fehlermeldung:</span><u></u><u></u></p><p class="MsoNormal"><span class="m_3434995697358434531m_8917455727613941367m2591136202427341217m-7562182964021644465debug-message-type-string1"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";background:white">"TypeError: Cannot read property '0' of undefined"</span></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Und nun verlassen sie mich, ich finde nicht heraus wo der Fehler liegt.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kann da jemand weiterhelfen?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Danke und liebe Grüße,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chris</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">P.S.: Die JSON Strings sehen z.B. so aus:</span><u></u><u></u></p><div style="border:solid #cccccc 1.0pt;padding:7.0pt 7.0pt 7.0pt 7.0pt"><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-1111-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815350021,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    13875.6</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        }</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    ]</span><u></u><u></u></p></div><p class="MsoNormal"><span style="color:#b72828;background:white">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Oder so:</span><u></u><u></u></p><div style="border:solid #cccccc 1.0pt;padding:7.0pt 7.0pt 7.0pt 7.0pt"><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-2222-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815406656,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    12309.5</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-3333-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                </span><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">[</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815405848,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    13683.8</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        }</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    ]</span><u></u><u></u></p></div><p class="MsoNormal"><span style="color:#b72828;background:white">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Oder auch so:</span><u></u><u></u></p><div style="border:solid #cccccc 1.0pt;padding:7.0pt 7.0pt 7.0pt 7.0pt"><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">{</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">    "data": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-6666-xxxx-xxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815433104,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    21.562</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": "xxxxxxxx-7777-xxxx-xxxxx-xxxxxxxxxxxx",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815433972,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    20.937</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-8888-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815420583,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    21.75</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-9999-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    1537815427434,</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                    22.187</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            ]</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        },</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">        {</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            "uuid": " xxxxxxxx-0000-xxxx-xxxxx-xxxxxxxxxxxx ",</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span lang="EN-US" style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">            </span><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">"tuples": [</span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span style="font-size:10.5pt;font-family:"Courier New";color:#b72828;background:white">                [</span><u></u><u></u></p></div><p class="MsoNormal"><span style="color:#b72828;background:white">     ...</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Matthias Behr [mailto:<a href="mailto:mbehr@mcbehr.de" rel="noreferrer noreferrer" target="_blank">mbehr@mcbehr.de</a>] <br><b>Gesendet:</b> Sonntag, 23. September 2018 22:41</span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br><b>An:</b> <a href="http://volkszaehler.org" rel="noreferrer noreferrer" target="_blank">volkszaehler.org</a> - users<br><b>Betreff:</b> Re: [vz-users] Daten auf MQTT Topics verteilen</span><u></u><u></u></p></div></div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Hallo,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">schon mal <a href="https://github.com/volkszaehler/vzlogger/pull/357" rel="noreferrer noreferrer" target="_blank">https://github.com/volkszaehler/vzlogger/pull/357</a> angeschaut?<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Gruß<u></u><u></u></p></div><div><p class="MsoNormal">Matthias<u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p><div><p class="MsoNormal">Am 23.09.2018 um 21:47 schrieb Frank Richter <<a href="mailto:frank.richter83@gmail.com" rel="noreferrer noreferrer" target="_blank">frank.richter83@gmail.com</a>>:<u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Hi Christian,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">was gibt's da groß zu "entschlüsseln", das ist doch auch nur JSON? Geht im Prinzip genauso wie bei den Websockets-Messages vom Push-Server.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Gruß<u></u><u></u></p></div><div><p class="MsoNormal">Frank<u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Christian Wulff <<a href="mailto:christianwulff@gmx.de" rel="noreferrer noreferrer" target="_blank">christianwulff@gmx.de</a>> schrieb am So., 23. Sep. 2018 20:11:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hallo Frank,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">also so?:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  "push": [</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    {</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">      "url": "<a href="http://127.0.0.1:5582/" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:5582</a>"},</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    { "url": "<a href="http://127.0.0.1:1880/vzpush" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:1880/vzpush</a>"</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  ],</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Das scheint zu funktionieren.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Auf jeden Fall kommt dann msg: Objects im debug Fenster von Node-RED raus.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Im debug Fenster habe ich diese Objects mal aufgeklappt und durchgesehen, und tatsächlich einen Zählerstand eines Stromzählers gefunden *<b>happy</b>*</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jetzt müssen diese Objects „nur“ noch entschlüsselt und auf den MQTT Broker gepublished werden.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Das sieht mir jetzt aber sehr komplex aus.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hat da jemand ein Beispiel, wie man das hinkriegt? Da blicke ich so erstmal gar nicht durch </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">L</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Liebe Grüße,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chris</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Frank Richter [mailto:<a href="mailto:frank.richter83@gmail.com" rel="noreferrer noreferrer" target="_blank">frank.richter83@gmail.com</a>] <br><b>Gesendet:</b> Samstag, 22. September 2018 18:47<br><b>An:</b> <a href="http://volkszaehler.org/" rel="noreferrer noreferrer" target="_blank">volkszaehler.org</a> - users<br><b>Betreff:</b> Re: [vz-users] Daten auf MQTT Topics verteilen</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">Hi Christian,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">"push": [] ist doch ein Array, sollte also auch mit mehreren Zielen klarkommen.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Grüße<u></u><u></u></p></div><div><p class="MsoNormal">Frank<u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Christian Wulff <<a href="mailto:christianwulff@gmx.de" rel="noreferrer noreferrer" target="_blank">christianwulff@gmx.de</a>> schrieb am Sa., 22. Sep. 2018, 17:00:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hallo Frank,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ich möchte also zusätzlich zu den Werten, die über den Push Server an MQTT gesendet werden, auch noch die Zählerstände vom vzlogger direkt an Node-RED pushen.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dazu steht im Wiki, dass man folgende Zeilen in /ect/vzlogger.conf editieren soll:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">"push": [</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  {</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    "url": "<a href="http://127.0.0.1:1880/vzpush" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:1880/vzpush</a>"</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  }</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">],</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Nun habe ich in meiner /ect/vzlogger.conf allerdings schon drin stehen:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  "push": [</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">      "url": "<a href="http://127.0.0.1:5582/" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:5582</a>"</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    }</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">  ],</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Was ist denn richtig?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Beides geht ja vermutlich nicht?!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Lieben Gruß,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chris</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Frank Richter [mailto:<a href="mailto:frank.richter83@gmail.com" rel="noreferrer noreferrer" target="_blank">frank.richter83@gmail.com</a>] <br><b>Gesendet:</b> Donnerstag, 20. September 2018 18:29<br><b>An:</b> <a href="http://volkszaehler.org/" rel="noreferrer noreferrer" target="_blank">volkszaehler.org</a> - users<br><b>Betreff:</b> Re: [vz-users] Daten auf MQTT Topics verteilen</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Hi Christian,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">richtig verstanden.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Für MQTT ist die Payload einfach ein String, ob da nur der Wert, JSON oder sonstwas drin steht, ist dem Broker egal.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Zählerstände gibt's über den Push-Server nicht. Entweder von vzlogger direkt an Node-RED pushen lassen (siehe Wiki) oder von Node-RED bei der Middleware abholen.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Grüße<u></u><u></u></p></div><div><p class="MsoNormal">Frank<u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Christian Wulff <<a href="mailto:christianwulff@gmx.de" rel="noreferrer noreferrer" target="_blank">christianwulff@gmx.de</a>> schrieb am Do., 20. Sep. 2018, 14:11:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Moin Frank,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">wenn ich dich richtig verstanden habe, wäre bei dem Design nicht sichergestellt, dass der timestamp auch wirklich zu dem value gehört, richtig?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Okay, das verstehe ich, und hatte auch schon an diese potentielle Fehlermöglichkeit gedacht.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ich dachte ich hätte MQTT so verstanden, dass in den MQTT-Messages nur Werte, aber keine komplexeren Strukturen (z.B. Timestamp und Wert) richtig wären.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Aber das scheint dann wohl egal zu sein?!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Wenn ich jetzt den Wasserzähler einmal auf einen Topic mit timestamp und value und einmal nur den value publishe, dann habe ich halt einen Topic mehr. Ich denke das funktioniert auch.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Bis jetzt fällt mir von meinen ganzen Sensoren auch eigentlich nur der Wasserzähler ein, bei dem ich den timestamp brauche, weil ich aus dem letzten timestamp und dem aktuellem timestamp die Durchflussrate berechne, und wenn der nächste timestamp ausbleibt will ich die Durchflussrate auch noch gen Null trimmen, je mehr Zeit verrinnt. (Ansonsten würde die Durchflussrate immer zwischem einem Wert und Null toggeln, wenn man den Wasserhahn langsam zudreht. Aber soweit bin ich noch nicht.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Die Sache mit dem „Send_zero = true“ habe ich übrigends relativ schnell wieder gelassen, weil jede Sekunde eine „0“ gesendet wird, und so die Durchflussrate zwangsweise jede Sekunde zwischen einem Wert und Null toggelt.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Wenn wir schon beim Thema MQTT sind:</span><u></u><u></u></p><p class="MsoNormal"><span style=</p></div></div></blockquote></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></div></div></div></div></div></div></blockquote></div></div></div></blockquote></div></div>