Hello,
Back to my PI Broker MQTT, I see that I do not receive anything Weewx.
I tested the broker from my WeeWX PI, and it works !

À vous lire

*Here are the ad hoc parts of the weewx.conf :*

    [[MQTT]]
        server_url = 192.168.0.51:1883
        topic = Meteo
        unit_system = METRIC
        binding = loop

[Engine]
    # The following section specifies which services should be run and in 
what order.
    [[Services]]
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, 
weewx.engine.StdCalibrate, weewx.engine.StdQC, 
weewx.wxservices.StdWXCalculate
        xtype_services = weewx.wxxtypes.StdWXXTypes, 
weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, 
weewx.wxxtypes.StdDelta
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, 
user.mqtt.MQTT
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport

*And what the log tells:*

Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: MQTT: Unexpected 
exception of type <class 'ValueError'>
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: *** Traceback (most 
recent call last):
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***   File 
"/usr/share/weewx/weewx/restx.py", line 379, in run_loop
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***     
self.process_record(_record, dbmanager)
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***   File 
"/usr/share/weewx/user/mqtt.py", line 522, in process_record
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***     
self.get_mqtt_client()
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***   File 
"/usr/share/weewx/user/mqtt.py", line 453, in get_mqtt_client
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***     
mc.connect(url.hostname, url.port)
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***   File 
"/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 913, in 
connect
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***     
bind_address, bind_port, clean_start, properties)
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***   File 
"/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 978, in 
connect_async
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: ***     raise 
ValueError('Invalid host.')
Jan  2 12:16:42 PiMeteo weewx[26975] ERROR weewx.restx: *** ValueError: 
Invalid host.
Jan  2 12:16:42 PiMeteo weewx[26975] CRITICAL weewx.restx: MQTT: Thread 
terminating. Reason: Invalid host.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9050d34d-a694-480a-9e7f-c6fd77eb2d07n%40googlegroups.com.

Reply via email to