Commit Graph

4 Commits

Author SHA1 Message Date
d80ba14e03 Fix broken includes after refactor 2018-03-21 15:35:58 +01:00
f43dea1d7b Add DHT temp/humidity getters.
+float mgos_prometheus_sensors_dht_get_temp(uint8_t idx);
+float mgos_prometheus_sensors_dht_get_humidity(uint8_t idx);

They return NAN if the index is invalid, or the sensor couldn't be
found. Otherwise, they return the last measured temperature or humidity
values as floats.
2018-03-04 17:01:17 +01:00
0d48de1ba8 Add Prometheus timer.
This timer will periodically upload Prometheus information to the push
gateway. By default, every `sensors.pushgateway_period` (10) seconds.
2018-03-04 16:38:10 +01:00
1ff7642bea Initial Checkin.
Only DHT (AM3202) supported at this time.
2018-03-04 16:11:07 +01:00