The 1 Wire Pi Zero from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi Zero. A 5V buffered I2C port is also provided on the board. The 1 Wire Pi Zero can be securely fitted to your Raspberry Pi using our mounting kit pack.
Headless Installation with ssh:
Download: https://downloads.raspberrypi.org/raspbian_lite_latest
unzip the image and put in the img file on the micro sd card (for example): dd if=2019-04-08-raspbian-stretch-lite.img of=/dev/sdb (be care full that /dev/sdb is the sd card and not your own disk!!)
mount the boot partition of the sd card (not /boot), and do a touch of a ssh file, this will start the ssh daemon at startup: https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
Set ssh at startup with raspi-config
Setting WiFi up via the command line via raspi-config: https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
Also configure the i2c interface: raspi-config->Interfacing Options->P5
Install the extra packages: apt-get install owfs ow-shell i2c-tools
With the onewire board installed check if the i2c 1-wire device is active: i2cdetect -l and i2cdetect -y 1, this will show something like this, see the 18:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Configure the /etc/owfs.conf file: server: i2c = /dev/i2c-1:0 or server: i2c = /dev/i2c-1:ALL
Start the owserver: systemctl restart owserver
owdir will show you the bus and any devices found:
28.A7BD55040000
/bus.0
/uncached
/settings
/system
/statistics
/structure
/simultaneous
/alarm
see also forexample: