feature/InfluxDB-Connection-Update #1
1 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
// Enable/Disable features
|
// Enable/Disable features
|
||||||
//#define WEBUPDATER_FEATURE
|
//#define WEBUPDATER_FEATURE
|
||||||
//#define INFLUXDB_FEATURE
|
#define INFLUXDB_FEATURE
|
||||||
|
#define INFLUXDB_VERSION 1 // 1 or 2
|
||||||
#define SERIAL_FEATURE
|
#define SERIAL_FEATURE
|
||||||
//#define BATTERY_POWERED
|
//#define BATTERY_POWERED
|
||||||
//#define SENSOR_WIND
|
//#define SENSOR_WIND
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
// only possible if webupdater is also enabled
|
// only possible if webupdater is also enabled
|
||||||
//#define HOMEBRIDGE_WEBSTAT
|
//#define HOMEBRIDGE_WEBSTAT
|
||||||
// retries to connect after 5 seconds or starts the wifimanager
|
// retries to connect after 5 seconds or starts the wifimanager
|
||||||
//#define SLEEP_IF_NO_WLAN_CONNECTION
|
#define SLEEP_IF_NO_WLAN_CONNECTION
|
||||||
// Restarts the firmware every n seconds
|
// Restarts the firmware every n seconds
|
||||||
//#define RESET_ESP_TIMEINTERVAL
|
//#define RESET_ESP_TIMEINTERVAL
|
||||||
|
|
||||||
|
@ -36,6 +37,12 @@ const char *INFLUXDB_DB = "database";
|
||||||
const char *INFLUXDB_USER = "user";
|
const char *INFLUXDB_USER = "user";
|
||||||
const char *INFLUXDB_PASS = "password";
|
const char *INFLUXDB_PASS = "password";
|
||||||
|
|
||||||
|
// InfluxDB2 credentials
|
||||||
|
const char *INFLUXDB_URL = "http://192.168.0.123:3124";
|
||||||
|
const char *INFLUXDB_ORG = "home_org";
|
||||||
|
const char *INFLUXDB_BUCKET = "mybucket;
|
||||||
|
const char *INFLUXDB_TOKEN = "your api tiken";
|
||||||
|
|
||||||
// Device name
|
// Device name
|
||||||
// WARNING: Keep the name short! If your access point did not show up, you
|
// WARNING: Keep the name short! If your access point did not show up, you
|
||||||
// maybe have a TOO LONG SSID!
|
// maybe have a TOO LONG SSID!
|
||||||
|
|
Loading…
Reference in a new issue