rflink-to-mqtt icon indicating copy to clipboard operation
rflink-to-mqtt copied to clipboard

Negative temperature figures not being translated correctly

Open matt2005 opened this issue 8 years ago • 3 comments

As per the rflink protocol reference. TEMP=9999 => Temperature (hexadecimal), high bit contains negative sign, needs division by 10 (0xC0 = 192 decimal = 19.2 degrees)

Currently negative temperatures are getting throw out as they exceed the high temp limit

matt2005 avatar Dec 29 '16 14:12 matt2005

Here is the data for a negative temperature. {"raw":"20;6B;DKW2012;ID=0004;TEMP=800d;HUM=99;WINSP=0000;WINGS=0000;RAIN=0060;WINDIR=0002;\r","WINSP":0.00,"WINGS":0.00,"RAIN":9.60,"WINDIR":"NE"}

matt2005 avatar Dec 29 '16 17:12 matt2005

I'm guessing the 8 is the negative sign as the actual temperature is -1.3

matt2005 avatar Dec 29 '16 17:12 matt2005

fixed in #2

matt2005 avatar Dec 30 '16 23:12 matt2005