On 10/05/2020 00:28, Ellastonepaul wrote:
>
> I have a Bresser 6-in-1 Model No 7002570 which I would like to connect
> to a Raspberry pi running Python 2.7.16 and upload data to
> WeatherCloud. The User Guide is excellent, and I used the "Easy
> Installation" approach but I seem to have fallen at the first hurdle,
> the "Testweathertation" fails. I am not sure if it is an error in the
> USBlib (I followed the Dependancies notes and libusb1 seemed to load OK)
> or whether the console is not recognised. The error log is attached.
> Any guidance would be welcomed.
pywws-testweatherstation
23:46:50:pywws.logger:pywws version 20.1.0, build 1673 (92d8868)
Traceback (most recent call last):
File "/usr/local/bin/pywws-testweatherstation", line 10, in <module>
sys.exit(main())
File
"/usr/local/lib/python2.7/dist-packages/pywws/testweatherstation.py",
line 117, in main
ws = pywws.weatherstation.WeatherStation()
File
"/usr/local/lib/python2.7/dist-packages/pywws/weatherstation.py", line
464, in __init__
self.cusb = CUSBDrive()
File
"/usr/local/lib/python2.7/dist-packages/pywws/weatherstation.py", line
318, in __init__
self.dev = USBDevice(0x1941, 0x8021)
File
"/usr/local/lib/python2.7/dist-packages/pywws/device_libusb1.py", line
77, in __init__
self.dev = self.context.openByVendorIDAndProductID(idVendor, idProduct)
File "/home/pi/.local/lib/python2.7/site-packages/usb1/__init__.py",
line 2403, in openByVendorIDAndProductID
return result.open()
File "/home/pi/.local/lib/python2.7/site-packages/usb1/__init__.py",
line 2171, in open
mayRaiseUSBError(libusb1.libusb_open(self.device_p, byref(handle)))
File "/home/pi/.local/lib/python2.7/site-packages/usb1/__init__.py",
line 133, in mayRaiseUSBError
__raiseUSBError(value)
File "/home/pi/.local/lib/python2.7/site-packages/usb1/__init__.py",
line 125, in raiseUSBError
raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorAccess: LIBUSB_ERROR_ACCESS [-3]
The error is LIBUSB_ERROR_ACCESS, which could be a permissions problem.
As it says in the documentation, try running pywws-testweatherstation as
root (use sudo).
However, the Bresser 7002570 looks nothing like the Fine Offset stations
that I've seen before, and it doesn't seem to use EasyWeather software,
so I don't expect it to work with pywws. With it plugged into your pi
use the 'lsusb' command to see its ID. If it's not '1941:8021' then it's
not a pywws compatible station.
--
Jim Easterbrook <
http://www.jim-easterbrook.me.uk/>