The code in question is:

    def _find_dev(vendor_id, product_id, device_id=None):
        """Find the vendor and product ID on the USB."""
        for bus in usb.busses():
            for dev in bus.devices:
                if dev.idVendor == vendor_id and dev.idProduct ==
product_id:
                    if device_id is None or dev.filename == device_id:
                        log.debug('Found station at bus=%s device=%s' %
                                  (bus.dirname, dev.filename))
                        return dev
        return None

So, it's failing to find your station on USB. Could it be security? Does
the user running Weewx have permissions to read the USB?

You might try to run Weewx from the command line and see what it says. If
my guess about permissions is correct, it will run.



On Tue, Jul 15, 2025 at 1:29 PM James J Dempsey <[email protected]> wrote:

> I was running my Acurite station on an ODroid N2 and have switched to a
> Raspberry Pi 5.  The ODroid was running 5.1.0 on Ubuntu Lite.  It worked
> fine on the ODroid (for years) and I can't get it working on the Pi 5.
>
> I installed weewx 5.1.0 fresh on the Pi 5, following the weewx
> instructions for debian.  I moved my config file and sqlite database from
> the old system to the new system.
>
> It appears that weewx can't find the station on the Pi 5 -- I see this in
> the log:
>
> DEBUG weewx.drivers.acurite: Found station at bus= device=
>
> I assume there should be values after the = signs.  lsusb shows:
>
> Bus 003 Device 002: ID 24c0:0003 Chaney Instrument Model 01036 weather
> center
>
> and raspinfo reports:
>
> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=, 1.5M
>     |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid,
> 1.5M
>
> I see this in dmesg output:
> [    0.969754] usb 3-1: New USB device found, idVendor=24c0,
> idProduct=0003, bcdDevice= 0.20
> [    0.969758] usb 3-1: New USB device strings: Mfr=0, Product=2,
> SerialNumber=0
> [    0.969760] usb 3-1: Product: Chaney Instrument
> [    0.984789] usbhid 3-1:1.0: can't add hid device: -22
> [    0.989868] usbhid 3-1:1.0: probe with driver usbhid failed with error
> -22
>
> The model of the Acurite device is ostensibly 01536.  Since the lsusb
> output shows 01036, I also tried setting that in the config with no
> difference.  I have tried multiple USB ports.
>
> Any suggestions would be appreciated.  More details appended at the end.
>
> Thank you.
>
> --Jim--
>
> ***** Portion of weewx.conf *****
>
> #   This section is for information about the station.
>
> [Station]
>
>     # Description of the station location, such as your town.
>     location = "Where I live"
>
>     ...
>
>     # 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'
>     # (I also tried AcuRite 01536)
>     model = AcuRite 01036
>
>     # The driver to use:
>     driver = weewx.drivers.acurite
>
> ***** Section of log file *****
>
> Jul 15 11:50:10 capecod weewxd[3985]: DEBUG weewx.engine: Finished loading
> service weewx.engine.StdReport
> Jul 15 11:50:10 capecod weewxd[3985]: INFO __main__: Starting up weewx
> version 5.1.0
> Jul 15 11:50:10 capecod weewxd[3985]: DEBUG weewx.engine: Station does not
> support reading the time
> Jul 15 11:50:10 capecod weewxd[3985]: INFO weewx.engine: Using binding
> 'wx_binding' to database 'weewx.sdb'
> Jul 15 11:50:10 capecod weewxd[3985]: INFO weewx.manager: Starting
> backfill of daily summaries
> Jul 15 11:50:10 capecod weewxd[3985]: INFO weewx.manager: Daily summaries
> up to date
> Jul 15 11:50:10 capecod weewxd[3985]: INFO weewx.engine: Starting main
> packet loop.
> Jul 15 11:50:10 capecod weewxd[3985]: DEBUG weewx.drivers.acurite: Found
> station at bus= device=
> Jul 15 11:50:10 capecod weewxd[3985]: ERROR weewx.drivers.acurite: Failed
> attempt 1 of 10 to get LOOP data: [Errno 5] Input/Output Error
> Jul 15 11:50:40 capecod weewxd[3985]: DEBUG weewx.drivers.acurite: Found
> station at bus= device=
> Jul 15 11:50:41 capecod weewxd[3985]: ERROR weewx.drivers.acurite: Failed
> attempt 2 of 10 to get LOOP data: [Errno 110] Operation timed out
> (this repeats for 10 attempts and then stops the service and then restarts)
>
> ***** Hardware / Software *****
>
> The Acurite is model 01536 (but lsusb reports 01036).
>
> The Raspberry Pi is is a Pi 5 Model B Rev 1.1.
>
> It is running Raspbian bookworm and is up to date as of today.
>
> --
> 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/7320df74-6865-45b9-939f-6752bc72ba2cn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/7320df74-6865-45b9-939f-6752bc72ba2cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM200e88tTwq27mZ4Jz_harwU_jPksor_3VGqui2rj6RJrA%40mail.gmail.com.

Reply via email to