Upgrade 3.9.2>4.0 Problem with TE923 Nexus driver (unable to load driver)

56 views
Skip to first unread message

Felix Maltzahn

unread,
May 23, 2020, 1:38:02 PM5/23/20
to weewx-user
Hey,

After upgrading weewx to V.4.0 I have a big problem with reading my TFA Nexus (TE923). If I downgrade to 3.9.2 all works fine.
In the tail log I found the following messages:

 sudo tail -f /var/log/syslog
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****      self.read_memory_size()
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1752, in read_memory_size
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****      buf = self._read(0xfc)
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1722, in _read
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****      buf = self._raw_read(addr)
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1582, in _raw_read
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****      reqbuf[5] = (reqbuf[1] ^ reqbuf[2] ^ reqbuf[3] ^ reqbuf[4])
May 23 18:58:38 wetterstation weewx[1950] CRITICAL weewx.engine:     ****  TypeError: unsupported operand type(s) for ^: 'int' and 'float'
May 23 18:58:38 wetterstation weewx[1950] CRITICAL __main__: Unable to load driver: unsupported operand type(s) for ^: 'int' and 'float'
May 23 18:58:38 wetterstation weewx[1950] CRITICAL __main__:     ****  Exiting..

Can anybody help me?
Sorry for my bad english ;) Greetings from Germany

Michael

unread,
May 23, 2020, 1:59:04 PM5/23/20
to weewx-user

Felix Maltzahn

unread,
May 23, 2020, 2:12:47 PM5/23/20
to weewx-user
Thank you! The weatherstation service is my first RPI project. Where I can find the driver files on my RPI?

Michael

unread,
May 23, 2020, 2:23:00 PM5/23/20
to weewx-user
depends on the type of installation:
setup.py -> /home/weewx/bin/weewx/drivers

Jan Stelling

unread,
May 23, 2020, 2:23:46 PM5/23/20
to weewx-user
Same problem here. I took the driver from the Github repo, copied it to /usr/share/weewx/weewx/drivers/, restarted weewx, but no luck.
Any ideas?

Jan Stelling

unread,
May 23, 2020, 2:39:31 PM5/23/20
to weewx-user
Same problem here. I took the driver from the Github repo, copied it to /usr/share/weewx/weewx/drivers/, restarted weewx, but no luck.
Any ideas?

Sorry, the driver works. I faced another problem with my WeatherCloud extension that needed an update as well... 

Felix Maltzahn

unread,
May 24, 2020, 8:24:56 AM5/24/20
to weewx-user
Installed via .deb package ...
Message has been deleted

Felix Maltzahn

unread,
May 24, 2020, 10:17:35 AM5/24/20
to weewx-user
Found it in /usr/share/weewx/weewx/drivers......is that right?






Am Samstag, 23. Mai 2020 20:23:00 UTC+2 schrieb Michael:
Reply all
Reply to author
Forward
0 new messages