this is my config,
no ssl / read user = all
Belchertown skin.conf
# MQTT Websockets defaults
mqtt_websockets_enabled = 1
mqtt_websockets_host = public IP (no local IP)
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 0
mqtt_websockets_topic = weather/loop
mqtt_websockets_username = ""
mqtt_websockets_password = ""
disconnect_live_website_visitor = 1800000
weewx weewx.conf
[[MQTT]]
server_url = mqtt://user:password@localhost:1883/
topic = weather
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
work on www.pnmeteo.it
try.....
ciao
Il giorno venerdì 21 luglio 2023 alle 15:32:01 UTC+2 Stefan Gliessmann ha
scritto:
> I am struggling to understand why the Belchertown skin is not receiving
> weather data even though it is connected to the MQTT broker and user.mqtt
> is publishing weather data.
>
> TIA,
> Stefan
>
> Here is what I have configured in /etc/weewx/weewx.conf:
>
> [StdRESTful]
>
> [[MQTT]]
>
> # Enable/disable this service
> enable = true
>
> # Hostname/IP of MQTT broker
> host = 192.168.178.190
> server_url = mqtt://teffi:[email protected]:1883/
> <http://teffi:[email protected]:1883/>
>
> # Credentials
> user = teffi
> password = ++++++++
>
> # Prefix for topics
> topic = weather/weewx
> unit_system = METRIC
> binding = archive,loop
> aggregation = aggregate
> [[[inputs]]]
> [[[[rainRate]]]]
> units = mm_per_hour
> [[[[rain]]]]
> units = mm
> [[[[hourRain]]]]
> units = mm
> [[[[rain24]]]]
> units = mm
> [[[[dayRain]]]]
> units = mm
> [[[[ET]]]]
> units = mm
> [[[[dayET]]]]
> units = mm
> [[[[ET24]]]]
> units = mm
>
> [StdReport]
> [[Belchertown]]
> skin = Belchertown
> HTML_ROOT = /var/www/html/weewx/belchertown
> enable = true
>
> [[[Extras]]]
> #--- MQTT Websockets (for Real Time Streaming) Options ---
> log_failure = True
> mqtt_websockets_enabled = 1
> mqtt_websockets_host = 192.168.178.190
> mqtt_websockets_port = 9001
> # mqtt_websockets_ssl = 0
> mqtt_websockets_topic = weather/weewx
> # disconnect_live_website_visitor = 1800000
>
> and in /var/log/syslog I can see:
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/dateTime_unix_epoch": 1689946202 (unix_epoch)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/inTemp_degree_C": 23.299999999999997 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/outTemp_degree_C": 19.099999999999998 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/inHumidity_percent": 51 (percent)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/outHumidity_percent": 61 (percent)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/pressure_mbar": 1001.4 (mbar)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/relbarometer": 1001.4 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/luminosity": 29620.0 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/uvradiation": 67.8 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/UV_uv_index": 2 (uv_index)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/rain_cm": 0.0 (cm)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/stormRain_cm": 0.0 (cm)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/rainRate_cm_per_hour": 0.0 (cm_per_hour)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/dayRain_cm": 0.0 (cm)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/weekRain": 11.7 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/monthRain_cm": 1.4300000000000004 (cm)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/yearRain_cm": 1.4300000000000004 (cm)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/windDir_degree_compass": 186 (degree_compass)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/windSpeed_km_per_hour": 0.0 (km_per_hour)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/windGust_km_per_hour": 0.0 (km_per_hour)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/daymaxwind": 8.7 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/wh65_batt": 0 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/wh65_sig": 4 (None)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/radiation_watt_per_meter_squared": 233.78058405682714
> (watt_per_meter_squared)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/altimeter_mbar": 1005.049695199262 (mbar)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/appTemp_degree_C": 19.53993189168407 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/barometer_mbar": 1004.9037478077688 (mbar)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/cloudbase_meter": 990.2965356401945 (meter)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/dewpoint_degree_C": 11.397525104151388 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/heatindex_degree_C": 18.658333333333328 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/humidex_degree_C": 21.0515585775138 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/inDewpoint_degree_C": 12.585023979027035 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/maxSolarRad_watt_per_meter_squared": 763.710094175752
> (watt_per_meter_squared)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/windchill_degree_C": 19.099999999999998 (degree_C)
> Jul 21 15:30:02 weewx weewx[37286] DEBUG user.mqtt: Publishing
> "weather/weewx/usUnits": 16 (None)
> Jul 21 15:30:02 weewx weewx[37286] INFO weewx.restx: MQTT: Published
> record 2023-07-21 15:30:02 CEST (1689946202)
>
--
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/b72b45c8-dca4-4dfe-8ebe-e8f848206f2cn%40googlegroups.com.