<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Moin,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>ja, mosquitto läuft auf demselben Pi.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Die IP Adresse ist </span><a href="http://192.168.178.10/">http://192.168.178.10/</a><o:p></o:p></p><p class=MsoNormal>…..oder fehlt da das <a href="http://">http://</a> ???<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Zuerst hatte ich ja als IP Adresse: 192.168.178.10<o:p></o:p></p><p class=MsoNormal>Und damit kamen folgende Fehlermeldungen:<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>[Aug 02 00:30:17][mqtt] MqttClient::MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Aug 02 00:30:17][mqtt] using libmosquitto 1.5.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Aug 02 00:30:17][mqtt] mosquitto_connect failed. res=14 (101 Network is unreachable)! Stopped!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Aug 02 00:30:17][mqtt] ~MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Aug 02 00:30:17][mqtt] mqtt client not configured. stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>Ich probier es mal mit <a href="http://localhost">http://localhost</a><o:p></o:p></p><p class=MsoNormal>Damit kommen folgende Fehlermeldungen:<o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:49:52][mqtt] MqttClient::MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:49:52][mqtt] using libmosquitto 1.5.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:49:52][mqtt] mosquitto_connect failed. res=15! Stopped!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:49:52][mqtt] ~MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:49:52][mqtt] mqtt client not configured. stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal>Ich probier es mal mit <a href="http://localhost/">http://localhost/</a><o:p></o:p></p><p class=MsoNormal>Damit kommen folgende Fehlermeldungen:<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>[Aug 02 19:52:44][mqtt] MqttClient::MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:52:44][mqtt] using libmosquitto 1.5.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:52:44][mqtt] mosquitto_connect failed. res=15! Stopped!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:52:44][mqtt] ~MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:52:44][mqtt] mqtt client not configured. stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal>Ich probier es mal mit <a href="http://192.168.178.10/">http://192.168.178.10/</a><o:p></o:p></p><p class=MsoNormal>Damit kommen folgende Fehlermeldungen:<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Aug 02 19:56:11][mqtt] MqttClient::MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:56:11][mqtt] using libmosquitto 1.5.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:56:11][mqtt] mosquitto_connect failed. res=15! Stopped!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:56:11][mqtt] ~MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 19:56:11][mqtt] mqtt client not configured. stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal>Ich probier es mal mit<span style='mso-fareast-language:EN-US'> </span><span lang=EN-US style='mso-fareast-language:EN-US'><a href="http://127.0.0.1/"><span lang=DE>http://127.0.0.1/</span></a><o:p></o:p></span></p><p class=MsoNormal>Damit kommen folgende Fehlermeldungen:<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>[Aug 02 20:01:13][mqtt] MqttClient::MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 20:01:13][mqtt] using libmosquitto 1.5.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 20:01:13][mqtt] mosquitto_connect failed. res=15! Stopped!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 20:01:13][mqtt] ~MqttClient called<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>[Aug 02 20:01:13][mqtt] mqtt client not configured. stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hmm, ich weiss nun nicht genau was das Problem ist.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Einerseits steht dort, dass die Verbindung nicht klappt<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Andererseits dass der mqtt client nicht konfiguriert wird.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>In der Doku habe ich aber gelesen, dass er auch nicht konfiguriert werden muss.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Wer weiss denn da Rat?<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Danke und lieben Gruß,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Chris<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>Von:</b> Frank Richter <frank.richter83@gmail.com> <br><b>Gesendet:</b> Sonntag, 2. August 2020 02:23<br><b>An:</b> volkszaehler.org - users <volkszaehler-users@demo.volkszaehler.org><br><b>Betreff:</b> Re: [vz-users] MQTT aktivieren<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Stimmt denn die IP? Wenn mosquitto auf dem gleichen Pi läuft, alternativ mal mit 127.0.0.1 oder localhost probieren.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Ich würde davon ausgehen, dass dein vzlogger MQTT-Support eincompiliert hat, sonst würde nix von MQTT im Log stehen.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Grüße<o:p></o:p></p></div><div><p class=MsoNormal>Frank<o:p></o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Christian Wulff <<a href="mailto:christianwulff@gmx.de">christianwulff@gmx.de</a>> schrieb am So., 2. Aug. 2020, 00:56:<o:p></o:p></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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Moin,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>ich würde gerne den Volkszähler MQTT Messages senden lassen.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Mosquitto ist auf dem RPi installiert und läuft auch.<br><br>In der vzlogger.conf habe ich den mqtt client support enabled:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <span lang=EN-US>// mqtt client support (if ENABLE_MQTT set at cmake generation)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "mqtt": {</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "enabled": true, // enable mqtt client. needs host and port as well</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "host": "192.168.178.10", // mqtt server addr</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "port": 1883, // 1883 for unencrypted, 8883 enc, 8884 enc cert needed,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "cafile": "", // optional file with server CA</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "capath": "", // optional path for server CAs. see mosquitto.conf. Specify only cafile or capath</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "certfile": "", // optional file for your client certificate (e.g. client.crt)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "keyfile": "", // optional path for your client certficate private key (e.g. client.key)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "keypass": "", // optional password for your private key</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "keepalive": 30, // optional keepalive in seconds.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "topic": "vzlogger/data", // optional topic dont use $ at start and no / at end</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "user": "", // optional user name for the mqtt server</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "pass": "", // optional password for the mqtt server</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "retain": false, // optional use retain message flag</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "rawAndAgg": false, // optional publish raw values even if agg mode is used</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "qos": 0, // optional quality of service, default is 0</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> "timestamp": false // optional whether to include a timestamp in the payload</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span>},<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Leider kommen mit Verbosity 15 folgende Meldungen in der log Datei:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>[Aug 02 00:30:17][mqtt] MqttClient::MqttClient called</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>[Aug 02 00:30:17][mqtt] using libmosquitto 1.5.7</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>[Aug 02 00:30:17][mqtt] mosquitto_connect failed. res=14 (101 Network is unreachable)! Stopped!</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>[Aug 02 00:30:17][mqtt] ~MqttClient called</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>[Aug 02 00:30:17][mqtt] mqtt client not configured. stopped.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Offenbar ist etwas noch nicht korrekt konfiguriert.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Leider konnte ich keine Doku finden, wie man mosquitto korrekt konfiguriert.<br>Aus folgendem Satz werde ich nicht schlau, wahrscheinlich fehlt mir das Hintergrundwissen : “(if ENABLE_MQTT set at cmake generation)"<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Google spuckt auch nichts brauchbares aus.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Wer weiss wo es hakt und was man tun muss damit es läuft?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Lieben Dank und liebe Grüße,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Chris<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></blockquote></div></div></body></html>