Hi again all,
I am seeing connection issues again after turning off MQTT for a while and
then turning it back on. I have not changed any configuration yet I am
seeing "Connected. Waiting for data." constantly. To summarise, my config
is as follows:
Belchertown skin.conf:
# MQTT Websockets defaults
mqtt_websockets_enabled = 1
mqtt_websockets_host = 192.168.86.55
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 0
mqtt_websockets_topic = weather/loop
disconnect_live_website_visitor = 1800000
weewx.conf:
# [[MQTT]]
server_url = mqtt://pi:*******@192.168.86.55:1883/
topic = weather
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
log_failure = true
# log_success = true
[[[inputs]]]
[[[[windSpeed]]]]
name = windSpeed_mph
units = mile_per_hour
[[[[windGust]]]]
name = windGust_mph
units = mile_per_hour
I cannot see anything wrong, as I haven't changed the config.
For info, the mosquitto log shows some errors as below, but I don't know
enough to troubleshoot. Can anyone suggest anything please?
1591698145: mosquitto version 1.5.7 starting
1591698145: Config loaded from /etc/mosquitto/mosquitto.conf.
1591698145: Opening ipv4 listen socket on port 1883.
1591698145: Opening ipv6 listen socket on port 1883.
1591698145: Opening websockets listen socket on port 9001.
1591698150: New client connected from 192.168.86.36 as website73629308 (c1,
k60$
1591698177: New connection from 192.168.86.22 on port 1883.
1591698177: New client connected from 192.168.86.22 as
97f80dbc-e5e5-45c0-8094-$
1591698951: Socket error on client website73629308, disconnecting.
1591698954: New client connected from 192.168.86.36 as website930898639
(c1, k6$
1591699117: Socket error on client website930898639, disconnecting.
1591699120: New client connected from 192.168.86.36 as website720925838
(c1, k6$
1591699176: Socket error on client website720925838, disconnecting.
1591699178: New client connected from 192.168.86.36 as website566978445
(c1, k6$
1591699606: Socket error on client website566978445, disconnecting.
1591699609: New client connected from 192.168.86.36 as website141237067
(c1, k6$
1591699867: Socket error on client website141237067, disconnecting.
1591699869: New client connected from 192.168.86.36 as website51912235 (c1,
k60$
1591699933: New client connected from 192.168.86.20 as website271702027
(c1, k6$
1591699936: Socket error on client website271702027, disconnecting.
1591699939: New client connected from 192.168.86.20 as website286918525
(c1, k6$
1591699967: Socket error on client website286918525, disconnecting.
Many thanks,
Matt
On Friday, 25 October 2019 19:57:45 UTC+1, Matt wrote:
>
> Hi,
>
> I followed the instructions in
> https://github.com/poblabs/weewx-belchertown to install an MQTT broker
> and subscribe to the weather data. It's working according to the logs...
>
> Weewx syslog
>
> Oct 25 19:49:13 weatherpi weewx[3082]: restx: MQTT: Published record
> 2019-10-25 19:49:13 BST (1572029353)
> Oct 25 19:49:29 weatherpi weewx[3082]: restx: MQTT: Published record
> 2019-10-25 19:49:29 BST (1572029369)
> Oct 25 19:49:44 weatherpi weewx[3082]: restx: MQTT: Published record
> 2019-10-25 19:49:44 BST (1572029384)
> Oct 25 19:50:01 weatherpi weewx[3082]: restx: MQTT: Published record
> 2019-10-25 19:50:00 BST (1572029400)
> Oct 25 19:50:17 weatherpi weewx[3082]: restx: MQTT: Published record
> 2019-10-25 19:50:16 BST (1572029416)
>
> Mosquitto log
>
> 1572029465: New connection from ::1 on port 1883.
> 1572029465: New client connected from ::1
> as weewx_7f9ef501 (c1, k60, u'pi').
> 1572029465: Client weewx_7f9ef501 disconnected.
> 1572029481: New connection from ::1 on port 1883.
> 1572029481: New client connected from ::1
> as weewx_65035d79 (c1, k60, u'pi').
> 1572029481: Client weewx_65035d79 disconnected.
> 1572029497: New connection from ::1 on port 1883.
> 1572029497: New client connected from ::1
> as weewx_29b0c150 (c1, k60, u'pi').
> 1572029497: Client weewx_29b0c150 disconnected.
> 1572029513: New connection from ::1 on port 1883.
>
> weewx.conf
>
> [[MQTT]]
> server_url = mqtt://pi:xxxxxxx@localhost:1883
> topic = weather
> unit_system = METRIC
> binding = archive, loop
> aggregation = aggregate
> log_failure = true
> log_success = true
>
> skin.conf
>
> # MQTT Websockets defaults
> mqtt_websockets_enabled = 1
> mqtt_websockets_host = localhost
> mqtt_websockets_port = 1883
> mqtt_websockets_ssl = 0
> mqtt_websockets_topic = weather
> disconnect_live_website_visitor = 1800000
>
> But the webpage constantly says...
>
> [image: Untitled.png]
>
> I've been over and over the config, re-writing, adding quotes, you name it
> I've tried it but still no success. Can any bright spark see something
> obvious that's wrong...please!!
>
> Many thanks,
>
> Matt
>
--
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/91f76f8f-fb8a-47d6-814b-02352bd32988o%40googlegroups.com.