I've bought the Raspberry Pi 1Wire and I'm trying to connect it to my Raspberry Pi 3. I've gone trough the steps as described here and here.
My chip is detected I think.
Output of i2cdetect -l is: i2c-1 i2c bcm2835 I2C adapter I2C adapter.
The output of i2cdetect -y contains the number 18, as expected.
When running (sudo) python 1wiretest.py (the code provided in the tutorial) I'm getting the following error:
Traceback (most recent call last):
File "1wiretest.py", line 2, in <module>
File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 224, in init
I'm also getting an error when booting my Raspberry Pi, telling me that my /etc/rc.local failed (this was after adding this line of code: sudo /opt/owfs/bin/owserver -c /etc/owfs.conf --pid-file /var/run/owfs/owserver.pid) I have changed it to sudo /usr/bin/owserver -c /etc/owfs.conf --pid-file /var/run/owfs/owserver.pid, since the path posted in the tutorial seems outdated, but I'm still getting the same error.
Output of systemctl status rc-local.service:
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-10-23 14:25:30 UTC; 51min ago
Process: 531 ExecStart=/etc/rc.local start (code=exited, status=203/EXEC)
Oct 23 14:25:30 raspberrypi systemd: Starting /etc/rc.local Compatibility...
Oct 23 14:25:30 raspberrypi systemd: rc-local.service: Control process exited, code=exited status=203
Oct 23 14:25:30 raspberrypi systemd: Failed to start /etc/rc.local Compatibility.
Oct 23 14:25:30 raspberrypi systemd: rc-local.service: Unit entered failed state.
Oct 23 14:25:30 raspberrypi systemd: rc-local.service: Failed with result 'exit-code'.
Warning: rc-local.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Running owserver and owhttpd works fine when using a fake device (server: FAKE = DS18S20,DS2405), I can see the two fake devices in my browser (localhost:2121). But when changing the line to server: device = /dev/i2c-1, I get a 'The site can't be reached, localhost refused to connect' in the browser.
Output of sudo services owserver status:
? owserver.service - LSB: 1-wire TCP server
Loaded: loaded (/etc/init.d/owserver; generated; vendor preset: enabled)
Active: active (exited) since Mon 2017-10-23 14:57:27 UTC; 22min ago
Process: 2092 ExecStop=/etc/init.d/owserver stop (code=exited, status=0/SUCCESS)
Process: 2100 ExecStart=/etc/init.d/owserver start (code=exited, status=0/SUCCESS)
Oct 23 14:57:26 raspberrypi systemd: Starting LSB: 1-wire TCP server...
Oct 23 14:57:26 raspberrypi OWFS: DEFAULT: ow_daemon.c:(144) Entered background mode, quitting.
Oct 23 14:57:26 raspberrypi OWFS: DEFAULT: owlib.c:(52) No valid 1-wire buses found
Oct 23 14:57:27 raspberrypi owserver: Starting 1-Wire TCP Server: owserver failed!
Oct 23 14:57:27 raspberrypi systemd: Started LSB: 1-wire TCP server.
What am I doing wrong here?