[ I tried to post this once before and it didn't show up.  I hope this 
doesn't end up being a duplicate. ]

Background:

I have had weewx running on an ODroid N2 running Ubuntu Lite for years with 
no problem using an Acurite 01536.

I decided to move the installation to a new Raspberry 5 running the latest 
Raspbian Bookworm.

I freshly installed weewx 5.1.0 on the Pi 5 following the weewx 
instructions for Debian.  (The ODroid was previously using 5.1.0 as well.) 
 I re-used the same weewx.conf file I had been using.  I also moved the 
sqlite database from the old system to the new system.

Problem:

At startup, it doesn't seem to be able to properly find the device.  I see 
this in the log:

Jul 15 13:34:13 capecod systemd[1]: Started weewx.service - WeeWX.
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Initializing weewxd 
version 5.1.0
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Using Python: 3.11.2 
(main, Apr 28 2025, 14:11:48) [GCC 12.2.0]
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Located at:   
/usr/bin/python3
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Platform:     
Linux-6.12.34+rpt-rpi-2712-aarch64-with-glibc2.36
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Locale:       
'en_GB.UTF-8'
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Entry path:   
/usr/share/weewx/weewxd.py
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: WEEWX_ROOT:   
/etc/weewx
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Config file: 
 /etc/weewx/weewx.conf
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: User module: 
 /etc/weewx/bin/user
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Debug:        1
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: User:         weewx
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Group:        weewx
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Groups:       dialout 
cdrom sudo audio video plugdev games users input render netdev weewx gpio 
i2c spi
Jul 15 13:34:13 capecod weewxd[8923]: DEBUG __main__: loop_on_init: False
Jul 15 13:34:13 capecod weewxd[8923]: DEBUG __main__: Initializing engine
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.engine: Loading station 
type AcuRite (weewx.drivers.acurite)
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.drivers.acurite: driver 
version is 0.4
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.drivers.acurite: R2 will 
be decoded using sensor constants
...
Jul 15 13:34:13 capecod weewxd[8923]: INFO __main__: Starting up weewx 
version 5.1.0
Jul 15 13:34:13 capecod weewxd[8923]: DEBUG weewx.engine: Station does not 
support reading the time
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.manager: Starting backfill 
of daily summaries
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.manager: Daily summaries 
up to date
Jul 15 13:34:13 capecod weewxd[8923]: INFO weewx.engine: Starting main 
packet loop.
Jul 15 13:34:13 capecod weewxd[8923]: DEBUG weewx.drivers.acurite: Found 
station at bus= device=
Jul 15 13:34:13 capecod weewxd[8923]: ERROR weewx.drivers.acurite: Failed 
attempt 1 of 10 to get LOOP data: [Errno 5] Input/Output Error
Jul 15 13:34:43 capecod weewxd[8923]: DEBUG weewx.drivers.acurite: Found 
station at bus= device=
Jul 15 13:34:43 capecod weewxd[8923]: ERROR weewx.drivers.acurite: Failed 
attempt 2 of 10 to get LOOP data: [Errno 5] Input/Output Error
...


I assume that "bus= device=" are supposed to have values.

'lsusb -tv' shows:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=, 1.5M
        ID 24c0:0003 Chaney Instrument Model 01036 weather center

dmesg output shows:

[ 6016.675786] usb 1-1: new low-speed USB device number 4 using xhci-hcd
[ 6016.840929] usb 1-1: New USB device found, idVendor=24c0, 
idProduct=0003, bcdDevice= 0.20
[ 6016.840938] usb 1-1: New USB device strings: Mfr=0, Product=2, 
SerialNumber=0
[ 6016.840941] usb 1-1: Product: Chaney Instrument
[ 6016.860109] usbhid 1-1:1.0: can't add hid device: -22
[ 6016.860121] usbhid 1-1:1.0: probe with driver usbhid failed with error 
-22

Part of weewx.conf looks like this:

# Set to 1 for extra debug info, otherwise comment it out or set to zero.
debug = 1

# Whether to log successful operations. May get overridden below.
log_success = True

# Whether to log unsuccessful operations. May get overridden below.
log_failure = True

# This configuration file was created by ...
version = 5.1.0

##############################################################################

#   This section is for information about the station.

[Station]
    
    # Description of the station location, such as your town.
    location = "Where I live"
    
    # Latitude in decimal degrees. Negative for southern hemisphere.
    latitude = 42.348359
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = -71.050332
    
    # Altitude of the station, with the unit it is in. This is used only
    # if the hardware cannot supply a value.
    altitude = 36, foot    # Choose 'foot' or 'meter' for unit
    
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file, which includes a value for the 'driver' option.
    station_type = AcuRite
    
    ...

##############################################################################

[AcuRite]
    # This section is for AcuRite weather stations.
    
    # The station model, e.g., 'AcuRite 01025' or 'AcuRite 02032C'
    model = AcuRite 01536
    
    # The driver to use:
    driver = weewx.drivers.acurite

##############################################################################

Since the lsusb output said "Chaney Instrument Model 01036 weather center", 
I also tried setting the model to "AcuRite 01036" with no improvement.

The 01536 model has no USB Mode setting -- it's always set to 4 which 
should be fine.

I've read the full log details and found no other errors.  I'm at a loss. 
 Any suggestions would be appreciated.

--Jim--

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/492f3764-a813-431b-9b65-2f86dfb79c2an%40googlegroups.com.

Reply via email to