Thanks for your input!!

I updated my Raspbian to Jessie (took about 24 hours or so :D) and log 
below tells where I'm at now. 
It's still possible that there are issues with Python packages. Still using 
the weewx.deb that requires python-usb from package management. It's 
possible that compiling weewx from source is the next option.. 

And now that I checked Debian releaseses I see that I'm so behind.. I 
thought Jessie was the latest stable but I see it's Stretch already.. -> 
upgrading/fresh install to that next..

Oct 26 15:07:23 ripapi weewx[17576]: engine: Starting up weewx version 3.8.2
Oct 26 15:07:23 ripapi weewx[17576]: engine: Station does not support 
reading the time
Oct 26 15:07:23 ripapi weewx[17576]: engine: Starting main packet loop.
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: sending request for 
sensor_values
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: write: 7b 03 40 7d (len=4)
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: reading results...
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: reading 64 bytes
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: read: 7b 00 25 56 00 da 23 00 
cc 28 00 cd 27 00 dc 26 00 b4 28 00 db 27 7f ff ff 40 7d 00 f1 25 c4 05 80 
fc c5 8a 4e 14 2f 2c d1 d7 e7 70 9c 7b e5 e1 3e 17 5f 4e 19 72 97 5e 02 1a 
0e 52 33 f6 80 ce (len=64)
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: extracting values for 
sensor_values
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: raw: array('B', [123, 0, 37, 
86, 0, 218, 35, 0, 204, 40, 0, 205, 39, 0, 220, 38, 0, 180, 40, 0, 219, 39, 
127, 255, 255, 64, 125])
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: data: {'h_6': 40, 'h_7': 39, 
'h_4': 39, 'h_5': 38, 'h_2': 35, 'h_3': 40, 'h_1': 86, 't_6': 18.0, 't_2': 
21.8, 't_3': 20.4, 't_1': 3.7, 'type': 'sensor_values', 't_7': 21.9, 't_4': 
20.5, 't_5': 22.0}
Oct 26 15:07:23 ripapi weewx[17576]: ws3000: packet: {'dateTime': 
1540555644, 'extraHumid6': 40, 'extraHumid7': 39, 'extraHumid4': 39, 
'extraHumid5': 38, 'extraHumid2': 35, 'extraHumid3': 40, 'extraHumid1': 86, 
'extraTemp6': 18.0, 'extraTemp7': 21.9, 'extraTemp4': 20.5, 'extraTemp5': 
22.0, 'extraTemp2': 21.8, 'extraTemp3': 20.4, 'usUnits': 17, 'extraTemp1': 
3.7}
Oct 26 15:07:53 ripapi weewx[17576]: ws3000: sending request for 
sensor_values
Oct 26 15:07:53 ripapi weewx[17576]: ws3000: write: 7b 03 40 7d (len=4)
Oct 26 15:07:53 ripapi weewx[17576]: engine: Main loop exiting. Shutting 
engine down.
Oct 26 15:07:53 ripapi weewx[17576]: engine: Caught unrecoverable exception 
in engine:
Oct 26 15:07:53 ripapi weewx[17576]:     ****  'int' object is not callable
Oct 26 15:07:53 ripapi weewx[17576]:     ****  Traceback (most recent call 
last):
Oct 26 15:07:53 ripapi weewx[17576]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 877, in main
Oct 26 15:07:53 ripapi weewx[17576]:     ****      engine.run()
Oct 26 15:07:53 ripapi weewx[17576]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 188, in run
Oct 26 15:07:53 ripapi weewx[17576]:     ****      for packet in 
self.console.genLoopPackets():
Oct 26 15:07:53 ripapi weewx[17576]:     ****    File 
"/usr/share/weewx/user/ws3000.py", line 292, in genLoopPackets
Oct 26 15:07:53 ripapi weewx[17576]:     ****      loop_packet = 
self.getCurrentValues()
Oct 26 15:07:53 ripapi weewx[17576]:     ****    File 
"/usr/share/weewx/user/ws3000.py", line 267, in getCurrentValues
Oct 26 15:07:53 ripapi weewx[17576]:     ****      raw_data = 
self._get_raw_data(read_sensors_command)
Oct 26 15:07:53 ripapi weewx[17576]:     ****    File 
"/usr/share/weewx/user/ws3000.py", line 359, in _get_raw_data
Oct 26 15:07:53 ripapi weewx[17576]:     ****      raise 
weewx.IO_ERROR("Error while fetching " + self._get_cmd_name(hex_command))
Oct 26 15:07:53 ripapi weewx[17576]:     ****  TypeError: 'int' object is 
not callable
Oct 26 15:07:53 ripapi weewx[17576]:     ****  Exiting.

-> Can you point out what's possibly wrong?

usbtest.py:

rhk@ripapi ~ $ sudo python usbtest.py
Starting tests...
ws3000_write: entry
Detecting device...
Device found
Sending control packet
Sending command:  [123, 65, 64, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
An error occurred: (<class 'usb.core.USBError'>, USBError(110, u'Operation 
timed out'), <traceback object at 0xb69010a8>)
Traceback (most recent call last):
  File "usbtest.py", line 54, in ws3000_write
    data = device.read(0x82, 64, 100)
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 988, in 
read
    self.__get_timeout(timeout))
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", 
line 851, in intr_read
    timeout)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", 
line 936, in __read
    _check(retval)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", 
line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
USBError: [Errno 110] Operation timed out
Tests completed
rhk@ripapi ~ $

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to