Hello,
I am trying to run MQTT throug SSL.
Before everything was working, as soon I have added Let's Encrypt
certificate to my webpage jastrabie.online, Belchertown skin and weather34
too autoupdate was not working.
Problem is, HTTPS page cant handle HTTP MQTT, it throws an error.
So I started to reconfigure my MQTT to use SSL. I used this manual from
author of Belchertown
skin: https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/
weewx.conf:
[[MQTT]]
server_url = mqtt://pi:<password>@jastrabie.online:8883/
topic = weather
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
tail -f shows this:
WeeWX weewx[18183] ERROR weewx.restx: MQTT: Failed to publish record
2020-12-23 16:47:00 CET (1608738420): Failed upload after 3 tries
When I comment the whole [[[tls]]] section, MQTT then is like:
Dec 23 16:56:33 WeeWX weewx[19872] ERROR user.mqtt: publish failed for
weather/loop: 4
Dec 23 16:56:33 WeeWX weewx[19872] INFO weewx.restx: MQTT: Published record
2020-12-23 16:56:00 CET (1608738960)
if I run:
sudo netstat -tulpn | grep -E '8883|9001'
result is:
tcp 0 0 0.0.0.0:9001 0.0.0.0:* LISTEN
3722/mosquitto
tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN
3722/mosquitto
Belchertown skin.conf:
# MQTT Websockets defaults
mqtt_websockets_enabled = 1
mqtt_websockets_host = "192.168.1.17"
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 1
mqtt_websockets_topic = "weather/loop"
disconnect_live_website_visitor = 1800000
what I am doing wrong?
WeeWX4.2.0, Belchertown 1.2.0, Raspberry Pi, https://jastrabie.online
Thank you for help!
Miso, Slovakia
--
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/e1b9bcc9-0d66-4d76-b1f0-c13969e92931n%40googlegroups.com.