feature/InfluxDB-Connection-Update #1
1 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,8 @@
|
|||
|
||||
// Enable/Disable features
|
||||
//#define WEBUPDATER_FEATURE
|
||||
//#define INFLUXDB_FEATURE
|
||||
#define INFLUXDB_FEATURE
|
||||
#define INFLUXDB_VERSION 1 // 1 or 2
|
||||
#define SERIAL_FEATURE
|
||||
//#define BATTERY_POWERED
|
||||
//#define SENSOR_WIND
|
||||
|
@ -21,7 +22,7 @@
|
|||
// only possible if webupdater is also enabled
|
||||
//#define HOMEBRIDGE_WEBSTAT
|
||||
// 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
|
||||
//#define RESET_ESP_TIMEINTERVAL
|
||||
|
||||
|
@ -36,6 +37,12 @@ const char *INFLUXDB_DB = "database";
|
|||
const char *INFLUXDB_USER = "user";
|
||||
const char *INFLUXDB_PASS = "password";
|
||||
|
||||
// InfluxDB2 credentials
|
||||
const char *INFLUXDB_URL = "http://192.168.0.123:3124";
|
||||
klaute marked this conversation as resolved
Outdated
|
||||
const char *INFLUXDB_ORG = "home_org";
|
||||
const char *INFLUXDB_BUCKET = "mybucket;
|
||||
const char *INFLUXDB_TOKEN = "your api tiken";
|
||||
klaute marked this conversation as resolved
Outdated
f
commented
" fehlt. " fehlt.
klaute
commented
Erledigt Erledigt
|
||||
|
||||
klaute marked this conversation as resolved
Outdated
|
||||
// Device name
|
||||
// WARNING: Keep the name short! If your access point did not show up, you
|
||||
// maybe have a TOO LONG SSID!
|
||||
|
|
Loading…
Reference in a new issue
Sind die Zugangs-Daten bei Version 1 und 2 so unterschiedlichen? Könnte man das nicht zusammenfassen in einen "connection string" oder so?
Das sind einzelne Parameter die man dem Init übergeben muss. Zumindest ist es so lesbar.