Skip to content

Commit

Permalink
Added some domoticz scripts / ESP8266 scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfrdp committed Mar 9, 2016
1 parent 165386b commit de57940
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions domoticz/ds18b20.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python
import sys
from w1thermsensor import W1ThermSensor

address = sys.argv[1]
sensor = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS18B20, address)
temperature_in_celsius = sensor.get_temperature()

print("{0:.2f}".format(temperature_in_celsius))
Empty file modified domoticz/ds18b20_domoticz.sh
100644 → 100755
Empty file.
Empty file modified domoticz/meter_domoticz.sh
100644 → 100755
Empty file.
File renamed without changes.
File renamed without changes.

0 comments on commit de57940

Please sign in to comment.