ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __ESP_ENV_CONFIG__
  2. #define __ESP_ENV_CONFIG__
  3. // Sketch version
  4. const char* esp_env_version = "0.2.0";
  5. // location of sensor, used in DB and hostname
  6. //const char* sensor_location = "livingroom";
  7. //const char* sensor_location = "bedroom";
  8. //const char* sensor_location = "bathroom";
  9. //const char* sensor_location = "kitchen";
  10. //const char* sensor_location = "hallway";
  11. //const char* sensor_location = "tent";
  12. const char* sensor_location = "storage";
  13. #define SENSOR_HOSTNAME_PREFIX "ESP-"
  14. // WiFi AP settings
  15. const char* ssid = "WIFI_SSID_HERE";
  16. const char* password = "WIFI_PASSWORD_HERE";
  17. // InfluxDB settings
  18. #define INFLUXDB_HOST "INFLUX_IP_HERE"
  19. #define INFLUXDB_PORT 8086
  20. #define INFLUXDB_DATABASE "roomsensorsdiy"
  21. // all given in milliseconds
  22. #define SERVER_HANDLE_INTERVAL 10
  23. #define DB_WRITE_INTERVAL (30 * 1000)
  24. #define LED_BLINK_INTERVAL (2 * 1000)
  25. #define LED_INIT_BLINK_INTERVAL 500
  26. #define LED_CONNECT_BLINK_INTERVAL 250
  27. #define LED_ERROR_BLINK_INTERVAL 100
  28. // feature selection
  29. #define ENABLE_DATABASE_WRITES
  30. #define ENABLE_LED_HEARTBEAT_BLINK
  31. #define DONT_RUN_WITHOUT_SENSORS
  32. #define HTTP_SHOW_ESP_STATS
  33. #endif // __ESP_ENV_CONFIG__