Wow!
that *tlsv12* has really helped! now tail -f is showing no errors.
just to be sure -  server_url = mqtt://pi:password@url:8883/ 
URL can be localhost, or should I use my https:// webpage 
"jastrabie.online"? 

My Belchertown settings still does not work:
    # MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host = "jastrabie.online"
    mqtt_websockets_port = 9001
    mqtt_websockets_ssl = 1
    mqtt_websockets_topic = "weather/loop"
    disconnect_live_website_visitor = 1800000

webpage debugger shows this:
WebSocket connection to 'wss://jastrabie.online:9001/mqtt' failed: 
Connection closed before receiving a handshake response
d._doConnect @ paho-mqtt.min.js:37
d.connect @ paho-mqtt.min.js:31
Client.connect @ paho-mqtt.min.js:70
connect @ belchertown.js?1608760733:1308
(anonymous) @ (index):156
l @ jquery.min.js:2
c @ jquery.min.js:2

Thank you!
Michal

Dátum: streda 23. decembra 2020, čas: 22:47:56 UTC+1, odosielateľ: 
mh081...@gmail.com

> I mean
>
>
>     [[MQTT]]
>         server_url = mqtt://pi:password@url:8883/
>         topic = weather
>         unit_system = METRIC
>         binding = archive, loop
>         aggregation = aggregate
>         log_success = False
>         log_failure = True
>         [[[tls]]]
>             tls_version = tlsv12
>             ca_certs = /etc/ssl/certs/ca-certificates.crt
>         [[[inputs]]]
>             [[[[dayRain]]]]
>                 name = dayRain_mm
>                 units = mm
>             [[[[rainRate]]]]
>                 name = rainRate_mm_per_hour
>                 units = mm_per_hour
>
>
> mh081...@gmail.com schrieb am Mittwoch, 23. Dezember 2020 um 22:44:59 
> UTC+1:
>
>> Hi,
>>
>> have you set tlsv12 in weewx.conf under [[MQTT]] Section?
>>
>> Like 
>>
>>
>>
>> misk...@gmail.com schrieb am Mittwoch, 23. Dezember 2020 um 22:36:27 
>> UTC+1:
>>
>>> Thank you Greg,
>>> so I have tried:
>>> pi@WeeWX:~ $ mosquitto_pub -h localhost -p 8883 -t "weather/test" -m 
>>> "hello world. this is to the weather topic with authentication" -u "pi" -P 
>>> "<passwd>" -d
>>> Client mosqpub|24614-WeeWX sending CONNECT
>>> Error: The connection was lost.
>>>
>>> with port 1883 it works:
>>>
>>> pi@WeeWX:~ $ mosquitto_pub -h localhost -p 1883 -t "weather/test" -m 
>>> "hello world. this is to the weather topic with authentication" -u "pi" -P 
>>> " <passwd> " -d
>>> Client mosqpub|24645-WeeWX sending CONNECT
>>> Client mosqpub|24645-WeeWX received CONNACK (0)
>>> Client mosqpub|24645-WeeWX sending PUBLISH (d0, q0, r0, m1, 
>>> 'weather/test', ... (61 bytes))
>>> Client mosqpub|24645-WeeWX sending DISCONNECT
>>>
>>> mosquitto_sub is like:
>>> pi@WeeWX:~ $ mosquitto_sub -h localhost -p 8883 -t weather/# -d
>>> Client mosqsub|24569-WeeWX sending CONNECT
>>> Client mosqsub|24569-WeeWX sending CONNECT
>>>
>>> again, with port 1883 it works:
>>> pi@WeeWX:~ $ mosquitto_sub -h localhost -p 1883 -t weather/# -d
>>> Client mosqsub|24659-WeeWX sending CONNECT
>>> Client mosqsub|24659-WeeWX received CONNACK (0)
>>> Client mosqsub|24659-WeeWX sending SUBSCRIBE (Mid: 1, Topic: weather/#, 
>>> QoS: 0)
>>> Client mosqsub|24659-WeeWX received SUBACK
>>> Subscribed (mid: 1): 0
>>>
>>> I have installed tcpdump, which parameters am I looking for?
>>>
>>> Thanks,
>>> Michal
>>>
>>> Dátum: streda 23. decembra 2020, čas: 20:55:28 UTC+1, odosielateľ: Greg 
>>> Troxel
>>>
>>>>
>>>> Hard to say what's wrong, but use mosquitto_publish to test. I have 
>>>> the emqtt extension publishing to mqtt/tls just fine and I do not run 
>>>> mqtt w/o ssl at all. 
>>>>
>>>> Turn on logging on th broker, and look with tcpdump. 
>>>>
>>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/31a79675-a503-4997-9abf-b8611b869763n%40googlegroups.com.

Reply via email to