On Wednesday, March 1, 2017 at 2:32:28 PM UTC-5, Frank Johnson wrote:
>
> ok now im confused (big time) here is my log file and looks like it should
> work so what is it looking for...
>
frank,
the code i posted is not tested, and in fact is not correct. this is
closer:
with open(filename) as f:
line = f.readline()
values = line.split(',')
record['inTemp'] = float(values[0])
record['inHumidity'] = float(values[1])
record['barometer'] = float(values[2])
but there is no error-checking, and you still need to check
record['usUnits'] to see whether you need to do any unit conversions.
m
--
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.