
--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Do you connect the client (skin) via websockets or any other way using a username and password?
That is the question.
From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of Philip Kutzenco
Sent: Monday, October 8, 2018 3:32 PM
To: weewx-user <weewx...@googlegroups.com>
Subject: [weewx-user] Re: Belchertown Skin and MQTT With Username Not Working
I have it working on my own externally hosted Mosquitto server (on Digital Ocean). My Mosquiutto MQTT broker is set up requiring a username and password for publishing. Additionally it has TLS/SSL implemented (with Let's Encrypt certificates). It allows subscribing anonymously and also runs Websockets so that it can feedthe Belchertown skin. I used Pat's MQTT "tutorial" to do this. My website is https://wx.kutzenco.com.
phil
On Monday, October 8, 2018 at 10:21:50 AM UTC-4, G Hammer wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/5Qn_6oZjLP4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
The publishing is not a problem, but that is not in the skin.
As I said, I have tried nearly any combination of config, all to no avail.
I may have to look at a different MQTT host, one that does not require username and password for all connections as it seems that is not working in the Belchertown skin.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/5Qn_6oZjLP4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1539079347: SNI: Unknown ServerName: ftp.ghammer.net
1539079348: Socket error on client <unknown>, disconnecting.
1539079348: SNI: Unknown ServerName: ftp.ghammer.net
1539079368: SNI: Unknown ServerName: ftp.ghammer.net
1539077963: Initial logging level 5
1539077963: Libwebsockets version: 2.0.3 unknown-build-hash
1539077963: IPV6 not compiled in
1539077963: libev support compiled in but disabled
1539077963: libuv support compiled in but disabled
1539077963: Threads: 1 each 1024 fds
1539077963: mem: platform fd map: 8192 bytes
1539077963: Compiled with OpenSSL support
1539077963: Creating Vhost 'default' port 9001, 3 protocols
1539077963: Using SSL mode
1539077963: SSL ECDH curve 'prime256v1'
1539077963: Listening on port 9001
1539077963: mem: per-conn: 920 bytes + protocol rx buf
1539077963: canonical_hostname = ftp.ghammer.net
1539077964: lws_protocol_init
Hi
I am trying to set up MQTT on the Belchertown skin, and just can't get it to work, but think I am very nearly there. Like Philip Kutzenco, I am using Digital Ocean to host my MQTT broker, with my own domain name, and have followed Pat's guide to set up the MQTT broker with SSL using Let's Encrypt. MQTT all seems to be working, as per Pat's guide. My weather website (ashteadweather.com hosted at 1&1 with SSL certificate) says "Connected. Waiting for data", which sounds promising, but it just stays at that message. I copied the weewx.conf settings format for MQTT and the skin.conf format for Belchertown skin, as suggested by Philip Kutzenco, as per below:
weewx.conf:
[[MQTT]]
server_url = mqtt://xxxx:zzzz...@mqttdh.uk:8883/
topic = weather
unit_system = METRIC
aggregation = aggregate
binding = archive,loop
log_success = False
log_failure = True
[[tls]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
Belchertown:
# MQTT Defaults
mqtt_enabled = 1
mqtt_host = mqttdh.uk
mqtt_port = 9001
mqtt_ssl = 1
mqtt_topic = "weather/#"
disconnect_live_website_visitor = 0
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+...@googlegroups.com.
You'll also need to supply the username and password to "receive" the MQTT data (in skin.conf or Belchertown) but that is not yet supported as far as I know.Colin
On Fri, 12 Oct 2018, 07:59 , <dhin...@djhindley.com> wrote:
Hi
I am trying to set up MQTT on the Belchertown skin, and just can't get it to work, but think I am very nearly there. Like Philip Kutzenco, I am using Digital Ocean to host my MQTT broker, with my own domain name, and have followed Pat's guide to set up the MQTT broker with SSL using Let's Encrypt. MQTT all seems to be working, as per Pat's guide. My weather website (ashteadweather.com hosted at 1&1 with SSL certificate) says "Connected. Waiting for data", which sounds promising, but it just stays at that message. I copied the weewx.conf settings format for MQTT and the skin.conf format for Belchertown skin, as suggested by Philip Kutzenco, as per below:
weewx.conf:
[[MQTT]]
server_url = mqtt://xxxx:zzzzzzzzz@mqttdh.uk:8883/
server_url = mqtt://xxxx:zzzz...@mqttdh.uk:8883/
server_url = mqtt://xxxxx:zzzzzzz@mqttdh.uk:8883/
I may have found it.in weewx.conf, you have a stanza:
[[tls]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
It should be:[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
with 3 brackets.Try that.BTW: I do have the added lines in myconfig.conf that you do. I was in hurray when I posted last night.
philOn Friday, October 12, 2018 at 6:42:41 AM UTC-4, David Hindley wrote: