Closed mrneutron42 closed 3 years ago
I think this my fix it, you will have to delete some erroneous rain data from your database. Look at sdr.py around line 32 for the explanation:
driver = user.sdr
[[sensor_map]]
inTemp = temperature.25A6.AcuriteTowerPacket
outTemp = temperature.24A4.AcuriteTowerPacket
rain_total = rain_total.A52B.Acurite5n1Packet
If no sensor_map is specified, no data will be collected.
The deltas stanza indicates which observations are cumulative measures and
how they should be split into delta measures.
[SDR]
...
[[deltas]]
rain = rain_total
change to rain_total = rain_total.0011.AcuriteAtlasPacket.
Thanks for the pointers!
I need to revisit this one, mine is broke.
lightning_distance = distance.3C47.AcuriteLightningPacket
strikes_total = strikes_total.3C47.AcuriteLightningPacket
[[deltas]]
lightning_strike_count = strikes_total
I use the sqlite comand line.
you can delete the db file and on a restart a new db will be created.
Adding the [[deltas]] section fixed the phantom rain problem! Thanks!
This week, I got my Acurite Atlas data coming into weewx for the first time. I'm using rtl_433 and weewx-sdr. The Atlas is inside my house while I set up weewx and test all the pieces of the system, so there is no rain entering the unit.
To test the rain counter in the Atlas, I tipped its teeder-todder back and forth a few times and that did register a fraction of an inch of rain. It amounted to about 0.17 inches of rain. Which I saw reported in the data that is produced from running sdr.py: sudo PYTHONPATH=/home/weewx/bin python3 /home/weewx/bin/user/sdr.py --cmd="rtl_433 -R 40 -M utc -F json" Captured file attached. Atlas-data.txt Here's a section of the captured data.
You can see that 'rain_total.0011.AcuriteAtlasPacket' is only 0.17. This value is sent over and over, all day, and I have never seen it reset to 0. I guess this is the Atlas cumulative rain amount?
The mystery: I am seeing large amounts of rain being registered in the weewx webpage, and can't understand how! When I look into the /home/weewx/bin/weewx.sdb file, I see rain and rain rate numbers! How? I have the [sensor_map] section of weewx.conf is assigning the rain_total.0011.AcuriteAtlasPacket data to the 'rain' variable taken from the wview_extended.py schema in /home/weewx/bin/schemas
What is going wrong here?