Open matt2005 opened 7 years ago
Here is a message from the gateway. {"raw":"20;33;DKW2012;ID=001e;TEMP=0001;HUM=99;WINSP=0000;WINGS=0000;RAIN=0060;WINDIR=0004;\r","TEMP":0.10,"WINSP":0.00,"WINGS":0.00,"RAIN":9.60,"WINDIR":"E"}
The humidity conversion is because my weather station (digitech XC0348, which is detected by RFLink as DKW2012 in R44) was delivering humidity as hex.
Are you using R44 or R45 (the latest at this point?) - we may need some kind of switch for this if we are getting different value basis for the same protocol!
I'm using R45 and reading the release notes there was a fix for dk2012. I guess you could run 10;VERSION; and then save that to a variable to use additional logic for specific versions.
matt - will upgrade to R45 and see if it fixes my issue also - then we can treat the same in all cases.
Otherwise will need some switching (PITA)
My maplin weather station reports humidity as decimal. This appears to be correct as per the rflink protocol reference. HUM=99 => Humidity (decimal value: 0-100 to indicate relative humidity in %) I noticed a if statement in the code specifically for the dk2012 so didn't want to change it as you may have reasons for the behaviour.