Setting up weewx - AcuRite under OpenBSD.

51 views
Skip to first unread message

Mario St-Gelais

unread,
Oct 20, 2020, 7:48:24 PM10/20/20
to weewx-user

Good day list.  First time here.
I realize that according to the booklet, my model is 06006 and that is is not listed as supported device.  But I don't think that this is really the problem.

Log output : 
==================
Oct 20 19:39:57 hotrod weewx[19832] INFO __main__: Platform OpenBSD-6.8-amd64-64bit-ELF
Oct 20 19:39:57 hotrod weewx[19832] INFO __main__: Locale is 'en_US.UTF-8'
Oct 20 19:39:57 hotrod weewx[19832] INFO __main__: Using configuration file /home/weewx/weewx.conf
Oct 20 19:39:57 hotrod weewx[19832] INFO __main__: Debug is 1
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Loading station type AcuRite (weewx.drivers.acurite)
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.drivers.acurite: driver version is 0.4
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.drivers.acurite: R2 will be decoded using sensor constants
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: StdConvert target unit is 0x1
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Archive will use data binding wx_binding
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Record generation will be attempted in 'hardware'
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: StationRegistry: Registration not requested.
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: Wunderground: Posting not enabled.
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: PWSweather: Posting not enabled.
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: CWOP: Posting not enabled.
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: WOW: Posting not enabled.
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.restx: AWEKAS: Posting not enabled.
Oct 20 19:39:57 hotrod weewx[19832] INFO __main__: Starting up weewx version 4.1.1
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.manager: Starting backfill of daily summaries
Oct 20 19:39:57 hotrod weewx[19832] INFO weewx.engine: Starting main packet loop.
Oct 20 19:39:57 hotrod weewx[19832] CRITICAL weewx.drivers.acurite: Cannot find USB device with VendorID=0x24c0 ProductID=0x0003 DeviceID=None
Oct 20 19:39:57 hotrod weewx[19832] ERROR weewx.drivers.acurite: Failed attempt 1 of 10 to get LOOP data: Unable to find station on USB
Oct 20 19:40:27 hotrod weewx[19832] CRITICAL weewx.drivers.acurite: Cannot find USB device with VendorID=0x24c0 ProductID=0x0003 DeviceID=None
Oct 20 19:40:27 hotrod weewx[19832] ERROR weewx.drivers.acurite: Failed attempt 2 of 10 to get LOOP data: Unable to find station on USB

Running the driver directly as root (non root is even worse):
=========================================
PYTHONPATH=bin doas python3.8 bin/weewx/drivers/acurite.py

Traceback (most recent call last):
  File "bin/weewx/drivers/acurite.py", line 982, in <module>
    with Station() as s:
  File "bin/weewx/drivers/acurite.py", line 587, in __enter__
    self.open()
  File "bin/weewx/drivers/acurite.py", line 612, in open
    self.handle.detachKernelDriver(interface)
  File "/usr/local/lib/python3.8/site-packages/usb/legacy.py", line 294, in detachKernelDriver
    self.dev.detach_kernel_driver(interface)
  File "/usr/local/lib/python3.8/site-packages/usb/core.py", line 1094, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 905, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 585, in _check
    raise NotImplementedError(_strerror(ret))
NotImplementedError: Operation not supported or unimplemented on this platform

Or even trying to find the usb device through ipython:
==========================================
/usr/local/lib/python3.8/site-packages/usb/backend/libusb1.py in _check(ret)
    583     if ret < 0:
    584         if ret == LIBUSB_ERROR_NOT_SUPPORTED:
--> 585             raise NotImplementedError(_strerror(ret))
    586         elif ret == LIBUSB_ERROR_TIMEOUT:
    587             raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])

NotImplementedError: Operation not supported or unimplemented on this platform
Reply all
Reply to author
Forward
0 new messages