2019-01-08 22:41:24 +01:00
|
|
|
// Copy this file to config_user.h and adjust it to your needs.
|
|
|
|
|
2019-01-27 20:31:15 +01:00
|
|
|
|
|
|
|
#ifndef __CONFIG_USER_H__
|
|
|
|
#define __CONFIG_USER_H__
|
|
|
|
|
2019-01-08 22:41:24 +01:00
|
|
|
// Debug output on the serial console
|
2019-01-27 18:49:28 +01:00
|
|
|
#define DEBUG
|
2019-01-08 22:41:24 +01:00
|
|
|
|
|
|
|
// Enable/Disable features
|
2019-01-27 18:49:28 +01:00
|
|
|
//#define WEBUPDATER_FEATURE
|
2022-05-20 10:13:02 +02:00
|
|
|
#define INFLUXDB_FEATURE
|
|
|
|
#define INFLUXDB_VERSION 1 // 1 or 2
|
2019-08-04 12:08:31 +02:00
|
|
|
#define SERIAL_FEATURE
|
2022-05-15 22:47:23 +02:00
|
|
|
//#define BATTERY_POWERED
|
|
|
|
//#define SENSOR_WIND
|
2019-08-04 11:56:18 +02:00
|
|
|
#define SENSOR_APDS9960
|
|
|
|
//#define SENSOR_APDS9930
|
|
|
|
#define SENSOR_BME280
|
|
|
|
#define SENSOR_BATTERY
|
2020-02-20 19:49:44 +01:00
|
|
|
//#define BAT_PINS_D34
|
2022-05-15 22:47:23 +02:00
|
|
|
// only possible if webupdater is also enabled
|
|
|
|
//#define HOMEBRIDGE_WEBSTAT
|
|
|
|
// retries to connect after 5 seconds or starts the wifimanager
|
2022-05-20 10:13:02 +02:00
|
|
|
#define SLEEP_IF_NO_WLAN_CONNECTION
|
2022-05-15 22:47:23 +02:00
|
|
|
// Restarts the firmware every n seconds
|
|
|
|
//#define RESET_ESP_TIMEINTERVAL
|
2019-01-08 22:41:24 +01:00
|
|
|
|
2019-02-03 15:09:01 +01:00
|
|
|
const float HUMIDITY_FACTOR = 1.0;
|
|
|
|
const float LIGHT_FACTOR = 1.0;
|
2022-05-15 22:47:23 +02:00
|
|
|
const float TEMP_FACTOR = 1.0;
|
2019-02-03 14:53:08 +01:00
|
|
|
|
2019-01-08 22:41:24 +01:00
|
|
|
// InfluxDB credentials
|
|
|
|
const char *INFLUXDB_HOST = "hostname";
|
|
|
|
const uint16_t INFLUXDB_PORT = 80;
|
|
|
|
const char *INFLUXDB_DB = "database";
|
|
|
|
const char *INFLUXDB_USER = "user";
|
|
|
|
const char *INFLUXDB_PASS = "password";
|
|
|
|
|
2022-05-20 10:13:02 +02:00
|
|
|
// 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";
|
|
|
|
|
2019-01-08 22:41:24 +01:00
|
|
|
// Device name
|
2019-03-31 20:48:37 +02:00
|
|
|
// WARNING: Keep the name short! If your access point did not show up, you
|
|
|
|
// maybe have a TOO LONG SSID!
|
2019-01-08 22:41:24 +01:00
|
|
|
String DEVICE_NAME = "devicename";
|
2019-01-27 20:31:15 +01:00
|
|
|
|
|
|
|
#endif
|
2022-05-15 22:47:23 +02:00
|
|
|
|