Hi Adam, many thanks for your code which I use with a Tracer 2210AN.
In my cabin, the temperature can fall below zero C in winter. I found the Tracer encodes negative values in 2's complement. To display temperatures correctly, I replaced the /100 Range nodes after Tbatt and Tcase with Function nodes, with the following code:
var t = msg.payload;
if (t >> 15) {
t -= 1 << 16;
}
msg.payload = t/100;
return msg;
Hi Adam, many thanks for your code which I use with a Tracer 2210AN.
In my cabin, the temperature can fall below zero C in winter. I found the Tracer encodes negative values in 2's complement. To display temperatures correctly, I replaced the /100 Range nodes after Tbatt and Tcase with Function nodes, with the following code: