switchdoclabs / rtl_433

SDL Modified rtl_433 source for SkyWeather2 and the Smart Garden System V2 and the WeatherRack2.
GNU General Public License v2.0
15 stars 7 forks source link

Temperature of 1000+ from FT020T #1

Closed benleavett closed 3 years ago

benleavett commented 3 years ago

The temperature reading for my new unit doesn't seem right - it's consistently over 1000.

I've looked in the code and I still can't work out how I should convert it into C/F. What does a temperature of 1077 mean in C/F?

The raw data I get from my new unit and this script from switchdoclabs:

{ "avewindspeed": 0, "batterylow": 1, "cumulativerain": 144, "gustwindspeed": 0, "humidity": 64, "id": 0, "light": 0, "mic": "CRC", "model": "SwitchDoc Labs-FT020T", "temperature": 1077, "time": "2020-11-18 18:45:16", "uv": 0, "winddirection": 0 }

switchdoclabs commented 3 years ago

The temperature comes from the FT020T in F with an offset.

Temperature F = (received temperature - 400)/10.0

We have a chart giving all the transforms. We will add it to the README.md

SDL

benleavett commented 3 years ago

Thanks. I would love to see a table that explained all the units / transforms for each field.

mwaterbu commented 3 years ago

@switchdoclabs any reason not to just do the conversion in switchdoclabs_FT020T.c, as is done for switchdoclabs_F016TH.c? I created a pull request (#2) that does this.