matthewwall / weewx-sdr

weewx driver for software-defined radio
GNU General Public License v3.0
114 stars 74 forks source link

TFA pluviometer 30.3233.01 not parsed #156

Open modussiam opened 2 years ago

modussiam commented 2 years ago

Hello, I'd like to use a TFA pluviometer sensor ( ref : 30.3233.01 ) with weewx-sdr . It is recognized by sdr_433 :

time : 2022-06-18 13:51:04 model : TFA-Drop id : a9f99 Battery : 1 Rain in MM: 32.512 Integrity : CHECKSUM

But the output in the weewx-sdr driver is not parsed .
out: ['{"time" : "2022-06-18 07:04:34", "model" : "TFA-Drop", "id" : 696217, "battery_ok" : 1, "rain_mm" : 29.210, "mic" : "CHECKSUM"}\n']

i'm not a coder and don't know how to write the parser . All help will be appreciated . Thank you and have a nice wwek !

modussiam commented 2 years ago

hello Andy, It works ! parsed: {'dateTime': 1655731747, 'usUnits': 16, 'rain_total.0000.TFADropPacket': 1.016, 'battery.0000.TFADropPacket': 1} A big THANK YOU ! Sheers from france ! Bye !

andylittle commented 2 years ago

Check to make sure the rain amount is correct in weewx.

modussiam commented 2 years ago

Hey, rtl_433 gives 10 millimeter and weewx gives 10 centimeters
the amount in weewx is 10 X the amount in rtl_433

modussiam commented 2 years ago

I've modified weewx.conf to have rain amount in millimeters but it's allways exactly 10 X higher compared with rtl_433 .

andylittle commented 2 years ago

change line 3117 to pkt['usUnits'] = weewx.METRICWX or grab this.

Guess I should read this first.

modussiam commented 2 years ago

Hey , Now it's fine after changinf line 3117 . With your help all my sensors are integrated , so i'm going to read the customization guide now ;)

Thank you very much !