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