We had some rain today and noticed that rtl-davis was reporting very low 
amount. After checking Bucket size was set correctly for my US bucked 
looked at databases vales for both my normal production and the development 
machine. Bucket tips should record 0.01 however they were 0.001
Development machine rtldavis:0.01
sqlite> select datetime,sum(rain) from archive where datetime between 
1554253200 and datetime('now');
1554341700|0.037

Production davis vantage 
sqlite> select datetime,sum(rain) from archive where datetime between 
1554253200 and datetime('now');
1554341700|0.37

Seems like a simple decimal point error.
Maybe as simple as 
rtldavis.py
Line 735
change this
self.rain_per_tip = 0.0254 if bucket_type == 0 else 0.2 # mm

to
self.rain_per_tip = 0.254 if bucket_type == 0 else 0.2 # mm
Unfortunately I don't know if more changes are required because by the time 
I made the change it stopped raining!  
Thanks
Paul  

Reply via email to