On Wednesday, February 5, 2020 at 9:03:44 AM UTC-6, Thomas Keffer wrote:
>
> Could you please go into the file ws23xx.py and change the global variable 
> DEBUG_SERIAL to True (line 803)? Then try running the driver directly. For 
> example:
>
> *PYTHONPATH=bin python3 bin/weewx/drivers/ws23xx.py --readings*
>
> While you're at it, try both python2 and python3.
>
> -tk
>
>
Here are the results for both versions.  Note: I overrode the port setting, 
as it defaulted to USB, but mine is serial (/dev/ttyS0).

Thanks!
Paul

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/0b622079-5955-4efd-bbc0-305bac967075%40googlegroups.com.
root@gummo:~# /etc/init.d/weewx stop
[ ok ] Stopping weewx weather system: weewx.
root@gummo:~# cd /home/weewx
root@gummo:/home/weewx# python -V
Python 2.7.13
root@gummo:/home/weewx# PYTHONPATH=bin python2 bin/weewx/drivers/ws23xx.py 
--readings --port=/dev/ttyS0
{'rt': 1156.69, 'wc': -18.9, 'cn': 15, 'oh': 61.0, 'it': 30.4, 'ih': 19.0, 
'pa': 915.9, 'dp': -7.78, 'ot': -1.2, 'rh': 0.0, 'wind': (51.0, 0.0, 5, 0)}
root@gummo:/home/weewx# update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/python3.5   2         auto mode
* 1            /usr/bin/python2.7   1         manual mode
  2            /usr/bin/python3.5   2         manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/python3.5 to provide /usr/bin/python 
(python) in manual mode
root@gummo:/home/weewx# python -V
Python 3.5.3
root@gummo:/home/weewx# PYTHONPATH=bin python3 bin/weewx/drivers/ws23xx.py 
--readings --port=/dev/ttyS0
Traceback (most recent call last):
  File "bin/weewx/drivers/ws23xx.py", line 2116, in <module>
    data = s.get_raw_data(SENSOR_IDS)
  File "bin/weewx/drivers/ws23xx.py", line 789, in get_raw_data
    raw_data = read_measurements(self.ws, measures)
  File "bin/weewx/drivers/ws23xx.py", line 2029, in read_measurements
    nybbles = ws2300.read_batch(batches)
  File "bin/weewx/drivers/ws23xx.py", line 1193, in read_batch
    self.reset_06()
  File "bin/weewx/drivers/ws23xx.py", line 1062, in reset_06
    raise self.Ws2300Exception(msg)
__main__.Ws2300Exception: Reset failed, 100 retries, no response

Reply via email to