MQTT - extension / Belchertown skin / Failed connecting ....

164 views
Skip to first unread message

Tom Cichowicz

unread,
Sep 7, 2020, 12:50:27 PM9/7/20
to weewx-user
Well, I'm plugging away trying different options with my new toy weeWX.

 I've been successful getting much of my orig. WeatherFlow Air/Sky sensor data up and running within the system.
 I've successfully installed  the MQTT extension, to attempt to get forecast data displayed on the skin pages... 
  I have also installed an MQTT , for web socket requirements, and finally got it publishing records...
Sep  7 12:43:29 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:25 EDT (1599497005)
Sep  7 12:43:32 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:28 EDT (1599497008)
Sep  7 12:43:34 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:31 EDT (1599497011)

Still haven't figured out the message on the index.html page...
"Failed connecting to the weather station. Please try again later!"
All my data appears to be up to date. 

   anyone that can comment to help would be appreciated...
  

vince

unread,
Sep 7, 2020, 6:20:57 PM9/7/20
to weewx-user
On Monday, September 7, 2020 at 9:50:27 AM UTC-7, Tom Cichowicz wrote:
 I've successfully installed  the MQTT extension, to attempt to get forecast data displayed on the skin pages... 
  I have also installed an MQTT , for web socket requirements, and finally got it publishing records...
Sep  7 12:43:29 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:25 EDT (1599497005)
Sep  7 12:43:32 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:28 EDT (1599497008)
Sep  7 12:43:34 weewx weewx[8055] INFO weewx.restx: MQTT: Published record 2020-09-07 12:43:31 EDT (1599497011)

Still haven't figured out the message on the index.html page...
"Failed connecting to the weather station. Please try again later!"

   anyone that can comment to help would be appreciated...
  

Again - search the group archives please. This has come up a dozen times.

You need a MQTT broker (ie, a server) that has websockets configured correctly.  You also need your weewx.conf to match that setup.

There are several examples folks have previously posted on what 'correct' looks like. 

Tom Cichowicz

unread,
Sep 8, 2020, 8:09:03 AM9/8/20
to weewx-user
Vince;

    thanks for the reply ... I'll keep searching. (I've already followed those posts)
I have a running  MQTT broker  - that is returning published messages, my local webserver for weewx that has Belchertown skins enabled displaying the data.

Arend

unread,
Sep 8, 2020, 10:29:47 AM9/8/20
to weewx-user
Your configuration of MQTT in the Belchertwon skin.conf is complete? And are you using the right topics in MQTT? It would be best if you posted the MQTT sections of your weex.conf and Belchertown skin.conf here. Otherwise it is very hard for someone to figure out what might be wrong.

Op dinsdag 8 september 2020 om 14:09:03 UTC+2 schreef tcich...@gmail.com:

G Hammer

unread,
Sep 8, 2020, 10:47:59 AM9/8/20
to weewx-user
Are you using Firefox?
That does not connect for me while Edge does.

Tom Cichowicz

unread,
Sep 8, 2020, 12:43:22 PM9/8/20
to weewx-user
These are my conf - file settings..

skin.conf
   # MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host = "localhost"
    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:xxxxxx@localhost:1883/
        topic = weather
        unit_system = US
        binding = archive, loop
        aggregation = aggregate

I tried Edge Browser ... same problem. (I normally use Chrome)

vince

unread,
Sep 8, 2020, 12:48:42 PM9/8/20
to weewx-user
On Tuesday, September 8, 2020 at 9:43:22 AM UTC-7, Tom Cichowicz wrote:
    mqtt_websockets_host = "localhost"
 

The websockets host needs to be the fully qualified hostname (or ip) of the computer.

You can't use 'localhost'.  That would cause your browser to try to connect to the host you're running the browser on, which is almost certainly not what you want to do.

(lots of people battle this one and make the same mistake - I've done it multiple times :-)

Tom Cichowicz

unread,
Sep 8, 2020, 1:24:16 PM9/8/20
to weewx-user
wow... OK that fixed!  ((Link to page)

Now I have ONLY one issue to resolve.

I can't figureout why my  forecast data from (DarkSky/Aeris) is NOT displaying on my PUBLIC server.

As you can see it shows the Header 8 Day Forecast -- but nothing under it. Also, none of my Graphs are viewable either.

BUT if I connect to my weewx's webserver locally it displays as expected???

   See the screenshot BELOW the next one.




NP_weewx_webpage.PNG

Local connection to weewx webserver ( I cropped the screenshot, but the graphs are displayed as well)
NP_weewx_webpage_local.PNG

Tom Cichowicz

unread,
Sep 8, 2020, 1:32:14 PM9/8/20
to weewx-user
I also just noticed that my PUBLIC server is NOT rounding the values ... but local server is?
Rounding_weewx_webpage.PNG

Pat

unread,
Sep 8, 2020, 8:57:33 PM9/8/20
to weewx-user
Strange. I would delete the html files, restart weewx and let it re-generate them. They should be in sync with whatever you've set in weewx.conf for rounding values. 
Reply all
Reply to author
Forward
0 new messages