Things to think about: Makes sense that the lack of a clock would imply something else. But, what is it? Take a measured amount of water and pour it into the rain bucket. What do you see in the captured data?
Perhaps you have a unit conversion problem? The packet can use US, METRIC, or METRICWX unit systems (see the Appendix *Units* in the Customizing Guide for definitions), but whichever one you choose, all the data in the packet must conform to the chosen system. You definitely do not want to set rainRate. It is typically a derived value, calculated by weewx from the stream of loop data. A few weather stations can calculate it themselves, but I'd be surprised if yours is one of them. Finally, unless you have other reasons for wanting to use MQTT as an intermediary, there is a rtl-433 driver <https://github.com/matthewwall/weewx-sdr> available for WeeWX. You could simplify your system by going directly from sensor to database by using it. On Tue, Jan 12, 2021 at 3:03 PM [email protected] <[email protected]> wrote: > I don't think its based on daily rain. Why? Because it's a very simple > station and i'm pretty sure it doesn't have internal clock. I don't have > any way to set the clock in station....so how would it calculate midnight?! > > This is my 'station': Spare part for weather station (Transmitter / > thermo hygro sensor) 433Mhz, with solar panel|Temperature Instruments| - > AliExpress > <https://www.aliexpress.com/item/32872784585.html?spm=a2g0s.9042311.0.0.27424c4dhJeTs7> > > I have a rain bucket attached to it. > To get data, I'm using rtl_433 to 'capture' the wireless data, generate a > JSON and send to my MQTT server. In Weewx, i'm using WeeWX-MQTTSubscribe to > get the data from MQTT server. > Everything is working fine now, except for the rain, which still twice the > reported value. > > > Em terça-feira, 12 de janeiro de 2021 às 19:41:32 UTC-3, [email protected] > escreveu: > >> There is no master list of all the database variables. >> >> However, there are some comments about rain in the section *Porting to >> new hardware* <http://www.weewx.com/docs/customizing.htm#porting> of the >> Customizing Guide. In particular, the field 'rain' should be the amount of >> rain that fell *during the period*. That is, if it's LOOP packets, it's >> the amount of rain that fell since the last LOOP packet, *not*, for >> example, the amount of rain for the day. >> >> I suspect your field rain_mm is the amount of rain that has fallen since >> midnight. As explained in the porting guide, you'll have to take deltas of >> that field to get the field rain. >> >> So, to answer your questions: >> >> rain_mm => If this is rain since midnight, it should be mapped to >> dayRain, which is not in the standard database schema, but is used by some >> uploaders. >> temperature_C => outTemp. Correct. >> humidity => outHumidity. Correct. >> >> wind_avg_km_h => There is no field for averages. It's calculated by WeeWX >> when needed. >> wind_max_km_h => Field windGust >> wind_dir_deg => Field windDir >> >> Please read the porting guide. Make sure your driver emits packets using >> a consistent unit system. The unit system used by the database doesn't >> matter. Incoming data will be converted automatically. >> >> -tk >> >> >> >> On Tue, Jan 12, 2021 at 2:11 PM [email protected] <[email protected]> >> wrote: >> >>> >>> Also, a second question: >>> >>> My station is reporting "0.6" in "rain_mm" field. It's a very light rain >>> now. I'm not sure if this is for the last hour or last 15 minutes. >>> The thing is that database is clean and in report generate, this is what >>> i'm getting for rain: >>> >>> Rain Rate 88.8 mm/h >>> Rain Today 36.0 mm >>> >>> >>> What am I missing? >>> >>> My units are set (globally in weewx.config) to METRIC. >>> >>> Em terça-feira, 12 de janeiro de 2021 às 18:50:23 UTC-3, >>> [email protected] escreveu: >>> >>>> Is there any list of fields and what it means in docs? >>>> >>>> I have some fields in my station but I'm not sure which field should be >>>> mapped to which field in DB. >>>> >>>> rain_mm => Currently mapped to 'rain' >>>> temperature_C => outTemp >>>> humidity => outHumidity >>>> >>>> wind_avg_km_h => not mapped, I'm not sure which is the correct field in >>>> DB >>>> wind_max_km_h => not mapped, I'm not sure which is the correct field in >>>> DB >>>> wind_dir_deg => not mapped, I'm not sure which is the correct field in >>>> DB >>>> >>>> >>>> I'm not an expert, so I don't have idea if I should use wind_avg_km_h >>>> for windSpeed, for example. >>>> >>>> I'm sorry if it's a dumb question. >>>> >>> -- >>> 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/ad3fe2f1-b6a6-4fc3-a2ce-23389815d8a0n%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/ad3fe2f1-b6a6-4fc3-a2ce-23389815d8a0n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/0c40c0f0-9894-4794-a4b4-8e2e0e3d9fban%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/0c40c0f0-9894-4794-a4b4-8e2e0e3d9fban%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEB%3D0a4LUzY9c%2Boav9mVcXLCN_L9kr2GzpWntBY6MsziSg%40mail.gmail.com.
