Rain rate too high with SDR driver?

415 views
Skip to first unread message

S1m0n3

unread,
Nov 25, 2018, 3:58:25 PM11/25/18
to weewx-user
Hello to all, I've installed weewx with SDR driver to my raspberry to intercept signals from my WH3080, all it's ok (except report to the Wunderground that I understood by some forum posts that has been fixed in the 3.9 version in development). But I have a big issue with rain rate and rain accu...  it seems really exaggerated... Today I've registered... 

Today's Rain177.0 mm
High Rain Rate48.0 mm/hr at 01:51:00

That isn't much credible... The station sends rain total of the day so weewx must calculate the rain rate.

this is sensor map

  [[sensor_map]]
        windGust = wind_gust.201.FOWHx080Packet
        outBatteryStatus = battery.201.FOWHx080Packet
        rain_total = rain_total.201.FOWHx080Packet
        windSpeed = wind_speed.201.FOWHx080Packet
        windDir = wind_dir.201.FOWHx080Packet
        outHumidity = humidity.201.FOWHx080Packet
        outTemp = temperature.201.FOWHx080Packet
UV = uv_index.95.FOWH3080Packet
radiation = radiation.95.FOWH3080Packet

maybe I have to add deltas for rain? 

mwall

unread,
Nov 25, 2018, 4:15:12 PM11/25/18
to weewx-user
On Sunday, November 25, 2018 at 3:58:25 PM UTC-5, S1m0n3 wrote:

maybe I have to add deltas for rain? 

the rain delta is a default - you should not have to add it.

is the day total correct?

try running weewx directly so that you see loop packets and archive records.  watch the values for 'rain' and 'rainRate'.  then tip the rain bucket and see what happens.

Simone Russello

unread,
Nov 25, 2018, 4:36:09 PM11/25/18
to weewx...@googlegroups.com
Thanks for the suggestion! This is what loop packet shows. Seems how rain_total is in millimeters and the other values in US measures…  btw total rain in the station is different...

weewx@raspberrypi:~ $ sudo /usr/share/weewx/weewxd /etc/weewx/weewx.conf
LOOP:   2018-11-25 22:23:39 CET (1543181019) appTemp: 48.557271836, cloudbase: 3032.23490968, dateTime: 1543181019, dewpoint: 46.4099496129, heatindex: 49.82, humidex: 50.5597347706, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 88.0, outTemp: 49.82, rain: None, rain_total: 51.6, rainRate: 0, usUnits: 1, windchill: 49.82, windGust: 1.52112045932, windSpeed: 0.760560229659
LOOP:   2018-11-25 22:24:15 CET (1543181055) dateTime: 1543181055, maxSolarRad: 0.0, radiation: 0.231, rainRate: 0, usUnits: 1, UV: 0.0
REC:    2018-11-25 22:24:00 CET (1543181040) altimeter: 29.6430961397, appTemp: 48.557271836, barometer: 29.672641745, cloudbase: 3032.23490968, dateTime: 1543181040.0, dewpoint: 46.4099496129, ET: 8.30055935505e-07, heatindex: 49.82, humidex: 50.5597347706, inDewpoint: 43.196553546, inHumidity: 39.23003194, inTemp: 69.0453564118, interval: 2, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 88.0, outTemp: 49.82, pressure: 27.3075356098, rain: 0.0, rain_total: 51.6, rainRate: 0.0, usUnits: 1, windchill: 49.82, windDir: None, windGust: 1.52112045932, windGustDir: None, windrun: 15.7279630159, windSpeed: 0.760560229659
LOOP:   2018-11-25 22:24:27 CET (1543181067) appTemp: 48.557271836, cloudbase: 3032.23490968, dateTime: 1543181067, dewpoint: 46.4099496129, heatindex: 49.82, humidex: 50.5597347706, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 88.0, outTemp: 49.82, rain: 0.0, rain_total: 51.6, rainRate: 0, usUnits: 1, windchill: 49.82, windGust: 1.52112045932, windSpeed: 0.760560229659
LOOP:   2018-11-25 22:25:15 CET (1543181115) dateTime: 1543181115, maxSolarRad: 0.0, radiation: 0.231, rainRate: 0, usUnits: 1, UV: 0.0
LOOP:   2018-11-25 22:25:16 CET (1543181116) dateTime: 1543181116, maxSolarRad: 0.0, radiation: 0.231, rainRate: 0, usUnits: 1, UV: 0.0
LOOP:   2018-11-25 22:26:03 CET (1543181163) appTemp: 48.557271836, cloudbase: 3032.23490968, dateTime: 1543181163, dewpoint: 46.4099496129, heatindex: 49.82, humidex: 50.5597347706, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 88.0, outTemp: 49.82, rain: 0.0, rain_total: 51.6, rainRate: 0, usUnits: 1, windchill: 49.82, windGust: 1.52112045932, windSpeed: 0.760560229659
LOOP:   2018-11-25 22:26:15 CET (1543181175) dateTime: 1543181175, maxSolarRad: 0.0, radiation: 0.231, rainRate: 0, usUnits: 1, UV: 0.0
REC:    2018-11-25 22:26:00 CET (1543181160) altimeter: 29.6425522577, appTemp: 48.557271836, barometer: 29.6720888978, cloudbase: 3032.23490968, dateTime: 1543181160.0, dewpoint: 46.4099496129, ET: 7.70728877121e-07, heatindex: 49.82, humidex: 50.5597347706, inDewpoint: 42.8702545902, inHumidity: 38.8720077412, inTemp: 68.9474291714, interval: 2, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 88.0, outTemp: 49.82, pressure: 27.3070268282, radiation: 0.231, rain: 0.0, rain_total: 51.6, rainRate: 0.0, usUnits: 1, UV: 0.0, windchill: 49.82, windDir: None, windGust: 1.52112045932, windGustDir: None, windrun: 15.7533150236, windSpeed: 0.760560229659


--
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 weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simone Russello

unread,
Nov 26, 2018, 3:01:35 AM11/26/18
to weewx...@googlegroups.com
Today, it’s raining again and I can check rain_total and rainRate. rain_total is in mm and it’s correct, rainRate (calculated by weewx) is wrong how i can fix it? This is the LOOP log:

weewx@raspberrypi:~ $ sudo /usr/share/weewx/weewxd /etc/weewx/weewx.conf
LOOP:   2018-11-26 08:38:16 CET (1543217896) dateTime: 1543217896, maxSolarRad: 118.878492977, radiation: 2.657, rainRate: 0, usUnits: 1, UV: 0.0
LOOP:   2018-11-26 08:38:51 CET (1543217931) appTemp: 43.2711519789, cloudbase: 4545.14592874, dateTime: 1543217931, dewpoint: 38.313141129, heatindex: 48.38, humidex: 48.38, maxSolarRad: 120.266661601, outBatteryStatus: 0, outHumidity: 68.0, outTemp: 48.38, rain: None, rain_total: 63.0, rainRate: 0, usUnits: 1, windchill: 46.5981322064, windGust: 5.32392160762, windSpeed: 4.56336137796
LOOP:   2018-11-26 08:38:52 CET (1543217932) appTemp: 43.2711519789, cloudbase: 4545.14592874, dateTime: 1543217932, dewpoint: 38.313141129, heatindex: 48.38, humidex: 48.38, maxSolarRad: 120.306332879, outBatteryStatus: 0, outHumidity: 68.0, outTemp: 48.38, rain: 0.0, rain_total: 63.0, rainRate: 0, usUnits: 1, windchill: 46.5981322064, windGust: 5.32392160762, windSpeed: 4.56336137796
LOOP:   2018-11-26 08:39:15 CET (1543217955) dateTime: 1543217955, maxSolarRad: 121.219136904, radiation: 2.952, rainRate: 0, usUnits: 1, UV: 0.0
LOOP:   2018-11-26 08:39:40 CET (1543217980) appTemp: 43.6995519789, cloudbase: 4545.14592874, dateTime: 1543217980, dewpoint: 38.313141129, heatindex: 48.38, humidex: 48.38, maxSolarRad: 122.211810872, outBatteryStatus: 0, outHumidity: 68.0, outTemp: 48.38, rain: 0.0, rain_total: 63.0, rainRate: 0, usUnits: 1, windchill: 47.1504221323, windGust: 4.56336137796, windSpeed: 3.8028011483
LOOP:   2018-11-26 08:40:15 CET (1543218015) dateTime: 1543218015, maxSolarRad: 123.602309358, radiation: 3.154, rainRate: 0, usUnits: 1, UV: 0.0
REC:    2018-11-26 08:40:00 CET (1543218000) altimeter: 29.5958711394, appTemp: 43.4139519789, barometer: 29.6316141461, cloudbase: 4545.14592874, dateTime: 1543218000.0, dewpoint: 38.313141129, ET: None, heatindex: 48.38, humidex: 48.38, inDewpoint: 44.1301008489, inHumidity: 34.061965231, inTemp: 74.280104793, interval: 2, maxSolarRad: 120.576487046, outBatteryStatus: 0.0, outHumidity: 68.0, outTemp: 48.38, pressure: 27.2633588043, radiation: 2.8045, rain: 0.0, rain_total: 63.0, rainRate: 0.0, usUnits: 1, UV: 0.0, windchill: 46.7822288484, windDir: None, windGust: 5.32392160762, windGustDir: None, windrun: 0.143661376713, windSpeed: 4.3098413014
LOOP:   2018-11-26 08:40:27 CET (1543218027) appTemp: 41.9859519789, cloudbase: 4545.14592874, dateTime: 1543218027, dewpoint: 38.313141129, heatindex: 48.38, humidex: 48.38, maxSolarRad: 124.079258085, outBatteryStatus: 0, outHumidity: 68.0, outTemp: 48.38, rain: 0.11811023622, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 45.3105791143, windGust: 9.12672275591, windSpeed: 6.84504206693
LOOP:   2018-11-26 08:40:28 CET (1543218028) appTemp: 41.9859519789, cloudbase: 4545.14592874, dateTime: 1543218028, dewpoint: 38.313141129, heatindex: 48.38, humidex: 48.38, maxSolarRad: 124.119005397, outBatteryStatus: 0, outHumidity: 68.0, outTemp: 48.38, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 45.3105791143, windGust: 9.12672275591, windSpeed: 6.84504206693
LOOP:   2018-11-26 08:42:04 CET (1543218124) appTemp: 43.9847197656, cloudbase: 4458.66363436, dateTime: 1543218124, dewpoint: 38.5136632243, heatindex: 48.2, humidex: 48.2, maxSolarRad: 127.937729819, outBatteryStatus: 0, outHumidity: 69.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 47.6009946474, windGust: 3.8028011483, windSpeed: 3.04224091864
LOOP:   2018-11-26 08:42:04 CET (1543218124) appTemp: 43.9847197656, cloudbase: 4458.66363436, dateTime: 1543218124, dewpoint: 38.5136632243, heatindex: 48.2, humidex: 48.2, maxSolarRad: 127.937729819, outBatteryStatus: 0, outHumidity: 69.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 47.6009946474, windGust: 3.8028011483, windSpeed: 3.04224091864
LOOP:   2018-11-26 08:42:16 CET (1543218136) dateTime: 1543218136, maxSolarRad: 128.415417299, radiation: 4.346, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:42:00 CET (1543218120) altimeter: 29.5975431236, appTemp: 41.9859519789, barometer: 29.6333140571, cloudbase: 4545.14592874, dateTime: 1543218120.0, dewpoint: 38.313141129, ET: 6.2707382235e-05, heatindex: 48.38, humidex: 48.38, inDewpoint: 43.7255282233, inHumidity: 34.5147286261, inTemp: 73.4243267822, interval: 2, maxSolarRad: 123.93352428, outBatteryStatus: 0.0, outHumidity: 68.0, outTemp: 48.38, pressure: 27.2649228529, radiation: 3.154, rain: 0.11811023622, rain_total: 63.3, rainRate: 0.314960629921, usUnits: 1, UV: 0.0, windchill: 45.3105791143, windDir: None, windGust: 9.12672275591, windGustDir: None, windrun: 0.371829445611, windSpeed: 6.84504206693
LOOP:   2018-11-26 08:42:51 CET (1543218171) appTemp: 43.9847197656, cloudbase: 4458.66363436, dateTime: 1543218171, dewpoint: 38.5136632243, heatindex: 48.2, humidex: 48.2, maxSolarRad: 129.809030596, outBatteryStatus: 0, outHumidity: 69.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 47.6009946474, windGust: 3.8028011483, windSpeed: 3.04224091864
LOOP:   2018-11-26 08:43:16 CET (1543218196) dateTime: 1543218196, maxSolarRad: 130.80475272, radiation: 5.175, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:43:40 CET (1543218220) appTemp: 44.4131197656, cloudbase: 4458.66363436, dateTime: 1543218220, dewpoint: 38.5136632243, heatindex: 48.2, humidex: 48.2, maxSolarRad: 131.760859554, outBatteryStatus: 0, outHumidity: 69.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 48.2, windGust: 3.8028011483, windSpeed: 2.28168068898
LOOP:   2018-11-26 08:43:40 CET (1543218220) appTemp: 44.4131197656, cloudbase: 4458.66363436, dateTime: 1543218220, dewpoint: 38.5136632243, heatindex: 48.2, humidex: 48.2, maxSolarRad: 131.760859554, outBatteryStatus: 0, outHumidity: 69.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 48.2, windGust: 3.8028011483, windSpeed: 2.28168068898
LOOP:   2018-11-26 08:44:15 CET (1543218255) dateTime: 1543218255, maxSolarRad: 133.155491155, radiation: 6.262, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:44:00 CET (1543218240) altimeter: 29.6018252428, appTemp: 44.1560797656, barometer: 29.6385427011, cloudbase: 4458.66363436, dateTime: 1543218240.0, dewpoint: 38.5136632243, ET: 7.04979939361e-05, heatindex: 48.2, humidex: 48.2, inDewpoint: 43.4642588247, inHumidity: 34.9768245155, inTemp: 72.7310277298, interval: 2, maxSolarRad: 129.775197052, outBatteryStatus: 0.0, outHumidity: 69.0, outTemp: 48.2, pressure: 27.2689285432, radiation: 4.7605, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, UV: 1.0, windchill: 47.8405967885, windDir: None, windGust: 3.8028011483, windGustDir: None, windrun: 0.46309667317, windSpeed: 2.73801682677
LOOP:   2018-11-26 08:44:27 CET (1543218267) appTemp: 44.4812113564, cloudbase: 4375.0897745, dateTime: 1543218267, dewpoint: 38.8813882077, heatindex: 48.2, humidex: 48.2, maxSolarRad: 133.633723234, outBatteryStatus: 0, outHumidity: 70.0, outTemp: 48.2, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 48.2, windGust: 3.8028011483, windSpeed: 2.28168068898
LOOP:   2018-11-26 08:45:15 CET (1543218315) dateTime: 1543218315, maxSolarRad: 135.546943032, radiation: 6.165, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:46:15 CET (1543218375) dateTime: 1543218375, maxSolarRad: 137.938874448, radiation: 5.481, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:46:00 CET (1543218360) altimeter: 29.6053654716, appTemp: 44.4812113564, barometer: 29.6421421786, cloudbase: 4375.0897745, dateTime: 1543218360.0, dewpoint: 38.8813882077, ET: 6.4081430361e-05, heatindex: 48.2, humidex: 48.2, inDewpoint: 43.2189170815, inHumidity: 35.1163971653, inTemp: 72.3337454351, interval: 2, maxSolarRad: 134.112052474, outBatteryStatus: 0.0, outHumidity: 70.0, outTemp: 48.2, pressure: 27.2722402409, radiation: 6.2135, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, UV: 1.0, windchill: 48.2, windDir: None, windGust: 3.8028011483, windGustDir: None, windrun: 0.539152696136, windSpeed: 2.28168068898
LOOP:   2018-11-26 08:46:52 CET (1543218412) appTemp: 41.6987570498, cloudbase: 4373.39116635, dateTime: 1543218412, dewpoint: 38.7088620836, heatindex: 48.02, humidex: 48.02, maxSolarRad: 139.414013776, outBatteryStatus: 0, outHumidity: 70.0, outTemp: 48.02, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 44.8774766607, windGust: 8.36616252625, windSpeed: 6.84504206693
LOOP:   2018-11-26 08:47:15 CET (1543218435) dateTime: 1543218435, maxSolarRad: 140.330997873, radiation: 5.368, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:47:16 CET (1543218436) dateTime: 1543218436, maxSolarRad: 140.370864162, radiation: 5.368, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:48:15 CET (1543218495) dateTime: 1543218495, maxSolarRad: 142.722906672, radiation: 6.045, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:48:00 CET (1543218480) altimeter: 29.6081268923, appTemp: 41.6987570498, barometer: 29.6458256493, cloudbase: 4373.39116635, dateTime: 1543218480.0, dewpoint: 38.7088620836, ET: 5.98238250075e-05, heatindex: 48.02, humidex: 48.02, inDewpoint: 43.2650968562, inHumidity: 35.3400103858, inTemp: 72.197979736, interval: 2, maxSolarRad: 139.513687565, outBatteryStatus: 0.0, outHumidity: 70.0, outTemp: 48.02, pressure: 27.2748234082, radiation: 5.40566666667, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, UV: 1.0, windchill: 44.8774766607, windDir: None, windGust: 8.36616252625, windGustDir: None, windrun: 0.767320765034, windSpeed: 6.84504206693
LOOP:   2018-11-26 08:50:04 CET (1543218604) appTemp: 43.055542895, cloudbase: 4287.66542809, dateTime: 1543218604, dewpoint: 38.7260553319, heatindex: 47.66, humidex: 47.66, maxSolarRad: 147.066565942, outBatteryStatus: 0, outHumidity: 71.0, outTemp: 47.66, rain: 0.0, rain_total: 63.3, rainRate: 0.472440944882, usUnits: 1, windchill: 46.3218015492, windGust: 5.32392160762, windSpeed: 3.8028011483
LOOP:   2018-11-26 08:50:15 CET (1543218615) dateTime: 1543218615, maxSolarRad: 147.504748442, radiation: 4.176, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:50:00 CET (1543218600) altimeter: 29.6067941816, dateTime: 1543218600.0, ET: 6.32945096236e-05, inDewpoint: 43.1580849545, inHumidity: 35.5300340424, inTemp: 71.9175460547, interval: 2, maxSolarRad: 142.722906672, pressure: 27.2735767254, radiation: 6.045, rainRate: 0.472440944882, usUnits: 1, UV: 1.0, windrun: 0.767320765034
LOOP:   2018-11-26 08:51:15 CET (1543218675) dateTime: 1543218675, maxSolarRad: 149.894020693, radiation: 3.701, rainRate: 0.472440944882, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:51:40 CET (1543218700) appTemp: 44.1950814794, cloudbase: 4204.78532679, dateTime: 1543218700, dewpoint: 38.9107277776, heatindex: 47.48, humidex: 47.48, maxSolarRad: 150.889140439, outBatteryStatus: 0, outHumidity: 72.0, outTemp: 47.48, rain: 0.11811023622, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, windchill: 47.48, windGust: 2.28168068898, windSpeed: 1.52112045932
LOOP:   2018-11-26 08:52:16 CET (1543218736) dateTime: 1543218736, maxSolarRad: 152.321577391, radiation: 4.402, rainRate: 0.944881889764, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:52:00 CET (1543218720) altimeter: 29.6096788151, appTemp: 43.6253121872, barometer: 29.6495961235, cloudbase: 4246.22537744, dateTime: 1543218720.0, dewpoint: 38.8183915548, ET: 6.33877291234e-05, heatindex: 47.57, humidex: 47.57, inDewpoint: 43.0065408787, inHumidity: 35.525222042, inTemp: 71.7495086614, interval: 2, maxSolarRad: 148.838618879, outBatteryStatus: 0.0, outHumidity: 71.5, outTemp: 47.57, pressure: 27.2762751536, radiation: 3.9385, rain: 0.11811023622, rain_total: 63.45, rainRate: 0.590551181102, usUnits: 1, UV: 1.0, windchill: 46.9009007746, windDir: None, windGust: 5.32392160762, windGustDir: None, windrun: 0.856052791828, windSpeed: 2.66196080381
LOOP:   2018-11-26 08:52:28 CET (1543218748) appTemp: 43.9828863988, cloudbase: 4203.2194644, dateTime: 1543218748, dewpoint: 38.7376175721, heatindex: 47.3, humidex: 47.3, maxSolarRad: 152.798923494, outBatteryStatus: 0, outHumidity: 72.0, outTemp: 47.3, rain: 0.0, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, windchill: 47.3, windGust: 3.04224091864, windSpeed: 1.52112045932
LOOP:   2018-11-26 08:53:15 CET (1543218795) dateTime: 1543218795, maxSolarRad: 154.667755057, radiation: 5.086, rainRate: 0.944881889764, usUnits: 1, UV: 1.0
LOOP:   2018-11-26 08:54:04 CET (1543218844) appTemp: 43.5590692105, cloudbase: 4200.0895922, dateTime: 1543218844, dewpoint: 38.3913890098, heatindex: 46.94, humidex: 46.94, maxSolarRad: 156.614723253, outBatteryStatus: 0, outHumidity: 72.0, outTemp: 46.94, rain: 0.0, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, windchill: 46.94, windGust: 2.28168068898, windSpeed: 1.52112045932
LOOP:   2018-11-26 08:54:15 CET (1543218855) dateTime: 1543218855, maxSolarRad: 157.051872275, radiation: 5.352, rainRate: 0.944881889764, usUnits: 1, UV: 1.0
REC:    2018-11-26 08:54:00 CET (1543218840) altimeter: 29.6079845525, appTemp: 43.9828863988, barometer: 29.6491907106, cloudbase: 4203.2194644, dateTime: 1543218840.0, dewpoint: 38.7376175721, ET: 6.01709860569e-05, heatindex: 47.3, humidex: 47.3, inDewpoint: 42.9247307653, inHumidity: 35.7378233207, inTemp: 71.4802040892, interval: 2, maxSolarRad: 153.262751981, outBatteryStatus: 0.0, outHumidity: 72.0, outTemp: 47.3, pressure: 27.2746902566, radiation: 4.744, rain: 0.0, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, UV: 1.0, windchill: 47.3, windDir: None, windGust: 3.04224091864, windGustDir: None, windrun: 0.906756807138, windSpeed: 1.52112045932
LOOP:   2018-11-26 08:54:52 CET (1543218892) appTemp: 42.9190451623, cloudbase: 4198.52558241, dateTime: 1543218892, dewpoint: 38.2182706529, heatindex: 46.76, humidex: 46.76, maxSolarRad: 158.522439154, outBatteryStatus: 0, outHumidity: 72.0, outTemp: 46.76, rain: 0.0, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, windchill: 46.76, windGust: 3.04224091864, windSpeed: 2.28168068898
LOOP:   2018-11-26 08:54:52 CET (1543218892) appTemp: 42.9190451623, cloudbase: 4198.52558241, dateTime: 1543218892, dewpoint: 38.2182706529, heatindex: 46.76, humidex: 46.76, maxSolarRad: 158.522439154, outBatteryStatus: 0, outHumidity: 72.0, outTemp: 46.76, rain: 0.0, rain_total: 63.6, rainRate: 0.944881889764, usUnits: 1, windchill: 46.76, windGust: 3.04224091864, windSpeed: 2.28168068898


Il giorno 25 nov 2018, alle ore 22:15, mwall <goo...@lancet.mit.edu> ha scritto:

gjr80

unread,
Nov 26, 2018, 3:39:48 AM11/26/18
to weewx-user
Hi,

What makes you say the rainRate is wrong? By default weeWX calculates rainRate over a 15 minute sliding window, your screen capture covers approximately 16 minutes with at least two rain events so seeing a non-zero rain rate in all packets/records after the first rain event is expected. You can change the window size by setting the rain_period config option in weewx.cnf:

[StdWXCalculate]
....
[[Calculations]]
....
rain_period = xxx
....

Where xxx is the rain_period to be used in seconds. You will need to restart WeeWX or do a config reload for the new setting to take effect.

Gary

Andrew Milner

unread,
Nov 26, 2018, 10:49:13 AM11/26/18
to weewx-user
I cant get anything like the given rainrates for the period of the log

A longer log extract is definitely needed!!

gjr80

unread,
Nov 26, 2018, 11:56:43 PM11/26/18
to weewx-user
OK, let's do the maths...

Assume the default rain window (rain_period) of 900 seconds (15 minutes). WeeWX will calculate loop rainRate as sum of loop rainfall over the last 900 seconds * 3600/900.

First rain event is loop packet at 08:40:27 where 0.11811023622 fell. Previous rainRate was 0.0 so we know no rain fell in the previous 15 minutes. weeWX would calculate rainRate as 0.11811023622*3600/900 = 0.472440945. Log indicates 0.472440944882.

Loop packets from 08:40:28 to 08:51:15 inclusive have no recorded rainfall so rainRate remains at 0.11811023622*3600/900 = 0.472440945. Log indicates 0.472440944882 in each loop packet.

Loop packet 08:51:40 has a rain event that includes 0.11811023622 rainfall. weeWX would calculate rainRate as (0.11811023622+0.11811023622)*3600/900 = 0.94488189. Log indicates 0.944881889764.

No further loop rainfall occurs so loop rainRate remains 0.944881889764 for the rest of the screen capture. Had the screen capture continued and no further rainfall occurred I would expect loop rainRate would decay to 0.472440944882 in the first loop packet after 08:55:27. rainRate would drop to 0.0 in the first loop packet after 09:06:40.

rainRate in archive records works a little differently, in particular when software record generation is used (it's not clear what is being used in this case but I expect it will be software record generation). When software record generation is used the archive record rainRate is taken as the average of the loop rainRate values seen during the archive period. In this case the first archive record at 08:40:00 had seen no rain and rainRate = 0. The screen capture indicates 0.0

The 08:42:00 archive record would have seen loop packets at 08:40:15, 08:40:27 and 08:40:28 with respective rainRate values of 0, 0.472440944882 and 0.472440944882. The average of these is (2*0.472440944882)/3 = 0.31496063. The screen capture indicates 0.31496063.

The 08:44:00 archive record will have seen the loop rainRate value of 0.472440944882 seven times. The average being 0.472440944882. The screen capture indicates 0.472440944882.

The 08:46:00 archive record saw loop rainRate of 0.472440944882 three times so the resulting average is 0.472440944882. The 08:48:00 archive record saw loop rainRate of 0.472440944882 four times so the resulting average is 0.472440944882. The 08:50:00 archive record saw loop rainRate of 0.472440944882 once so the resulting average is 0.472440944882. These values agree with the screen capture.

The 08:52:00 archive record saw loop rainRate of 0.472440944882 three times and 0.944881889764 once so the resulting average is 0.590551181102. The screen capture indicates 0.590551181102.

The 08:54:00 archive record saw loop rainRate of 0.944881889764 three times so the resulting average is 0.944881889764. The screen capture indicates 0.944881889764.

So the upshot is given the rain values in the loop packets weeWX is calculating loop and archive rainRate exactly as it should. Where I believe the error lies is in the loop rain values as mentioned by the OP in post #3. If we look at the first rain event the rain_total jumps from 63.0 to 63.3 yet rain is recorded as 0.11811023622; we would have expected 0.3 ie the simple difference between success rain_total values. Also, if we multiply 0.11811023622 by 2.54 we get 0.3. So clearly we have a cm to inches conversion occurring somewhere that is not needed. My quick look at the SDR driver did not reveal anything, probably needs Matthew's eye!

Gary

Andrew Milner

unread,
Nov 27, 2018, 1:29:47 AM11/27/18
to weewx-user
Gary

I take off my hat to you Sir - what an absolutely fabulously informative response!!  My error was in mixing loop and recs and in trying to use the .3 increments in the loop records - which as you have explained appear to have been subjected to a conversion along the way.  Wow - many thanks for the full explanation of just how the calculation was done!!

Andrew

S1m0n3

unread,
Dec 7, 2019, 3:57:00 AM12/7/19
to weewx-user
After an year I've tried again to work with Weewx but I've same problem with rain 😢 can I do some things?! Thanks!!!

mwall

unread,
Dec 7, 2019, 7:42:52 AM12/7/19
to weewx-user
On Saturday, December 7, 2019 at 3:57:00 AM UTC-5, S1m0n3 wrote:

After an year I've tried again to work with Weewx but I've same problem with rain 😢 can I do some things?! Thanks!!!

sorry this is taking so long to resolve.

as gary pointed out, it looks like a units conversion issue.

fwiw, rtl_433 has at least three different decoding implementations for the fine offset x080 stations, and there have been variations in the units in those over the years.  that is why weewx-sdr works fine for one person but not for another - they are using different versions of rtl_433, and different fine offset packet decodings.

so what can you do?

first of all, before you try to make any sense of the rain rate, first be sure that the rain count is working properly.  rain rate is a derived quantity, so if your rain count is incorrect, the rain rate will never be correct.

secondly, update to the latest rtl_433 and the latest weewx-sdr.  there are just too many variations of rtl_433 out there for me to make weewx-sdr work with every one.

then do some tests.  run weewx directly so that you can see each loop and archive packet as it happens.  capture them to file.  pour water into the rain bucket and see what happens.

sudo weewxd weewx.conf | tee /var/tmp/rain-test-packets.log

at that point it should be obvious where the problem is.

m

S1m0n3

unread,
Dec 9, 2019, 10:55:33 AM12/9/19
to weewx-user
Found the problem, loop and rec has right value but when achieved it's multiplicate for 10 so in one hour i have 1,2mm of rain from 2,7 total rain to 3,9 and in archive I've 12mm 😳

gjr80

unread,
Dec 9, 2019, 4:07:22 PM12/9/19
to weewx-user
I suspect you have found a symptom of the problem not the cause - your archive rain data is 10 times what it should be - and the issue/cause will lie in rtl_433 and the sdr driver. WeeWX will take the data presented by the driver (in your case sdr) and convert it to the the units used by the unit system used by your database. That conversion process is mature and well tested so almost certainly not at fault. However, if the driver presents incorrect data then the the result in the archive will be incorrect. You say the 'loop and rec' has the right value - but are you sure? There are two key pieces of information in a loop packet or archive record that precisely define an observation; the value of the field, eg for field rain it might be 10, 5.4 or 3.2 and the unit system used by the packet/record, that is the field usUnits. The usUnits field determines how individual field values are interpreted, for rain it will be one of inches, mm or cm. Valid usUnits values are 1 (US customary units - inches for rain), 16 (Metric units - cm for rain) or 17 (MetricWX - mm for rain). So it is quite possible you are seeing the correct 'numbers' in your loop packets and archive records but the unit system may be wrong. The only way to tell is to post copies of the entire 'loop and rec' output along with details of the corresponding data that was stored in the archive.

Gary

S1m0n3

unread,
Dec 9, 2019, 4:20:07 PM12/9/19
to weewx-user
Yes, correct the usUnit in loop is 16 Metric (cm) and not 17 (mm) so this clarify the rain_total * 10. But how I can change it? 🤔

Thanks!

S1m0n3

unread,
Dec 9, 2019, 4:44:47 PM12/9/19
to weewx-user
hmm.. maybe my fault is thought that it was enough to change group_rain  and group_rainrate to mm in cm and not also  target_unit to METRICWX...

Simone

gjr80

unread,
Dec 9, 2019, 4:49:13 PM12/9/19
to weewx-user
As Matthew intimated it is likely the sdr driver needs some changes. I suggest you proceed as per Matthew's last post:

1. update to both the latest rtl_433 and sdr driver (you have not indicated if you have done this or not)

2. run some tests as outlined by Matthew, this may be best achieved by manually pouring water into your rain gauge whilst recording the results.

3. post the results (in the case above the file /var/tmp/rain-test-packets.log)

4. post a copy of the [StdConvert] stanza from your weewx.conf, this way we know what unit system your archive is using)

Once we have that info it should be clear where the cause lies and if necessary Matthew can fix the sdr driver.

Descriptive/piecemeal info can be helpful but in this case we need to see complete records/file extracts.

Gary

gjr80

unread,
Dec 9, 2019, 4:50:49 PM12/9/19
to weewx-user
From what you describe there is clearly a unit conversion issue in the driver/rtl_433, no amount of changing unit groups will fix such an issue, it may 'paper over the cracks' in one place but will leaving gaping holes somewhere else.

Gary

S1m0n3

unread,
Dec 9, 2019, 6:38:36 PM12/9/19
to weewx-user
1. Yes, I have rtl_433 version 19.08 directly from git and same for rtl-sdr i have cloned from official git (This is a new installation made one week ago)
2. I have recorded 3 hours of log with an event of rain (start at 16:27:47) from 2.7mm to 4.2mm of rain_total (in attachment)
4.

[StdConvert]


    target_unit
= METRIC  # Options are 'US', 'METRICWX', or 'METRIC'


I hope I have listed everything you need, thanks for your time ;)

Simone

Il giorno lunedì 9 dicembre 2019 22:50:49 UTC+1, gjr80 ha scritto:
Da quello che descrivi c'è chiaramente un problema di conversione di unità nel driver / rtl_433, nessuna quantità di gruppi di unità che cambiano risolverà un tale problema, potrebbe "incastrare le fessure" in un posto ma lascerà buchi spalancati da qualche altra parte.

Gary

Martedì 10 dicembre 2019 07:44:47 UTC + 10, S1m0n3 ha scritto:
hmm .. forse è colpa mia se si ritiene che sia stato sufficiente cambiare group_rain e group_rainrate in mm in cm e non anche target_unit in METRICWX ...

Simone


Il giorno lunedì 9 dicembre 2019 22:20:07 UTC+1, S1m0n3 ha scritto:
Sì, correggere usUnit in loop è 16 Metric (cm) e non 17 (mm), questo chiarisce rain_total * 10. Ma come posso cambiarlo? 🤔

Grazie!
rain-test-packets.log

S1m0n3

unread,
Dec 12, 2019, 8:00:57 AM12/12/19
to weewx-user
Il giorno domenica 25 novembre 2018 21:58:25 UTC+1, S1m0n3 ha scritto:
> Hello to all, I've installed weewx with SDR driver to my raspberry to intercept signals from my WH3080, all it's ok (except report to the Wunderground that I understood by some forum posts that has been fixed in the 3.9 version in development). But I have a big issue with rain rate and rain accu...  it seems really exaggerated... Today I've registered... 
>
> Today's Rain177.0 mmHigh Rain Rate48.0 mm/hr at 01:51:00
>
>
>
> That isn't much credible... The station sends rain total of the day so weewx must calculate the rain rate.
>
>
> this is sensor map
>
>
>
>   [[sensor_map]]
>         windGust = wind_gust.201.FOWHx080Packet
>         outBatteryStatus = battery.201.FOWHx080Packet
>         rain_total = rain_total.201.FOWHx080Packet
>         windSpeed = wind_speed.201.FOWHx080Packet
>         windDir = wind_dir.201.FOWHx080Packet
>         outHumidity = humidity.201.FOWHx080Packet
>         outTemp = temperature.201.FOWHx080Packet
> UV = uv_index.95.FOWH3080Packet
> radiation = radiation.95.FOWH3080Packet
>
>
> maybe I have to add deltas for rain? 

Any idea?

mwall

unread,
Dec 12, 2019, 9:00:34 AM12/12/19
to weewx-user
On Monday, December 9, 2019 at 6:38:36 PM UTC-5, S1m0n3 wrote:
1. Yes, I have rtl_433 version 19.08 directly from git and same for rtl-sdr i have cloned from official git (This is a new installation made one week ago)
2. I have recorded 3 hours of log with an event of rain (start at 16:27:47) from 2.7mm to 4.2mm of rain_total (in attachment)

what hardware are you using?

please post your weewx configuration file.

how many times did you restart weewx during the capture of the output?

how many times, and when, did you cause a rain event (e.g., tip the rain bucket)?

did you modify the output before posting it here?

here is the summary of rain events.  your database is METRIC, so the values below are in centimeters.  

your output shows a system that is all kinds of messed up.

- the loop data are not being accumulated by the archive records
- here are duplicate LOOP events
- there is a very odd anomaly in the 16:56:00 REC
- the REC intervals are not consistent.  for awhile the archive interval is 1 minute, but then sometimes it is 2 or 5

i have no explanation for any of these things without knowing more about your configuration.  it looks like you tampered with the output and/or the testing procedure.

type timestamp                            rain  rain_total

LOOP 2019-12-09 16:27:47 CET (1575905267) 0.3   3.0

REC  2019-12-09 16:23:00 CET (1575904980) 0.3   3.0

LOOP 2019-12-09 16:28:06 CET (1575905286) 0.3   3.0

REC  2019-12-09 16:28:00 CET (1575905280) 0.0   3.0

LOOP 2019-12-09 16:28:35 CET (1575905315) 0.0   3.0

LOOP 2019-12-09 16:29:06 CET (1575905346) 0.0   3.0

REC  2019-12-09 16:29:00 CET (1575905340) 0.3   3.0

...

LOOP 2019-12-09 16:38:06 CET (1575905886) 0.0   3.0

LOOP 2019-12-09 16:38:11 CET (1575905891) 0.3   3.3

LOOP 2019-12-09 16:38:59 CET (1575905939) 0.3   3.6

REC  2019-12-09 16:38:00 CET (1575905880) 0.0   3.0

LOOP 2019-12-09 16:39:06 CET (1575905946) 0.3   3.6

LOOP 2019-12-09 16:40:06 CET (1575906006) 0.3   3.6

REC  2019-12-09 16:40:00 CET (1575906000) 0.3   3.6

LOOP 2019-12-09 16:40:35 CET (1575906035) 0.3   3.9

LOOP 2019-12-09 16:41:06 CET (1575906066) 0.3   3.9

LOOP 2019-12-09 16:42:06 CET (1575906126) 0.3   3.9

REC  2019-12-09 16:42:00 CET (1575906120) 0.3   3.9

LOOP 2019-12-09 16:42:59 CET (1575906179) 0.0   3.9

LOOP 2019-12-09 16:43:06 CET (1575906186) 0.0   3.9

...

LOOP 2019-12-09 16:55:07 CET (1575906907) 0.0   3.9

LOOP 2019-12-09 16:55:47 CET (1575906947) 0.3   4.2

REC  2019-12-09 16:55:00 CET (1575906900) 0.0   3.9

LOOP 2019-12-09 16:56:06 CET (1575906966) 0.3   4.2

LOOP 2019-12-09 16:56:35 CET (1575906995) 0.0   4.2

REC  2019-12-09 16:56:00 CET (1575906960) 0.3   3.975

LOOP 2019-12-09 16:57:06 CET (1575907026) 0.0   4.2

LOOP 2019-12-09 16:57:06 CET (1575907026) 0.0   4.2

LOOP 2019-12-09 16:57:23 CET (1575907043) 0.0   4.2

REC  2019-12-09 16:57:00 CET (1575907020) 0.6   4.2

LOOP 2019-12-09 16:58:06 CET (1575907086) 0.0   4.2

LOOP 2019-12-09 16:58:06 CET (1575907086) 0.0   4.2

LOOP 2019-12-09 16:58:11 CET (1575907091) 0.0   4.2

LOOP 2019-12-09 16:58:59 CET (1575907139) 0.0   4.2

REC  2019-12-09 16:58:00 CET (1575907080) 0.0   4.2

LOOP 2019-12-09 16:59:06 CET (1575907146) 0.0   4.2

LOOP 2019-12-09 16:59:06 CET (1575907146) 0.0   4.2

LOOP 2019-12-09 16:59:47 CET (1575907187) 0.0   4.2

REC  2019-12-09 16:59:00 CET (1575907140) 0.0   4.2

LOOP 2019-12-09 17:00:06 CET (1575907206) 0.0   4.2

LOOP 2019-12-09 17:00:06 CET (1575907206) 0.0   4.2



S1m0n3

unread,
Dec 12, 2019, 10:17:27 AM12/12/19
to weewx-user
what hardware are you using?

Raspberry Pi 3 with an rtl-sdr usb to retrieve data from 433mhz WH3080 (has partial packets for time, uv and weather)

please post your weewx configuration file

it's in attachment

how many times did you restart weewx during the capture of the output?

this is a log of an entire session of weewx started directly 

how many times, and when, did you cause a rain event (e.g., tip the rain bucket)?

I waited for a real rain because the station is 3 meters high and is not easily accessible.

did you modify the output before posting it here?
weewx.conf

mwall

unread,
Dec 12, 2019, 1:19:21 PM12/12/19
to weewx-user
thank you for those details, but we need to go deeper.  here are two things to try:

1) run weewx-sdr directly, during a rain event, and post the data here.  invoke it like this:

sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json -R 32"

i am looking for a few things in the output:

- why are there duplicate packets?  the weewx-sdr driver has logic to eliminate duplicates, so why do they show up in your weewxd output?

- which packets are you actually receiving?  in your configuration you specify both FOWHx080Packet and FOWH3080Packet, but the '-R32' option should pick up only the FOWHx080Packet (i'll bet that you never see any UV or radiation data)

- exactly what is the packet format that you receive?  this will tell us if the JSON output from rtl_433 is in the right units and format that are expected by weewx-sdr.

still unanswered:

- why is your archive interval inconsistent?

- where did the fractional REC value rain_total=3.975 come from?


2) run without the bme288wx extension.  does that extension modify LOOP or REC data?  try running weewxd without it to see if behavior is any different during and after rain events.  (bme288wx might be perfectly fine, but i have no idea which version you have or what it is actually doing)

salinois

unread,
Dec 12, 2019, 2:23:37 PM12/12/19
to weewx...@googlegroups.com

Hello,
I have not yet installed MQTT on my station,

what do you recommend? private or public,

can I install it on the same RPi where weewx-belchertown is installed?

I started to look at the github of PAT

tell me, thanks to you

Patrick (from FRANCE)



salinois

unread,
Dec 12, 2019, 2:27:04 PM12/12/19
to weewx...@googlegroups.com

is it related to mqtt

S1m0n3

unread,
Dec 13, 2019, 4:28:02 AM12/13/19
to weewx-user
I've run weewx-sdr directly how you recommended (you can see the console log in the attachment), I see same packet parsed 3 times, it's not normal right? And another "problem" is that some times the rain_total from station is reset (is' not problem only of my station but other guys with this station get a reset, maybe low battery, usually around 100mm it is reset). Before using weewx I've used another "software" developed by an Italian that used rtl_433 without any problem, the only thing is that the software could not keep track of the reset of rain_total and reported the rain in negative when this happened.

And how you can see i receive FOWHx080Packet and FOWH3080Packet ... FOWHx080Packet for the classic weather data (temp, hum, rain, wind), FOWH3080Packet  for UV Packet. usUnit is 16 and rain_total is in millimeters (rain sensor snaps every 0.3mm).

PS: I'm not specialized in python but I know how to use it, if I know where to look to understand the problem, tell me without problems.
console-output-weewx-sdr.txt

mwall

unread,
Dec 13, 2019, 10:29:34 AM12/13/19
to weewx-user


On Friday, December 13, 2019 at 4:28:02 AM UTC-5, S1m0n3 wrote:
 I see same packet parsed 3 times, it's not normal right?

this is not unusual.  i do not know why, but rtl_433 often outputs the same packet multiple times.  there is logic in genLoopPackets to skip duplicates, so although you see them in the output when you run weewx-sdr directly, you should *not* see duplicates in the weewxd output.

could you run weewx with debug=1 then post the log output?  it should report when duplicate packets appear, and when it rejects the duplicates.

 
And another "problem" is that some times the rain_total from station is reset (is' not problem only of my station but other guys with this station get a reset, maybe low battery, usually around 100mm it is reset). Before using weewx I've used another "software" developed by an Italian that used rtl_433 without any problem, the only thing is that the software could not keep track of the reset of rain_total and reported the rain in negative when this happened.

well, if the hardware is emitting garbage then there is nothing the weewx-sdr driver or weewx can do about it.

 
And how you can see i receive FOWHx080Packet and FOWH3080Packet ... FOWHx080Packet for the classic weather data (temp, hum, rain, wind), FOWH3080Packet  for UV Packet.

i was mistaken about the different packet types.  there are two different packet types from one rtl_433 setting - the "-R 32" option.  i thought there could only be one.  thank you for correcting me.

 
usUnit is 16 and rain_total is in millimeters (rain sensor snaps every 0.3mm).
 
your unit system is METRIC, so the values you see for rain in LOOP and REC is measured in cm, not mm.  that means that weewx is seeing 0.3 cm (3 mm, not 0.3 mm) for each bucket tip.

so it looks like the FOWHx080Packet should be METRICWX not METRIC. 

i have modified the weewx-sdr driver as of commit 662ad60

note that will also affect wind speed - using METRICWX in the 1080/3080 packets means wind speed should be reported in m/s, not kph.  could you verify the wind speed from your station?  (you will have to measure fairly high wind speeds to confirm - at low wind speeds the differences do not show up clearly)

S1m0n3

unread,
Dec 13, 2019, 11:20:13 AM12/13/19
to weewx-user

First of all thank you for the support you are giving ;-) btw my station has wind speed with km/h, in fact i'm testing your commit and I have gusts and wind like tornadoes :) . Is it possible to keep the wind measurement in km / h?
 
Meanwhile I started weewx directly and I'm waiting for a rainy event (watching the day I won't have to wait long) 
 

S1m0n3

unread,
Dec 13, 2019, 11:37:19 AM12/13/19
to weewx-user
The rain has arrived! And it seems that now it is counted well !!!

You can see the log of weewx (first rain event start at 2019-12-13 17:24:22) (heavy thunderstorms with so much rain)
console-log-weewx-start-directly.txt

mwall

unread,
Dec 13, 2019, 3:28:06 PM12/13/19
to weewx-user


On Friday, December 13, 2019 at 11:20:13 AM UTC-5, S1m0n3 wrote:

First of all thank you for the support you are giving ;-) btw my station has wind speed with km/h, in fact i'm testing your commit and I have gusts and wind like tornadoes :) . Is it possible to keep the wind measurement in km / h? 

i changed the unit system back to METRIC, and did a conversion of rain_total to cm

regarding the packet duplication, with debug=1, please post the weewx log, not the weewxd output
 
Reply all
Reply to author
Forward
0 new messages