Two of us - I feel sorry for everyone else. Think of all the fun they're
missing :D
*INCORRECT HANDLING OF NEGATIVE TEMPERATURES*
Changed the code as you suggested and made a quick test comparing
ws3000driver vs. display. Results below:
*Display: -0.2 vs log -0.1 (outside temp.)*
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: reading 64 bytes
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: read: 7b ff fd 32 00 dc 1e 00
cd 23 00 d2 23 00 d9 21 00 b0 20 00 df 1d 7f ff ff 40 7d 00 40 7d 2c 00 64
40 7d 00 4e 14 2f 2c d1 d7 e7 70 9c 7b e5 e1 3e 17 5f 4e 19 72 97 5e 02 1a
0e 52 33 f6 80 ce (len=64)
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: extracting values for
sensor_values
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: raw: array('B', [123, 255,
253, 50, 0, 220, 30, 0, 205, 35, 0, 210, 35, 0, 217, 33, 0, 176, 32, 0,
223, 29, 127, 255, 255, 64, 125])
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: data: {'h_6': 32, 'h_7': 29,
'h_4': 35, 'h_5': 33, 'h_2': 30, 'h_3': 35, 'h_1': 50, 't_6': 17.6, 't_2':
22.0, 't_3': 20.5, 't_1': -0.2, 'type': 'sensor_values', 't_7': 22.3,
't_4': 21.0, 't_5': 21.7}
Oct 29 00:01:02 ripapi weewx[18267]: ws3000: packet: {'dateTime':
1540764063, 'extraHumid6': 32, 'extraHumid7': 29, 'extraHumid4': 35,
'extraHumid5': 33, 'extraHumid2': 30, 'extraHumid3': 35, 'extraHumid1': 50,
'extraTemp6': 17.6, 'extraTemp7': 22.3, 'extraTemp4': 21.0, 'extraTemp5':
21.7, 'extraTemp2': 22.0, 'extraTemp3': 20.5, 'usUnits': 17, *'extraTemp1':
-0.2*}
*DIsplay -5.4 vs log -5.3 (some minutes in the freezer)*
Oct 29 00:05:13 ripapi weewx[18267]: ws3000: read: 7b ff ca 27 00 dc 1e 00
cc 22 00 d2 23 00 da 21 00 af 20 00 e0 1d 7f ff ff 40 7d 00 40 7d 2c 00 64
40 7d 00 4e 14 2f 2c d1 d7 e7 7
0 9c 7b e5 e1 3e 17 5f 4e 19 72 97 5e 02 1a 0e 52 33 f6 80 ce (len=64)
Oct 29 00:05:13 ripapi weewx[18267]: ws3000: extracting values for
sensor_values
Oct 29 00:05:13 ripapi weewx[18267]: ws3000: raw: array('B', [123, 255,
202, 39, 0, 220, 30, 0, 204, 34, 0, 210, 35, 0, 218, 33, 0, 175, 32, 0,
224, 29, 127, 255, 255, 64, 125])
Oct 29 00:05:13 ripapi weewx[18267]: ws3000: data: {'h_6': 32, 'h_7': 29,
'h_4': 35, 'h_5': 33, 'h_2': 30, 'h_3': 34, 'h_1': 39, 't_6': 17.5, 't_2':
22.0, 't_3': 20.4, 't_1': -5.3,
'type': 'sensor_values', 't_7': 22.4, 't_4': 21.0, 't_5': 21.8}
Oct 29 00:05:13 ripapi weewx[18267]: ws3000: packet: {'dateTime':
1540764313, 'extraHumid6': 32, 'extraHumid7': 29, 'extraHumid4': 35,
'extraHumid5': 33, 'extraHumid2': 30, 'extraHu
mid3': 34, 'extraHumid1': 39, 'extraTemp6': 17.5, 'extraTemp7': 22.4,
'extraTemp4': 21.0, 'extraTemp5': 21.8, 'extraTemp2': 22.0, 'extraTemp3':
20.4, 'usUnits': 17,
*'extraTemp1': -5.3}*
*DIsplay -11.2 vs log -11.1 (a bit longer in the freezer)*
Oct 29 00:12:32 ripapi weewx[18267]: ws3000: read: 7b ff 90 28 00 dc 1e 00
cd 22 00 d2 23 00 d9 21 00 b0 20 00 df 1d 7f ff ff 40 7d 00 40 7d 2c 00 64
40 7d 00 4e 14 2f 2c d1 d7 e7 70 9c 7b e5 e1 3e 17 5f 4e 19 72 97 5e 02 1a
0e 52 33 f6 80 ce (len=64)
Oct 29 00:12:32 ripapi weewx[18267]: ws3000: extracting values for
sensor_values
Oct 29 00:12:32 ripapi weewx[18267]: ws3000: raw: array('B', [123, 255,
144, 40, 0, 220, 30, 0, 205, 34, 0, 210, 35, 0, 217, 33, 0, 176, 32, 0,
223, 29, 127, 255, 255, 64, 125])
Oct 29 00:12:32 ripapi weewx[18267]: ws3000: data: {'h_6': 32, 'h_7': 29,
'h_4': 35, 'h_5': 33, 'h_2': 30, 'h_3': 34, 'h_1': 40, 't_6': 17.6, 't_2':
22.0, 't_3': 20.5, 't_1': -11.1, 'type': 'sensor_values', 't_7': 22.3,
't_4': 21.0, 't_5': 21.7}
Oct 29 00:12:32 ripapi weewx[18267]: ws3000: packet: {'dateTime':
1540764752, 'extraHumid6': 32, 'extraHumid7': 29, 'extraHumid4': 35,
'extraHumid5': 33, 'extraHumid2': 30, 'extraHumid3': 34, 'extraHumid1': 40,
'extraTemp6': 17.6, 'extraTemp7': 22.3, 'extraTemp4': 21.0, 'extraTemp5':
21.7, 'extraTemp2': 22.0, 'extraTemp3': 20.5, 'usUnits': 17, 'extraTemp1':
-11.1}
*DIsplay -16.8 vs log -16.7 (even longer in the freezer)*
Oct 29 00:24:04 ripapi weewx[19860]: ws3000: read: 7b ff 58 2a 00 dd 1f 00
cc 22 00 d2 23 00 d9 21 00 b0 20 00 e0 1d 7f ff ff 40 7d 00 40 7d 2c 00 64
40 7d 00 4e 14 2f 2c d1 d7 e7 7
0 9c 7b e5 e1 3e 17 5f 4e 19 72 97 5e 02 1a 0e 52 33 f6 80 ce (len=64)
Oct 29 00:24:04 ripapi weewx[19860]: ws3000: extracting values for
sensor_values
Oct 29 00:24:04 ripapi weewx[19860]: ws3000: raw: array('B', [123, 255, 88,
42, 0, 221, 31, 0, 204, 34, 0, 210, 35, 0, 217, 33, 0, 176, 32, 0, 224, 29,
127, 255, 255, 64, 125])
Oct 29 00:24:04 ripapi weewx[19860]: ws3000: data: {'h_6': 32, 'h_7': 29,
'h_4': 35, 'h_5': 33, 'h_2': 31, 'h_3': 34, 'h_1': 42, 't_6': 17.6, 't_2':
22.1, 't_3': 20.4, 't_1': -16.7,
'type': 'sensor_values', 't_7': 22.4, 't_4': 21.0, 't_5': 21.7}
Oct 29 00:24:04 ripapi weewx[19860]: ws3000: packet: {'dateTime':
1540765444, 'extraHumid6': 32, 'extraHumid7': 29, 'extraHumid4': 35,
'extraHumid5': 33, 'extraHumid2': 31, 'extraHu
mid3': 34, 'extraHumid1': 42, 'extraTemp6': 17.6, 'extraTemp7': 22.4,
'extraTemp4': 21.0, 'extraTemp5': 21.7, 'extraTemp2': 22.1, 'extraTemp3':
20.4, 'usUnits': 17,
*'extraTemp1': -16.7*}
So it looks like that the ws3000 driver value shows 0.1C warmer than what
the display shows.
It's possible that this is a timing issue (changing value when reading) but
with all four points having it to me it sounds like something else than
timing. Is there something in the code that could cause this?
*CRASH*
I also now got a crash again. See https://pastebin.com/gvxwdzrs for log.
I wasn't able to read from the log file what happened, something related to
driver / device. I now changed the timeout to 10k and let's see if that
helps keeping it up.
--
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.