Compare commits
No commits in common. "dea274117c7b427c716a09e90b42f364bd82087a" and "bce0c811394833aa611e9c742bf0eb461bce0a3d" have entirely different histories.
dea274117c
...
bce0c81139
2 changed files with 11 additions and 6 deletions
|
@ -128,6 +128,12 @@ void setup()
|
|||
#ifndef BATTERY_POWERED
|
||||
setupWebUpdater(DEVICE_NAME, WiFi.localIP().toString());
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HOMEBRIDGE_WEBSTAT
|
||||
#ifndef BATTERY_POWERED
|
||||
hb_webstat_server_setup();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//It's magic! leave in
|
||||
|
@ -137,8 +143,7 @@ void setup()
|
|||
// if millis() reached interval (1h) restart ESP
|
||||
if (millis() >= RESET_ESP_TIME_INTERVAL_MS)
|
||||
{
|
||||
debug("Resetting firmware intentionally");
|
||||
// Push reset button after flashing once or do a manual power cycle to get the functionality working.
|
||||
// TODO test
|
||||
ESP.restart();
|
||||
}
|
||||
#endif
|
||||
|
@ -245,6 +250,10 @@ void _loop() {
|
|||
setSensorData(currentSensorData);
|
||||
#endif
|
||||
|
||||
#ifdef HOMEBRIDGE_WEBSTAT
|
||||
hb_webstat_loop(currentSensorData);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void logToSerial(float sensorValues[]) {
|
||||
|
|
4
firmware/influxdb.ino
Normal file → Executable file
4
firmware/influxdb.ino
Normal file → Executable file
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include "config_user.h"
|
||||
|
||||
#if INFLUXDB_VERSION == 2
|
||||
|
||||
// Data point
|
||||
Point sensor(DEVICE_NAME);
|
||||
|
||||
|
@ -105,5 +103,3 @@ void _writePoint() {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // influxdb version 2 check
|
||||
|
|
Loading…
Reference in a new issue