Move secrets.h stuff to the bottom so it can override everything
All checks were successful
Compile / Compile (push) Successful in 1m19s
All checks were successful
Compile / Compile (push) Successful in 1m19s
This commit is contained in:
parent
5863b0db2c
commit
5dea52ebe4
1 changed files with 10 additions and 10 deletions
18
src/config.h
18
src/config.h
|
@ -34,6 +34,15 @@
|
|||
#define EEPROM_MAGIC2 0x0d
|
||||
#define EEPROM_VERSION 1
|
||||
|
||||
#define DEFAULT_TZ_OFFSET 3600 * 3
|
||||
|
||||
#define NTP_SERVER "pool.ntp.org"
|
||||
|
||||
#define UPDATE_INTERVAL 60 // seconds
|
||||
#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute
|
||||
|
||||
#define WEATHER_UPDATE_INTERVAL 3600 // seconds
|
||||
|
||||
#include "secrets.h"
|
||||
#if !defined(WIFI_SSID) || !defined(WIFI_PASS)
|
||||
#error "Please define WIFI_SSID and WIFI_PASS in secrets.h"
|
||||
|
@ -43,12 +52,3 @@
|
|||
#define OPENWEATHERMAP_API_KEY "" // Put the actual key in secrets.h. NOT HERE.
|
||||
#warning "OPENWEATHERMAP_API_KEY not defined in secrets.h"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_TZ_OFFSET 3600 * 3
|
||||
|
||||
#define NTP_SERVER "pool.ntp.org"
|
||||
|
||||
#define UPDATE_INTERVAL 60 // seconds
|
||||
#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute
|
||||
|
||||
#define WEATHER_UPDATE_INTERVAL 3600 // seconds
|
Loading…
Reference in a new issue