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 On Tuesday, 10 December 2019 01:55:33 UTC+10, S1m0n3 wrote: > > Il giorno sabato 7 dicembre 2019 13:42:52 UTC+1, mwall ha scritto: > > 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 > > 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 😳 -- 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/338dd1df-9ec8-4717-8488-7bcffda091af%40googlegroups.com.
