Here is the suggested code change for the negative temperature:

First, add the following import near the top of the file (next to the other 
imports):

import struct

Then, use the following code to compute the temperature

record['t_%s' % (ch + 1)] = struct.unpack('>h', buf[idx:idx+2])[0] / 10.0


I think that this should work properly for all temperatures.
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to