Vince, true! 

The issue is solved, I had mix those to settings (MQTT and Belchertown) 
with each other so now everyting is working great!
Thank you!

torsdag 18 mars 2021 kl. 21:01:32 UTC+1 skrev vince:

> You cannot just remove stuff from weewx.conf or make random configurations 
> up out of thin air and expect things to work...
>
> You have to specify the hostname or ip address of your MQTT broker 
> computer.  Do not use localhost or 127.0.0.1, as the connection will be 
> from your 'browser' computer to the MQTT broker computer.
>
> Here is my example configuration for weewx using a MQTT host that has 
> address 192.168.1.177 on my LAN.
>    
> # this publishes weewx data to the MQTT broker
>  [[MQTT]]
>         server_url = mqtt://192.168.1.177:1883/
>         topic = weather
>         binding = archive, loop
>         log_success = False
>
> # this configures Belchertown to request MQTT data using websockets
>    [[Belchertown]]
>         [[[Extras]]]
>             mqtt_websockets_enabled = 1
>             mqtt_websockets_host = 192.168.1.177
>             mqtt_websockets_port = 9001
>
>
> You also need your MQTT broker configured to listen on the two ports.
> I do it by putting two files in /etc/mosquitto/conf.d on the MQTT broker 
> host.
>
> # this is /etc/mosquitto/conf.d/1883.conf
> allow_anonymous true
> listener 1883
> protocol mqtt
>
>
> # this is /etc/mosquitto/conf.d/9001.conf
> allow_anonymous true
> listener 9001
> protocol websockets
>
> On Thursday, March 18, 2021 at 12:41:46 PM UTC-7 [email protected] wrote:
>
>> Thank you for your answer.
>> Removed server_url and localhost:1338 but no difference. 
>> More ideas?
>>
>> /Mikael
>>
>> torsdag 18 mars 2021 kl. 16:03:10 UTC+1 skrev [email protected]:
>>
>>> I see "server_url" etc. under [[Belchertown]]. That seems to me the 
>>> wrong place. And I see "localhost:1883" against "192.168.1.199:1883". 
>>>
>>> [email protected] schrieb am Donnerstag, 18. März 2021 um 15:24:35 
>>> UTC+1:
>>>
>>>> Hi! Trying to get the belchertown skin to work on my weewx setup. My 
>>>> problem is getting the mqtt to work. It only says Connected, waiting for 
>>>> data. 
>>>> My first question is what would the best update time be running with a 
>>>> wh1080 weather station?
>>>> Second, as it never updates,  is there a way to see if the mqtt part 
>>>> works and it's possible to get some weather data? Kind of stuck.
>>>> Here's my config:
>>>>
>>>> Weewx config:
>>>> [StdRESTful]
>>>>  [[MQTT]]
>>>>         server_url = mqtt://192.168.1.199:1883
>>>>         topic = weather
>>>>         unit_system = METRIC
>>>>
>>>> [StdReport]
>>>>  [[Belchertown]]
>>>>         HTML_ROOT = /var/www/html/weewx/belchertown
>>>>         skin = Belchertown
>>>>         
>>>>         server_url = https://localhost:1883
>>>>         topic = weather/loop
>>>>         unit_system = METRIC
>>>>         binding = archive, loop
>>>>         aggregation = aggregate
>>>>
>>>> Skin.conf
>>>> [Extras]
>>>>
>>>>  # MQTT Websockets defaults
>>>>     mqtt_websockets_enabled = 1
>>>>     mqtt_websockets_host = "192.168.1.199"
>>>>     mqtt_websockets_port = 9001
>>>>     mqtt_websockets_ssl = 0
>>>>     mqtt_websockets_topic = "weather/loop"
>>>>     disconnect_live_website_visitor = 1800000
>>>>
>>>> Any obvious fault here?
>>>>
>>>> /Mikael
>>>>
>>>>

-- 
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/4ba254dd-9d5b-4a01-90e2-dd7485ccd106n%40googlegroups.com.

Reply via email to