37 lines
877 B
C
37 lines
877 B
C
|
|
#define DEBUG 1
|
|
|
|
#define SENSOR_TEMPERATURE 0
|
|
#define SENSOR_HUMIDITY 1
|
|
#define SENSOR_LIGHT 2
|
|
#define SENSOR_WINDSPEED 3
|
|
#define SENSOR_PRESSURE 4
|
|
#define SENSOR_BAT_VOLTAGE 5
|
|
|
|
#define UPDATE_SENSOR_INTERVAL_S 10
|
|
#define UPDATE_WEBSERVER_INTVERVAL_S 1
|
|
#define DELAY_LOOP_MS 50
|
|
|
|
#define STATUS_LED_PIN BUILTIN_LED
|
|
#define ANEMOMETER_PIN D7
|
|
|
|
#define BME_SCK 13
|
|
#define BME_MISO 12
|
|
#define BME_MOSI 11
|
|
#define BME_CS 10
|
|
|
|
#define INITIAL_WEBSERVER_TIME 20
|
|
|
|
#define SEALEVELPRESSURE_HPA (1013.25)
|
|
|
|
#define BME280_ADDRESS 0x76
|
|
|
|
const char *INFLUXDB_HOST = "influxdb.okoyono.de";
|
|
const uint16_t INFLUXDB_PORT = 80;
|
|
const char *INFLUXDB_DB = "weatherstation";
|
|
const char *INFLUXDB_USER = "oko";
|
|
const char *INFLUXDB_PASS = "de1873a0d2f8f21f17cf4d8db4f65c59";
|
|
|
|
String DEVICE_NAME = "klaute";
|
|
|
|
|