On Thursday, February 6, 2020 at 11:13:28 AM UTC-6, Thomas Keffer wrote:
>
> I guess that's progress. Try this one.
>
> I'm just blinding replacing python 2 idioms with six idioms. No idea about 
> the underlying logic.
>
> -tk
>
>
Result:

# PYTHONPATH=bin python3 bin/weewx/drivers/ws23xx.py --readings 
--port=/dev/ttyS0
Traceback (most recent call last):
  File "bin/weewx/drivers/ws23xx.py", line 2117, in <module>
    data = s.get_raw_data(SENSOR_IDS)
  File "bin/weewx/drivers/ws23xx.py", line 790, in get_raw_data
    raw_data = read_measurements(self.ws, measures)
  File "bin/weewx/drivers/ws23xx.py", line 2030, in read_measurements
    nybbles = ws2300.read_batch(batches)
  File "bin/weewx/drivers/ws23xx.py", line 1202, in read_batch
    response = self.read_data(address + start_pos, bytes_)
  File "bin/weewx/drivers/ws23xx.py", line 1175, in read_data
    checksum = sum([ord(b) for b in response]) % 256
  File "bin/weewx/drivers/ws23xx.py", line 1175, in <listcomp>
    checksum = sum([ord(b) for b in response]) % 256
TypeError: ord() expected string of length 1, but int found

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/586925c3-625c-435f-93de-903ac781ec69%40googlegroups.com.

Reply via email to