The OWFS developers replied back with the news that python-ow is no longer 
supported. You can read the discussion at 
https://sourceforge.net/p/owfs/mailman/message/36159169/

However, Stefano Miccoli was kind enough to take the time to provide a 
detailed workaround. The following is his guidance (with a few edits and 
additional output) which is working perfectly on my Stretch RPi weewx 
system:

  - Start from a fresh system (no other owfs components installed) and 
install owserver and ow-shell:
  $ sudo apt install owserver ow-shell

  - Delete (as root) the hyper-verbose default debian /etc/owfs.conf file 
and use this minimal config:
  server: usb = all
  server: port = 4304

  - Enable and start the owserver
  $ sudo systemctl stop owserver
  $ sudo systemctl enable owserver
  $ sudo systemctl start owserver

  - Confirm that owserver is running:
  $ systemctl status owserver
  owserver.service - LSB: 1-wire TCP server
   Loaded: loaded (/etc/init.d/owserver; generated; vendor preset: enabled)
   Active: active (running) since Tue 2017-12-19 12:39:53 PST; 23h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 545 ExecStart=/etc/init.d/owserver start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/owserver.service
           └─573 /usr/bin/owserver -c /etc/owfs.conf --pid-file 
/var/run/owfs/owserver.pid

  Dec 19 12:39:51 wx systemd[1]: Starting LSB: 1-wire TCP server...
  Dec 19 12:39:52 wx OWFS[573]: DEFAULT: ow_daemon.c:(144) Entered 
background mode, quitting.
  Dec 19 12:39:52 wx OWFS[573]: DEFAULT: ow_usb_msg.c:(214) Opened USB 
DS9490 bus master at ...
  Dec 19 12:39:52 wx OWFS[573]: DEFAULT: ow_usb_cycle.c:(128) Set DS9490 
1:5 unique id ...
  Dec 19 12:39:53 wx owserver[545]: Starting 1-Wire TCP Server: owserver.
  Dec 19 12:39:53 wx systemd[1]: Started LSB: 1-wire TCP server.

  - Test your setup
  $ owdir
  /81.380F31000000
  /1F.A84D02000000
  /1F.235602000000
  /1F.D74E02000000
  /bus.0
  /uncached
  /settings
  /system
  /statistics
  /structure

 - Install and test owpython. (Run the python client as an unprivileged 
user, no need to run as root or install a permissions file in 
/etc/udev/rules.d/.)
  $ sudo apt install python-ow
  $ python
  >>> import ow
  >>> ow.init('localhost:4304')
  >>> ow.owfs_get('/')
  You should not see any error messages.

Finally change weewx.conf 
from
  [OWFS]
        interface = u
to
  [OWFS]
        interface = localhost:4304

Run weewx. As mentioned above, this worked for me.

-- 
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