NorthernMan54 / homebridge-acurite-temperature

Fridge and Freezer temperature sensor using a RTL-SDR and the Acurite 986 Fridge/Freezer temperature sensor
MIT License
5 stars 0 forks source link

how to add 1 decimal place at temperatur? #4

Closed OE5DRO closed 5 years ago

OE5DRO commented 5 years ago

my sensor is sending me {"time" : "2019-04-23 16:51:26", "model" : "Ambient Weather F007TH Thermo-Hygrometer", "device" : 234, "channel" : 1, "battery" : "Ok", "temperature_C" : 18.778, "humidity" : 47, "mic" : "CRC"} temepratur with 3 digital places but homekit shows no decimal places. is it rounded in the script or is it done by home kit?

NorthernMan54 commented 5 years ago

The plugin rounds it to 1 decimal point, but homekit then rounds it to .5's. If you use the Eve app, it displays at one decimal point.

https://github.com/NorthernMan54/homebridge-acurite-temperature/blob/65f5e9584e12d29640d7093aa96426429b060fcf/sensor.js#L158

OE5DRO commented 5 years ago

thank you for your fast answer, ill watch out for this eve app

OE5DRO commented 5 years ago

eve. is so cool, thanks!

NorthernMan54 commented 5 years ago

And it will graph the history for you ;-)

On Apr 23, 2019, at 1:45 PM, OE5DRO notifications@github.com wrote:

eve. is so cool, thanks!

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.