This file contains 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
# Use this along with Home Assistant's RESTful Sensor Platform (https://home-assistant.io/components/sensor.rest/) | |
# to create a temperature sensor using a Raspberry Pi and a DS18B20 probe. | |
# | |
# In my case this was being used in a sauna (using a waterproof probe https://www.sparkfun.com/products/11050) | |
# so I also wanted a binary sensor that indicated whether the temperature had reached a certain threshold or not. | |
import os | |
import glob | |
import time |
OlderNewer