I can't find this in the manual, and can't make much sense of the data...
I am using SDR with a 5n1 Acurite station.
The acurite data reported by the rtl_433 is:
rainfall_accumulation: 0.00 in
raincounter_raw: 2501
the output when doing: sudo PYTHONPATH=/usr/share/weewx python
/usr/share/weewx/user/sdr.py --cmd="rtl_433 -q -U -F json -R 40" out
out: ['{"time" : "2018-08-18 20:26:30", "model" : "Acurite 5n1 sensor",
"sensor_id" : 2894, "channel" : "A", "sequence_num" : 0, "battery" : "OK",
"message_type" : 49, "wind_speed_mph" : 0.000,
"wind_dir_deg" : 112.500, "wind_dir" : "ESE",
"rainfall_accumulation_inch" : 0.000, "raincounter_raw" : 2510}\n',
so the name changed from rainfall_accumulation to rainfall_accumulation_inch
it also shows the parsed value:
parsed: {'status.0B4E.Acurite5n1Packet': None,
'rain_counter.0B4E.Acurite5n1Packet': 2510,
'wind_speed.0B4E.Acurite5n1Packet': 0.0, 'channel.0B4E.Acurite5n1Packet':
'A', 'dateTime': 1534623990,
'wind_dir.0B4E.Acurite5n1Packet': 112.5,
'rain_total.0B4E.Acurite5n1Packet': 25.1, 'battery.0B4E.Acurite5n1Packet':
0, 'usUnits': 1}
now we have two new names
rain_total: 25.1
rain_counter: 2501
so I wrote this to the db as follows:
rain = rain_total.0B4E.Acurite5n1Packet
but the data in the actual database is:
sqlite> select dateTime, rainRate, rain from archive order by dateTime desc
limit 50;
dateTime rainRate rain
---------- ---------------- ----------
1534623900 7196.00603015075 577.3
1534623600 7170.27298578198 602.4
1534623300 6875.84742268041 652.6
1534623000 6460.74 577.3
1534622700 4253.87076923077 502.0
1534622400 2078.06330935252 602.4
1534622100 417.046153846154 225.9
1534621800 6792.77714285714 677.7
1534621500 6851.7422222222 476.9
1534621200 6868.42705314007 602.4
1534620900 6728.72153110049 552.2
So, I have a rain rate of 180m per hour in my graph....
Looking outside, I'm fairly sure It's not that wet.........
I started recording the other value too, into a custom field
rain_counter = rain_counter.0B4E.Acurite5n1Packet
That value doesn't change when no rain
sqlite> select dateTime, rainRate, rain, rain_counter from archive order by
dateTime desc limit 50;
dateTime rainRate rain rain_counter
---------- ---------------- ---------- ------------
1534623900 7196.00603015075 577.3 2510.0
1534623600 7170.27298578198 602.4 2510.0
1534623300 6875.84742268041 652.6 2510.0
1534623000 6460.74 577.3 2510.0
1534622700 4253.87076923077 502.0 2510.0
1534622400 2078.06330935252 602.4 2510.0
1534622100 417.046153846154 225.9 2510.0
1534621800 6792.77714285714 677.7 2510.0
1534621500 6851.7422222222 476.9 2510.0
1534621200 6868.42705314007 602.4 2510.0
so somehow, even though I have the same value in the parsed data, both
rain, and rainRate are coming in as something completely different....
what am I doing wrong here?
Thanks!
Dave
--
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].
For more options, visit https://groups.google.com/d/optout.