feature/InfluxDB-Connection-Update #1

Merged
klaute merged 39 commits from feature/InfluxDB-Connection-Update into master 2022-05-23 17:36:59 +02:00
Showing only changes of commit 562d0d294d - Show all commits

View file

@ -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!