Commit Graph

8 Commits

Author SHA1 Message Date
Pim van Pelt
9ee393bc8a Rebase private OTA libs on 2.7 2018-10-28 12:12:24 +01:00
Pim van Pelt
56a2ec21ab Refactor prometheus-sensors into top-level directory; pull in DHT library 2018-04-17 18:12:41 +02:00
Pim van Pelt
8bf7b919cc Factor out DHT
It's now its own library (in git@git.ipng.nl:pim/prometheus-sensors)
2018-03-04 16:38:54 +01:00
Pim van Pelt
6898ff8349 Add a simple Prometheus exporter. 2018-02-25 19:59:32 +01:00
Pim van Pelt
13d1ab1fa5 Add app.dht_gpio flag to find DHT sensors
Parse this comma separated string to find GPIO pins on which we must
enable DHT sensors.  Seperators are space and comma.
Can be empty, single GPIO pins, or a list:
app.dht_gpio=""
app.dht_gpio="5"
app.dht_gpio="5,4,14"
app.dht_gpio="5 4 14"
app.dht_gpio="5, 4 14"
2018-02-13 01:15:14 +01:00
Pim van Pelt
bb62e9b6ae Add DHT support.
Very rough stab just to test the waters -- this will need some
more work.

For now, hard code 4,5,15 pins (as per Sonoff SV), but before
rolling this out, add a config flag for this behavior.

Neat trick -- the presence of dht library in mos.yml triggers
inclusion of the code via define -DMGOS_HAVE_DHT=1
2018-02-11 13:20:36 +01:00
Pim van Pelt
a0909ab6a0 Blink statusled on recv/xmit MQTT messages; debounce 200ms; trigger button on release; Prime for sonoff-basic // sonoff-sv 2018-01-25 14:52:55 +01:00
Pim van Pelt
4679636fdc Initial checkin. 2018-01-05 16:58:15 +01:00