diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-05-17 20:58:07 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-05-17 20:58:07 +0200 |
commit | ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0 (patch) | |
tree | f9cf6bbdbdc512a258701ed2c0ea8c838d51a6c1 /src/settings.h | |
download | watchoom-ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0.tar.gz watchoom-ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0.tar.bz2 watchoom-ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0.tar.xz watchoom-ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0.tar.zst watchoom-ec8e4eb6320ddaabd71afbda12e93fbdab0d10d0.zip |
initial commit
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h new file mode 100644 index 0000000..365c5e2 --- /dev/null +++ b/src/settings.h @@ -0,0 +1,28 @@ +#ifndef SETTINGS_H +#define SETTINGS_H + +//Weather Settings +#define CITY_ID "5128581" //New York City https://openweathermap.org/current#cityid +#define OPENWEATHERMAP_APIKEY "f058fe1cad2afe8e2ddc5d063a64cecb" //use your own API key :) +#define OPENWEATHERMAP_URL "http://api.openweathermap.org/data/2.5/weather?id=" //open weather api +#define TEMP_UNIT "metric" //metric = Celsius , imperial = Fahrenheit +#define TEMP_LANG "en" +#define WEATHER_UPDATE_INTERVAL 30 //must be greater than 5, measured in minutes +//NTP Settings +#define NTP_SERVER "pool.ntp.org" +#define GMT_OFFSET_SEC 3600 * -5 //New York is UTC -5 +#define DST_OFFSET_SEC 3600 + +watchySettings settings{ + CITY_ID, + OPENWEATHERMAP_APIKEY, + OPENWEATHERMAP_URL, + TEMP_UNIT, + TEMP_LANG, + WEATHER_UPDATE_INTERVAL, + NTP_SERVER, + GMT_OFFSET_SEC, + DST_OFFSET_SEC +}; + +#endif |