Created
February 18, 2016 15:39
-
-
Save thisMagpie/a4ba5830406e1641a806 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from webiopi.devices.sensor import DS18S20 | |
# sensors found with "ls /sys/bus/w1/devices/" | |
tmp0 = DS18S20(slave="10-000802de0ee7") | |
tmp1 = DS18S20(slave="10-000802de4b20") | |
print("TEMP0: {0} C TEMP1: {1} C").format(tmp0.getCelsius(), tmp1.getCelsius()) # print temperature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment