Hi Tom,
I have the same bug as Anders and have tried your attached version.
Unfortunately with the following result:
May 1 16:00:33 raspi01 weewx-tfa[4434] INFO __main__: Initializing weewx
version 4.0.0
May 1 16:00:33 raspi01 weewx-tfa[4434] INFO __main__: Using Python 3.7.3
(default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]
May 1 16:00:33 raspi01 weewx-tfa[4434] INFO __main__: Platform
Linux-4.19.75-v7+-armv7l-with-debian-10.3
May 1 16:00:33 raspi01 weewx-tfa[4434] INFO __main__: Locale is
'de_DE.UTF-8'
May 1 16:00:33 raspi01 weewx-tfa[4434] INFO __main__: PID file is
/var/run/weewx-tfa.pid
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO __main__: Using configuration
file /home/weewx/tfa.conf
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO weewx.engine: Loading station
type TE923 (weewx.drivers.te923)
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO weewx.drivers.te923: driver
version is 0.40
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO weewx.drivers.te923: polling
interval is 10
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO weewx.drivers.te923: sensor
map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_wind',
'rainLinkStatus': 'link_rain', 'rainBatteryStatus': 'bat_rain',
'uvLinkStatus': 'link_uv', 'uvBatteryStatus': 'bat_uv', 'inTemp': 't_in',
'inHumidity': 'h_in', 'outTemp': 't_1', 'outHumidity': 'h_1',
'outTempBatteryStatus': 'bat_1', 'outLinkStatus': 'link_1', 'extraTemp1':
't_2', 'extraHumid1': 'h_2', 'extraBatteryStatus1': 'bat_2',
'extraLinkStatus1': 'link_2', 'extraTemp2': 't_3', 'extraHumid2': 'h_3',
'extraBatteryStatus2': 'bat_3', 'extraLinkStatus2': 'link_3', 'extraTemp3':
't_4', 'extraHumid3': 'h_4', 'extraBatteryStatus3': 'bat_4',
'extraLinkStatus3': 'link_4', 'extraTemp4': 't_5', 'extraHumid4': 'h_5',
'extraBatteryStatus4': 'bat_5', 'extraLinkStatus4': 'link_5'}
May 1 16:00:33 raspi01 weewx-tfa[4438] INFO weewx.drivers.te923: Found
device on USB bus= device=
May 1 16:00:35 raspi01 weewx-tfa[4438] ERROR weewx.drivers.te923: Failed
attempt 1 of 5 to read data: [Errno 110] Operation timed out
May 1 16:00:38 raspi01 weewx-tfa[4438] ERROR weewx.engine: Import of
driver failed: unsupported operand type(s) for ^: 'int' and 'float' (<class
'TypeError'>)
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
Traceback (most recent call last):
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** self.console = loader_function(config_dict, self)
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 456, in loader
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** return TE923Driver(**config_dict[DRIVER_NAME])
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 1137, in __init__
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** self.station.open()
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 1557, in open
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** self.read_memory_size()
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 1752, in
read_memory_size
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** buf = self._read(0xfc)
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 1722, in _read
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** buf = self._raw_read(addr)
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/te923.py", line 1622, in _raw_read
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine:
**** reqbuf[5] = (reqbuf[1] ^ reqbuf[2] ^ reqbuf[3] ^ reqbuf[4])
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL weewx.engine: ****
TypeError: unsupported operand type(s) for ^: 'int' and 'float'
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL __main__: Unable to load
driver: unsupported operand type(s) for ^: 'int' and 'float'
May 1 16:00:38 raspi01 weewx-tfa[4438] CRITICAL __main__: ****
Exiting...
Michael
--
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/2d3547ca-6733-40c8-a0bb-2843dce4bc7f%40googlegroups.com.