Wat kan mij hierbij helpen ???

174 views
Skip to first unread message

Koen Huisbrink

unread,
Jun 25, 2025, 4:56:24 PM6/25/25
to weewx-user
I have tried to install weewx on my raspberry 5 several times. and I always get error messages or the index.html file is not created.

Who can help me with this?
I will show the status with error messages here.

Greetings Koen

pi@weewx:~ $ sudo systemctl status weewx
× weewx.service - WeeWX weather system
     Loaded: loaded (/etc/systemd/system/weewx.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2025-06-25 22:42:14 CEST; 1min 47s ago
   Duration: 5.087s
       Docs: https://weewx.com/docs
    Process: 2216 ExecStart=/home/pi/weewx-venv/bin/python3 /home/pi/weewx-venv/lib/python3.11/site-packages/weewxd.py /home/pi/weewx-data/weewx.conf (code=exited, status=4)
   Main PID: 2216 (code=exited, status=4)
        CPU: 148ms

Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****      self.station.open()
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 1555, in open
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****      self.read_memory_size()
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 1764, in read_memory>
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError(msg)
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: Unrecognised memory size '6'
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL __main__: Unable to load driver: Unrecognised memory size '6'
Jun 25 22:42:14 weewx weewxd[2216]: CRITICAL __main__:     ****  Exiting...
Jun 25 22:42:14 weewx systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Jun 25 22:42:14 weewx systemd[1]: weewx.service: Failed with result 'exit-code'.
lines 1-19/19 (END)

Tom Keffer

unread,
Jun 25, 2025, 5:00:51 PM6/25/25
to weewx...@googlegroups.com
Set debug=1, restart (DON'T reinstall) weewx. Post the log from startup until it crashes. We need the LOG, not the systemctl status. 

If you don't know how to do that, see the wiki section How to produce a useful log report.

--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/b5fa7d90-1493-404b-b063-7735fd1af5e7n%40googlegroups.com.

Tom Keffer

unread,
Jun 26, 2025, 5:40:26 PM6/26/25
to weewx-user, Koen Huisbrink
Koen,

Please try again, but this time be sure to set debug=1, which will show additional information. In particular, we need to see the user and permissions data.



On Thu, Jun 26, 2025 at 12:03 PM Koen Huisbrink <k.hui...@gmail.com> wrote:
Hello Tom,
Hope you can help me with this,
everytime i install weewx i dont get index.html in the weewx folder and now i have got it to this point and something keeps going wrong
There are no syslog 

pi@weewx:~ $ sudo tail -f /var/log/syslog | tee /tmp/mylog
tail: cannot open '/var/log/syslog' for reading: No such file or directory
tail: no files remaining
pi@weewx:~ $ sudo journalctl -u weewx
Jun 26 20:31:21 weewx systemd[1]: Started weewx.service - WeeWX weather system.
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Initializing weewxd version 5.1.0
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Command line: /home/pi/weewx-venv/lib/python3.11/site-packages/weewxd.py /home/pi/weewx-data/weewx.conf
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Using Python: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Located at:   /home/pi/weewx-venv/bin/python3
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Platform:     Linux-6.12.25+rpt-rpi-2712-aarch64-with-glibc2.36
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Locale:       'en_GB.UTF-8'
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Entry path:   /home/pi/weewx-venv/lib/python3.11/site-packages/weewxd.py
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: WEEWX_ROOT:   /home/pi/weewx-data
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Config file:  /home/pi/weewx-data/weewx.conf
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: User module:  /home/pi/weewx-data/bin/user
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Debug:        0
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: User:         pi
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Group:        pi
Jun 26 20:31:21 weewx weewxd[1436]: INFO __main__: Groups:       adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi pi
Jun 26 20:31:21 weewx weewxd[1436]: INFO weewx.engine: Loading station type TE923 (weewx.drivers.te923)
Jun 26 20:31:21 weewx weewxd[1436]: INFO weewx.drivers.te923: driver version is 0.41.1
Jun 26 20:31:21 weewx weewxd[1436]: INFO weewx.drivers.te923: polling interval is 10
Jun 26 20:31:21 weewx weewxd[1436]: INFO weewx.drivers.te923: sensor map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_wind', 'rainLinkStatus': 'link_rain', 'rai>
Jun 26 20:31:22 weewx weewxd[1436]: INFO weewx.drivers.te923: Found device on USB bus= device=
Jun 26 20:31:23 weewx weewxd[1436]: ERROR weewx.drivers.te923: Failed attempt 1 of 5 to read data: [Errno 110] Operation timed out
Jun 26 20:31:26 weewx weewxd[1436]: ERROR weewx.drivers.te923: Unrecognised memory size '6'
Jun 26 20:31:26 weewx weewxd[1436]: ERROR weewx.engine: Import of driver failed: Unrecognised memory size '6' (<class 'weewx.WeeWxIOError'>)
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line 115, in setupStation
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 454, in loader
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****      return TE923Driver(**config_dict[DRIVER_NAME])
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 1135, in __init__
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****      self.station.open()
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 1555, in open
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****      self.read_memory_size()
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****    File "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/drivers/te923.py", line 1764, in read_memory>
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError(msg)
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: Unrecognised memory size '6'
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL __main__: Unable to load driver: Unrecognised memory size '6'
Jun 26 20:31:26 weewx weewxd[1436]: CRITICAL __main__:     ****  Exiting...
Jun 26 20:31:26 weewx systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Jun 26 20:31:26 weewx systemd[1]: weewx.service: Failed with result 'exit-code'.

Op woensdag 25 juni 2025 om 23:00:51 UTC+2 schreef Tom Keffer:

Tom Keffer

unread,
Jun 27, 2025, 5:03:14 PM6/27/25
to weewx-user, Koen Huisbrink
Did you try journalctl to read the log? Depending on your system, the log entries will not always appear in /var/log/syslog.

Be sure to read the section Log messages in the manual. In turn, it will lead you to a wiki article with still more details called View logs.




On Fri, Jun 27, 2025 at 1:22 PM Koen Huisbrink <k.hui...@gmail.com> wrote:
Hello Tom,

I have searched for the syslog but it is not there, I do not understand what I am doing wrong. Here I mail the entire log that appears on my terminal screen during installation.
I followed this guide 

pi@weewx:~ $ sudo apt install -y wget gnupg

wget -qO - https://weewx.com/keys.html | \

    sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

wget is already the newest version (1.21.3-1+deb12u1).

gnupg is already the newest version (2.2.40-1.1).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

File '/etc/apt/trusted.gpg.d/weewx.gpg' exists. Overwrite? (y/N) y

pi@weewx:~ $ echo "deb [arch=all] https://weewx.com/apt/python3 buster main" | \

    sudo tee /etc/apt/sources.list.d/weewx.list

deb [arch=all] https://weewx.com/apt/python3 buster main

pi@weewx:~ $ sudo apt update

sudo apt install weewx

Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]

Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]                   

Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]                  

Get:4 http://archive.raspberrypi.com/debian bookworm InRelease [55.0 kB]                              

Get:5 http://deb.debian.org/debian bookworm/main armhf Packages [8,508 kB]    

Get:6 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [544 kB]

Get:7 https://weewx.com/apt/python3 buster InRelease [4,251 B]                                                

Get:8 http://deb.debian.org/debian bookworm/main arm64 Packages [8,693 kB]                              

Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [543 kB]

Get:10 https://weewx.com/apt/python3 buster/main all Packages [5,644 B]                  

Get:11 http://deb.debian.org/debian bookworm/main Translation-en [6,109 kB]                     

Get:12 http://deb.debian.org/debian bookworm/contrib arm64 Packages [45.7 kB]

Get:13 http://deb.debian.org/debian bookworm/contrib Translation-en [48.4 kB]

Get:14 http://deb.debian.org/debian bookworm/non-free armhf Packages [55.9 kB]

Get:15 http://deb.debian.org/debian bookworm/non-free arm64 Packages [75.8 kB]

Get:16 http://deb.debian.org/debian bookworm/non-free Translation-en [68.1 kB]

Get:17 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages [5,832 B]

Get:18 http://deb.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]

Get:19 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [265 kB]

Get:20 http://deb.debian.org/debian-security bookworm-security/main armhf Packages [251 kB]

Get:21 http://deb.debian.org/debian-security bookworm-security/main Translation-en [161 kB]

Get:22 http://deb.debian.org/debian bookworm-updates/main armhf Packages [756 B]

Get:23 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [756 B]

Get:24 http://deb.debian.org/debian bookworm-updates/main Translation-en [664 B]

Fetched 25.5 MB in 3s (8,282 kB/s)                             

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

171 packages can be upgraded. Run 'apt list --upgradable' to see them.

N: Repository 'http://deb.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.10' to '12.11'

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following additional packages will be installed:

  python3-cheetah python3-configobj python3-ephem python3-usb

Suggested packages:

  python-cheetah-doc python3-markdown python3-memcache python-configobj-doc sqlite ftp httpd

The following NEW packages will be installed:

  python3-cheetah python3-configobj python3-ephem python3-usb weewx

0 upgraded, 5 newly installed, 0 to remove and 171 not upgraded.

Need to get 2,977 kB of archives.

After this operation, 9,340 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://deb.debian.org/debian bookworm/main arm64 python3-configobj all 5.0.8-1 [34.5 kB]

Get:2 http://deb.debian.org/debian bookworm/main arm64 python3-cheetah arm64 3.3.1-1 [136 kB]

Get:3 http://deb.debian.org/debian bookworm/main arm64 python3-usb all 1.2.1-2 [37.6 kB]

Get:4 http://deb.debian.org/debian bookworm/main arm64 python3-ephem arm64 4.1.4-2+b1 [1,208 kB]

Get:5 https://weewx.com/apt/python3 buster/main all weewx all 5.1.0-4 [1,561 kB]

Fetched 2,977 kB in 2s (1,782 kB/s)

Preconfiguring packages ...

Selecting previously unselected package python3-configobj.

(Reading database ... 129085 files and directories currently installed.)

Preparing to unpack .../python3-configobj_5.0.8-1_all.deb ...

Unpacking python3-configobj (5.0.8-1) ...

Selecting previously unselected package python3-cheetah.

Preparing to unpack .../python3-cheetah_3.3.1-1_arm64.deb ...

Unpacking python3-cheetah (3.3.1-1) ...

Selecting previously unselected package python3-usb.

Preparing to unpack .../python3-usb_1.2.1-2_all.deb ...

Unpacking python3-usb (1.2.1-2) ...

Selecting previously unselected package python3-ephem.

Preparing to unpack .../python3-ephem_4.1.4-2+b1_arm64.deb ...

Unpacking python3-ephem (4.1.4-2+b1) ...

Selecting previously unselected package weewx.

Preparing to unpack .../archives/weewx_5.1.0-4_all.deb ...

Unpacking weewx (5.1.0-4) ...

Setting up python3-usb (1.2.1-2) ...

Setting up python3-ephem (4.1.4-2+b1) ...

Setting up python3-cheetah (3.3.1-1) ...

Setting up python3-configobj (5.0.8-1) ...

Setting up weewx (5.1.0-4) ...

Using weewx:weewx as user:group

Adding system group weewx...done

Adding system user weewx...done

Adding user pi to group weewx

Installing udev rules

Using configuration file /etc/weewx/weewx.conf

Processing configuration file /etc/weewx/weewx.conf

Saving configuration file /etc/weewx/weewx.conf

Creating skins directory /etc/weewx/skins

Creating user extension directory /etc/weewx/bin/user

Configuring database directory /var/lib/weewx

Configuring reporting directory /var/www/html/weewx

Setting permissions weewx:weewx on /etc/weewx

Installing systemd units

Enabling startup using systemd

Starting weewxd using systemd

Processing triggers for man-db (2.11.2-2) ...

pi@weewx:~ $ 


Op donderdag 26 juni 2025 om 23:40:26 UTC+2 schreef Tom Keffer:

Tom Keffer

unread,
Jun 27, 2025, 5:37:26 PM6/27/25
to weewx-user, Koen Huisbrink
(Be sure to include weewx-user in your reply. That way others can learn and participate.)

You have a permissions problem. User 'weewx' does not have the necessary permissions to claim the USB interface to the TE923. Setting up the necessary permissions is normally handled by a "udev rule" installed by WeeWX, but for some reason it does not appear to be working. Here are the steps to fix.

1. Stop weewx.

2. Look in the file /usr/lib/udev/rules.d/60-weewx.rules. It should contain an entry for the TE923 that looks like this:

# te923
SUBSYSTEM=="usb",ATTRS{idVendor}=="1130",ATTRS{idProduct}=="6801",MODE="0664",GROUP="weewx"

3. We need to determine the correct vendor and product IDs. To do this, unplug the device, then plug it back in. Then run the command dmesg with a tail command. You will get an output that looks something like this:

$ sudo dmesg | tail
[597655.701756] usb 3-1.2: USB disconnect, device number 5
[597655.702064] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[597655.702091] pl2303 3-1.2:1.0: device disconnected
[597657.935746] usb 3-1.2: new full-speed USB device number 17 using xhci_hcd
[597658.025918] usb 3-1.2: New USB device found, idVendor=05ad, idProduct=0fba, bcdDevice= 3.00
[597658.025926] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[597658.025929] usb 3-1.2: Product: USB-Serial Controller
[597658.025931] usb 3-1.2: Manufacturer: Prolific Technology Inc.
[597658.034607] pl2303 3-1.2:1.0: pl2303 converter detected
[597658.037831] usb 3-1.2: pl2303 converter now attached to ttyUSB0

Of course, this is from my own machine and I do not own a TE923. I used a Prolific serial converter for this example. Your output will differ. Look for the containing the idVendor and idProduct numbers (highlighted above). Again, yours will differ.

4. If they differ from the numbers in your file /usr/lib/udev/rules.d/60-weewx.rules, then update the numbers in the file. 

5, Once again, unplug the device, then plug it back in. Then start weewx.

It is possible that your model of the TE923 is something completely different and will not work with the present driver. We'll worry about that later.

-tk

On Fri, Jun 27, 2025 at 2:12 PM Koen Huisbrink <k.hui...@gmail.com> wrote:
this is my journal
pi@weewx:~ $ sudo journalctl -u weewx
Jun 27 21:26:59 weewx systemd[1]: Started weewx.service - WeeWX.
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Initializing weewxd version 5.1.0
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Using Python: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Located at:   /usr/bin/python3
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Platform:     Linux-6.12.25+rpt-rpi-2712-aarch64-with-glibc2.36
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Locale:       'en_GB.UTF-8'
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Entry path:   /usr/share/weewx/weewxd.py
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: WEEWX_ROOT:   /etc/weewx
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Config file:  /etc/weewx/weewx.conf
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: User module:  /etc/weewx/bin/user
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Debug:        0
Jun 27 21:26:59 weewx systemd[1]: Started weewx.service - WeeWX.
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Initializing weewxd version 5.1.0
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Using Python: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Located at:   /usr/bin/python3
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Platform:     Linux-6.12.25+rpt-rpi-2712-aarch64-with-glibc2.36
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Locale:       'en_GB.UTF-8'
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Entry path:   /usr/share/weewx/weewxd.py
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: WEEWX_ROOT:   /etc/weewx
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Config file:  /etc/weewx/weewx.conf
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: User module:  /etc/weewx/bin/user
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Debug:        0
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: User:         weewx
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Group:        weewx
Jun 27 21:26:59 weewx weewxd[2896]: INFO __main__: Groups:       weewx
Jun 27 21:26:59 weewx weewxd[2896]: INFO weewx.engine: Loading station type TE923 (weewx.drivers.te923)
Jun 27 21:26:59 weewx weewxd[2896]: INFO weewx.drivers.te923: driver version is 0.41.1
Jun 27 21:26:59 weewx weewxd[2896]: INFO weewx.drivers.te923: polling interval is 10
Jun 27 21:26:59 weewx weewxd[2896]: INFO weewx.drivers.te923: sensor map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_win>
Jun 27 21:26:59 weewx weewxd[2896]: INFO weewx.drivers.te923: Found device on USB bus= device=
Jun 27 21:26:59 weewx weewxd[2896]: ERROR weewx.drivers.te923: release interface failed: [Errno 13] Access denied (insufficient permissio>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.drivers.te923: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient>
Jun 27 21:26:59 weewx weewxd[2896]: ERROR weewx.engine: Import of driver failed: [Errno 13] Access denied (insufficient permissions) (<cl>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1544, in open
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      self.devh.claimInterface(interface)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/legacy.py", line 232, in >
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      util.claim_interface(self.dev, interface)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/util.py", line 207, in cl>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      device._ctx.managed_claim_interface(device, interface)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wr>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      return f(self, *args, **kwargs)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 170, in ma>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      self.managed_open()
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wr>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      return f(self, *args, **kwargs)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 131, in ma>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      self.handle = self.backend.open_device(self.dev)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line>
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****      return _DeviceHandle(dev)
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^
Jun 27 21:26:59 weewx weewxd[2896]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line>
lines 1-45

Op vrijdag 27 juni 2025 om 23:03:14 UTC+2 schreef Tom Keffer:

Koen Huisbrink

unread,
Jun 27, 2025, 6:16:51 PM6/27/25
to weewx-user
Hallo Tom,
As you can see are IDvendor en iDproduct the same but is doesn't work.
I'm going to sleep now, tomorrow morning I'll get up early, goodnight
 Schermafbeelding 2025-06-28 om 00.07.56.png

Op vrijdag 27 juni 2025 om 23:37:26 UTC+2 schreef Tom Keffer:

vince

unread,
Jun 27, 2025, 6:39:44 PM6/27/25
to weewx-user
Wild guess here.   His first post showed a venv installation.  You told him to 'not' reinstall.  He then 'did' reinstall with a dpkg installation.  Sigh.

My guess is something got hosed in udev land somehow in the process.

I also note the dpkg log is debug=0 when you told him to run debug=1.  Perhaps he has two things running and one did attach to the device (?)

I have a quick bash script at https://github.com/vinceskahan/weewx-quickconfig if you wanted to give him a quick command to try to quantify what the heck he has installed and how....


Koen Huisbrink

unread,
Jun 28, 2025, 2:15:30 PM6/28/25
to weewx-user
Yes I saw it myself that it was the wrong one. I have tried to install weewx in different ways with 2 different sd cards and had this card in the raspberry. Sorry for the mistake,
I don't know what the best way is, what do you advise?
Otherwise I start with a very clean sd card

Op zaterdag 28 juni 2025 om 00:39:44 UTC+2 schreef vince:

Koen Huisbrink

unread,
Jun 28, 2025, 2:27:39 PM6/28/25
to weewx-user
I ran the script and this is the output

pi@weewx:~ $ sudo systemctl start weewx
pi@weewx:~ $ wget -qO - https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash
#-----------------------------------------------------------
# this does a quick report of basic os and weewx installations
# to aid in debugging.  See the README file for usage
#
# tested on debian, ubuntu, almalinux, freebsd
# and in vagrant as well on those os
#
# this will not work on macos or alpinelinux because
# they are just different for the sake of being different
#-----------------------------------------------------------

DPKG_PRESENT=`which dpkg 2>/dev/null`
YUM_PRESENT=`which yum 2>/dev/null`
ARCH_PRESENT=`which arch 2>/dev/null`
RPM_PRESENT=`which rpm 2>/dev/null`
UNAME=`uname`

# we supersede this on debian systems because on pi it reports
#       incorrectly yet dpkg knows what is really running
if [ "x${ARCH_PRESENT}" != "x" ]
then
  ARCH=`arch`
else
   ARCH=`uname -p`       # freebsd
fi

# we will assume os-release is present rather than
# rely on lsb_release which we know is not always present
if [ -f /etc/os-release ]
then
  source /etc/os-release
fi

if [ "x${DPKG_PRESENT}" != "x" ]
then
  # debian systems

  # supersede the 'arch' command because on a pi it reports
  # the wrong thing, but dpkg knows reality
  ARCH=`dpkg --print-architecture`

  VERSION=`cat /etc/debian_version`

  INSTALLED_WEEWX_PKG=`dpkg -l | grep weewx | awk '{print $3}'`
  if [ "x${INSTALLED_WEEWX_PKG}" = "x" ]
  then
    INSTALLED_WEEWX_PKG="no_pkg_installed"
  fi

elif [ "x${RPM_PRESENT}" != "x" ]
then
  # redhat systems
  INSTALLED_WEEWX_PKG=`rpm -q weewx`
  if [ "x${INSTALLED_WEEWX_PKG}" = "x" ]
  then
    INSTALLED_WEEWX_PKG="no_pkg_installed"
  fi
else
    INSTALLED_WEEWX_PKG="not_available_for_this_os"
fi

#-----------------------------------------
# look for weewx in a few likely places
#-----------------------------------------

# v4 pip
if [ -d /home/weewx ]
then
  HOME_WEEWX_EXISTS="true"
else
  HOME_WEEWX_EXISTS="false"
fi

# pkg
if [ -d /etc/weewx ]
then
  ETC_WEEWX_EXISTS="true"
else
  ETC_WEEWX_EXISTS="false"
fi

# v5 pip pi or vagrant users
if [ -d /home/pi/weewx-venv ]
then
  HOME_VENV_EXISTS="true"
  FOUNDUSER="pi"
elif [ -d /home/vagrant/weewx-venv ]
then
  HOME_VENV_EXISTS="true"
  FOUNDUSER="vagrant"
else
  HOME_VENV_EXISTS="false"
  FOUNDUSER=""
fi

# TODO: this could even output JSON if needed
# TODO: this could even output JSON if needed
# TODO: this could even output JSON if needed
# TODO: this could even output JSON if needed

echo ""
echo "basic system configuration:"
echo "     os        = ${PRETTY_NAME}"
echo "     arch      = ${ARCH}"
echo ""
echo "looking for weewx installations"
echo "     /home/weewx:         ${HOME_WEEWX_EXISTS}"
echo "     /etc/weewx:          ${ETC_WEEWX_EXISTS}"
if [ "x${FOUNDUSER}" != "" ]
then
  echo "     /home/${FOUNDUSER}/weewx-venv: ${HOME_VENV_EXISTS}"
fi
echo ""
echo "installed weewx package:"
echo "     weewx_pkg = ${INSTALLED_WEEWX_PKG}"
echo ""

# this attempts to grab the version from the code
# this is a little ugly since there might be multiple python installations
# and varying weewx versions therein, so do some ugly output for those cases
if [ ${HOME_VENV_EXISTS} ]
then
  echo "installed weewx pip version:"

  WEEWX_INIT_FILES=`find /home/${FOUNDUSER}/weewx-venv/lib/python*/site-packages/weewx/__init__.py -type f -print 2>/dev/null`
  WEEWX_INIT_FILES_COUNT=`find /home/${FOUNDUSER}/weewx-venv/lib/python*/site-packages/weewx/__init__.py -type f -print 2>/dev/null | wc -l`
  if [ "x${WEEWX_INIT_FILES_COUNT}" = "x0" ]
  then
    echo "     version   = (none installed)"
  elif [ "x${WEEWX_INIT_FILES_COUNT}" != "x1" ]
  then
   for f in ${WEEWX_INIT_FILES}
   do
    echo "     in file ${f}"
    v=`grep ^__version__ ${f} | awk '{print $3}' | sed -e s/\"//g`
    echo "             ${v}"
  done
  else
  for f in ${WEEWX_INIT_FILES}
  do
    # the typical one-python-version-installed is much cleaner
    v=`grep ^__version__ ${f} | awk '{print $3}' | sed -e s/\"//g`
    echo "     version   = ${v}"
  done
fi
else
  HOME_PI_VENV_EXISTS="false"
fi

#-----------------------------------------

# ok on linux, not on freebsd

if [ "${UNAME}" = "FreeBSD" ]
then
  # hopefully more portable
  RUNNING_WEEWX_PROCESSES=`ps axu | grep weewxd | grep -v grep | awk '{print $11" "$12" "$13" "$14" "$15}'`
else
  RUNNING_WEEWX_PROCESSES=`ps -eo command | grep weewxd | grep -v grep`
fi

if [ "x${RUNNING_WEEWX_PROCESSES}" = "x" ]
then
  RUNNING_WEEWX_PROCESSES="     none"
fi

echo ""
echo "running weewx processes:"
echo "${RUNNING_WEEWX_PROCESSES}"
echo ""

Op zaterdag 28 juni 2025 om 20:15:30 UTC+2 schreef Koen Huisbrink:

vince

unread,
Jun 28, 2025, 3:05:24 PM6/28/25
to weewx-user
You have to pipe it to a shell. You only ran half of the command.

Koen Huisbrink

unread,
Jun 28, 2025, 3:10:52 PM6/28/25
to weewx-user
Okay, I'll try again

pi@weewx:~ $ wget -qO - https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash | bash

basic system configuration:
     os        = Debian GNU/Linux 12 (bookworm)
     arch      = arm64

looking for weewx installations
     /home/weewx:         false
     /etc/weewx:          true
     /home//weewx-venv: false

installed weewx package:
     weewx_pkg = 5.1.0-4

installed weewx pip version:
     version   = (none installed)

running weewx processes:
python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

Op zaterdag 28 juni 2025 om 21:05:24 UTC+2 schreef vince:

Koen Huisbrink

unread,
Jun 28, 2025, 3:17:49 PM6/28/25
to weewx-user
I don't understand what happened but now index.html is present and I can access it locally with the browser.

Schermafbeelding 2025-06-28 om 21.17.05.png
Op zaterdag 28 juni 2025 om 21:10:52 UTC+2 schreef Koen Huisbrink:

Koen Huisbrink

unread,
Jul 1, 2025, 3:27:44 PM7/1/25
to weewx-user
It has been working for a few days and after an adjustment in the weewx.conf to upload the data with ftp weewx will not start anymore and I get this message.

pi@weewx:~ $ sudo systemctl start weewx
pi@weewx:~ $ wget -qO - https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash | bash

basic system configuration:
     os        = Debian GNU/Linux 12 (bookworm)
     arch      = arm64

looking for weewx installations
     /home/weewx:         false
     /etc/weewx:          true
     /home//weewx-venv: false

installed weewx package:
     weewx_pkg = 5.1.0-4

installed weewx pip version:
     version   = (none installed)

running weewx processes:
python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

pi@weewx:~ $ sudo journalctl -u weewx
Jul 01 21:16:00 weewx systemd[1]: Started weewx.service - WeeWX.
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Initializing weewxd version 5.1.0
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Using Python: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Located at:   /usr/bin/python3
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Platform:     Linux-6.12.25+rpt-rpi-2712-aarch64-with-glibc2.36
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Locale:       'en_GB.UTF-8'
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Entry path:   /usr/share/weewx/weewxd.py
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: WEEWX_ROOT:   /etc/weewx
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Config file:  /etc/weewx/weewx.conf
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: User module:  /etc/weewx/bin/user
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Debug:        1
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: User:         weewx
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Group:        weewx
Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Groups:       weewx
Jul 01 21:16:00 weewx weewxd[2001]: DEBUG __main__: loop_on_init: False
Jul 01 21:16:00 weewx weewxd[2001]: DEBUG __main__: Initializing engine
Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.engine: Loading station type TE923 (weewx.drivers.te923)
Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: driver version is 0.41.1
Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: polling interval is 10
Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: sensor map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_wind', 'rainLinkStatus>
Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: Found device on USB bus= device=
Jul 01 21:16:00 weewx weewxd[2001]: DEBUG weewx.drivers.te923: read: address 0x0000fc
Jul 01 21:16:02 weewx weewxd[2001]: ERROR weewx.drivers.te923: Failed attempt 1 of 5 to read data: [Errno 110] Operation timed out
Jul 01 21:16:02 weewx weewxd[2001]: DEBUG weewx.drivers.te923: Waiting 3 seconds before retry
Jul 01 21:16:05 weewx weewxd[2001]: DEBUG weewx.drivers.te923: read: 5a 82 00 05 7f 55 61 01 12 01 ff ff ff ff ff ff ff ff ff ff ff 96 ff ff ff ff ff ff ff >
Jul 01 21:16:05 weewx weewxd[2001]: ERROR weewx.drivers.te923: Unrecognised memory size '130'
Jul 01 21:16:05 weewx weewxd[2001]: ERROR weewx.engine: Import of driver failed: Unrecognised memory size '130' (<class 'weewx.WeeWxIOError'>)
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 454, in loader
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****      return TE923Driver(**config_dict[DRIVER_NAME])
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1135, in __init__
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****      self.station.open()
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1555, in open
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****      self.read_memory_size()
Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/te923.py", line 1764, in read_memory_size
lines 1-40


No syslog file is created
Who can help me with this

Op zaterdag 28 juni 2025 om 21:17:49 UTC+2 schreef Koen Huisbrink:
Reply all
Reply to author
Forward
0 new messages