2018-06-24 15:53:58 +02:00
|
|
|
|
2019-01-06 15:21:03 +01:00
|
|
|
#define DEBUG 1
|
2018-07-12 22:30:30 +02:00
|
|
|
|
2018-08-05 09:50:46 +02:00
|
|
|
#define BATTERY_POWERED 1
|
2018-07-12 22:30:30 +02:00
|
|
|
#define POWERSAVING 1
|
2017-11-07 22:20:14 +01:00
|
|
|
|
2019-01-06 15:24:02 +01:00
|
|
|
#define BOARD_03962A
|
|
|
|
|
2017-11-20 20:15:14 +01:00
|
|
|
#define SENSOR_TEMPERATURE 0
|
|
|
|
#define SENSOR_HUMIDITY 1
|
|
|
|
#define SENSOR_LIGHT 2
|
|
|
|
#define SENSOR_WINDSPEED 3
|
2017-11-20 20:42:02 +01:00
|
|
|
#define SENSOR_PRESSURE 4
|
2018-07-11 11:12:53 +02:00
|
|
|
#define SENSOR_BAT_VOLTAGE 5
|
2017-11-07 22:20:14 +01:00
|
|
|
|
2018-07-19 20:13:08 +02:00
|
|
|
#define WIFI_AUTOCONNECT_TIMEOUT_S 60
|
|
|
|
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 60
|
2018-07-12 22:30:30 +02:00
|
|
|
#define UPDATE_SENSOR_INTERVAL_S 10
|
|
|
|
#define UPDATE_WEBSERVER_INTVERVAL_S 1
|
|
|
|
#define DELAY_LOOP_MS 50
|
2018-07-12 22:34:01 +02:00
|
|
|
#define POWERSAVING_SLEEP_S 600
|
2018-12-02 17:06:06 +01:00
|
|
|
#define EMERGENCY_SLEEP_S 172800 // Sleep for 2 days to recover
|
|
|
|
#define ENERGY_SAVING_ITERATIONS 30
|
2018-07-19 20:13:08 +02:00
|
|
|
|
2018-12-02 17:06:06 +01:00
|
|
|
#define BAT_LOW_VOLTAGE 3.6
|
|
|
|
#define BAT_EMERGENCY_DEEPSLEEP_VOLTAGE 3.5
|
2017-11-07 22:20:14 +01:00
|
|
|
|
2017-11-20 20:15:14 +01:00
|
|
|
#define STATUS_LED_PIN BUILTIN_LED
|
2018-06-23 21:49:11 +02:00
|
|
|
#define ANEMOMETER_PIN D7
|
2017-11-20 20:15:14 +01:00
|
|
|
|
2018-06-23 20:13:33 +02:00
|
|
|
#define BME_SCK 13
|
2017-12-09 18:08:37 +01:00
|
|
|
#define BME_MISO 12
|
|
|
|
#define BME_MOSI 11
|
2018-06-23 20:13:33 +02:00
|
|
|
#define BME_CS 10
|
2017-12-09 18:08:37 +01:00
|
|
|
|
2018-06-24 12:00:51 +02:00
|
|
|
#define INITIAL_WEBSERVER_TIME 20
|
2018-12-02 17:06:06 +01:00
|
|
|
#define WEBUPDATER_FEATURE 0
|
2018-06-24 12:00:51 +02:00
|
|
|
|
2017-12-09 18:08:37 +01:00
|
|
|
#define SEALEVELPRESSURE_HPA (1013.25)
|
|
|
|
|
|
|
|
#define BME280_ADDRESS 0x76
|
|
|
|
|
2018-07-19 21:56:43 +02:00
|
|
|
const char *INFLUXDB_HOST = "influxdb.okoyono.de";
|
|
|
|
//const char *INFLUXDB_HOST = "37.59.213.225";
|
2018-06-24 12:00:51 +02:00
|
|
|
const uint16_t INFLUXDB_PORT = 80;
|
|
|
|
const char *INFLUXDB_DB = "weatherstation";
|
|
|
|
const char *INFLUXDB_USER = "oko";
|
|
|
|
const char *INFLUXDB_PASS = "de1873a0d2f8f21f17cf4d8db4f65c59";
|
2017-12-09 18:26:12 +01:00
|
|
|
|
2019-01-06 15:21:03 +01:00
|
|
|
String DEVICE_NAME = "klaute";
|
|
|
|
|