Kinda impossible to convert 'None' to a number. That's your issue. On Sunday, May 28, 2023 at 6:02:32 PM UTC-7 HoracioDos wrote:
> Hello gjr80. > These are loop and archive packets for a WS3080 (FineoffsetUSB driver). I > replaced batteries for the external unit today and the anemometer and the > vane are not connected right now. But measurements (winGustDir and winDir > are there) Perhaps mqqt uploader dismisses them because of their None > value, but it used to show degree_compass or ordinal_compass values. > > sudo weewxd ./weewx.conf > Type beaufort has been deprecated. Use unit beaufort instead. > LOOP: 2023-05-28 21:35:56 -03 (1685320556) 'altimeter': > '1028.8271485350715', 'appTemp': '20.901397238047462', 'barometer': > '1028.664390950742', 'beaufort': '0', 'cloudbase': '955.0783561 > 23699', 'dateTime': '1685320556', 'delay': '3', 'dewpoint': > '12.586215280280845', 'ET': 'None', 'heatindex': '19.78444444444445', > 'humidex': '22.67031814034537', 'inDewpoint': '11.515064192 > 304733', 'inHumidity': '54.0', 'inTemp': '21.200000000000003', > 'maxSolarRad': '0.0', 'outHumidity': '62.0', 'outTemp': '20.1', > 'outTempBatteryStatus': '0', 'pressure': '1024.0', 'ptr': '257 > 36', 'radiation': '0.0', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': > '0.0', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '16', 'UV': > '0.0', 'windchill': '20.100000000000005', 'wind > Dir': 'None', 'windGust': '0.0', 'windGustDir': 'None', 'windrun': 'None', > 'windSpeed': '0.0' > > REC: 2023-05-28 21:35:00 -03 (1685320500) 'altimeter': > '1028.751859099341', 'appTemp': '20.901397238047462', 'barometer': > '1028.5890493205457', 'beaufort': '0.0', 'cloudbase': '955.07835 > 6123699', 'dateTime': '1685320500', 'delay': '1.0', 'dewpoint': > '12.586215280280845', 'ET': '0.0', 'heatindex': '19.78444444444445', > 'humidex': '22.67031814034537', 'inDewpoint': '11.491899 > 274493772', 'inHumidity': '54.0', 'inTemp': '21.175000000000004', > 'interval': '5.0', 'maxSolarRad': '0.0', 'outHumidity': '62.0', 'outTemp': > '20.1', 'outTempBatteryStatus': '0.0', 'pressure > ': '1023.9250000000001', 'ptr': '25736.0', 'radiation': '0.0', 'rain': > '0.0', 'rainRate': '0.0', 'rainTotal': '0.0', 'rxCheckPercent': '100.0', > 'status': '0.0', 'usUnits': '16', 'UV': '0.0' > , 'windchill': '20.100000000000005', 'windDir': 'None', 'windGust': '0.0', > 'windGustDir': 'None', 'windrun': '0.0', 'windSpeed': '0.0' > > This is an example of the ZABBIX-Sender plugin and binding is set to > "archive" only. > > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_inHumidity 54.0 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_inTemp 21.200000000000003 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_outHumidity 62.0 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_outTemp 20.1 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_pressure 1024.0000000000002 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_windSpeed 0.0 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_windDir N/A > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_windGust 0.0 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_windGustDir N/A > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_rain 0.0 > May 28 21:25:56 pi2weewx python3[6443]: weewx[6443] DEBUG user.zbxsender: > pi2weewx weewx_radiation 0.0 > > I want to replace ZBX sender plugin by enabling mqtt uploader and getting > data from ZABBIX server directly through mosquitto broker > Thanks! > On Sunday, May 28, 2023 at 5:10:25 PM UTC-3 gjr80 wrote: > >> What station/driver are you using? It may be that your station/driver do >> not emit windGust and windGustDir. If you don't know whether it does >> emit them you can get a quick indication by running running WeeWX >> directly <http://weewx.com/docs/usersguide.htm#Running_directly>, if >> your station does emit them windGust and windGustDir will appear in loop >> packets/archive records. If windGust and windGustDir are not they you >> may have an issue, but most likely it is because your station/driver does >> not emit them. >> >> Gary >> >> >> On Monday, 29 May 2023 at 00:44:33 UTC+10 HoracioDos wrote: >> >> Hello. >> I can't get windDir and windGustDir data in MQTT uploader. I was able to >> add other missing measurements successfully like ET, windchill, windrun >> and interval. >> >> This is my MQTT section in weewx.conf >> [[MQTT]] >> server_url = mqtt://usr:pwd@localhost:1883/ >> >> topic = weewx >> unit_system = METRIC >> binding = archive, loop >> aggregation = aggregate >> log_success = False >> log_failure = True >> [[[inputs]]] >> [[[[altimeter]]]] >> name = altimeter_hPa >> units = hPa >> [[[[barometer]]]] >> name = barometer_hPa >> units = hPa >> [[[[pressure]]]] >> name = pressure_hPa >> units = hPa >> [[[[dayRain]]]] >> name = dayRain_mm >> units = mm >> [[[[rainRate]]]] >> name = rainRate_mm_per_hour >> units = mm_per_hour >> [[[[hourRain]]]] >> name = hourRain_mm >> units= mm >> [[[[rain24]]]] >> name = rain24_mm >> units= mm >> [[[[rain]]]] >> name = rain_mm >> units= mm >> [[[[windchill]]]] >> name = windchill_C >> units= degree_C >> [[[[windDir]]]] >> name = windDir >> #units= degree_compass >> units= ordinal_compass >> [[[[windGustDir]]]] >> name = windGustDir >> #units= degree_compass >> units= ordinal_compass >> [[[[ET]]]] >> name = ET_mm >> units= mm >> #units = mm_per_day >> [[[[windrun]]]] >> name = windrun_km >> units= km >> [[[[interval]]]] >> name = interval >> #units= seconds >> [[[tls]]] >> >> -- 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/08ace5a5-97f6-4c9c-8dc1-58e03c255d83n%40googlegroups.com.
