Use following constructors if you want to create a 1-Wire Temperature sensor from your python scripts.
Parameters:
from webiopi.devices.sensor import DS18B20
# Setup a DS18B20 with 1-Wire slave auto-detect
tmp0 = DS18B20()
# Setup a DS18B20 with 1-Wire slave 28-0000049bc218
tmp1 = DS18B20(slave="28-0000049bc218")
Use following syntax to setup a DS18B20 in the webiopi service/command configuration file.
[DEVICES]
# Setup a DS18B20 with 1-Wire slave auto-detect
tmp0 = DS18B20
# Setup a DS18B20 with 1-Wire slave 28-0000049bc218
tmp1 = DS18B20 slave:28-0000049bc218