Thank you, that's progress. Now it says 'Connected. Waiting for data' but
doesn't change. Again, the logs look ok (to a novice).

On Sat, 26 Oct 2019, 02:07 Pat, <[email protected]> wrote:

> Your host needs to be the IP of your broker. Not localhost.
>
>
> On Friday, October 25, 2019 at 3:57:10 PM UTC-4, Matt wrote:
>>
>> I noticed a typo myself...now changed the websockets port and put the
>> host and topic in quotes, but still not connecting...
>>
>>     # MQTT Websockets defaults
>>    mqtt_websockets_enabled = 1
>>    mqtt_websockets_host = "localhost"
>>    mqtt_websockets_port = 9001
>>    mqtt_websockets_ssl = 0
>>    mqtt_websockets_topic = "weather"
>>    disconnect_live_website_visitor = 1800000
>>
>>
>>
>> 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 a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/ykgQYOFGH8I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/b0004563-6cdb-480a-a8e4-64e86f65784e%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/b0004563-6cdb-480a-a8e4-64e86f65784e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMz6Xq7ONvvxkaLTV6yhc2dSnGYrVkcmRPFe7FpPPmeW2u0__Q%40mail.gmail.com.

Reply via email to