forked from sqfmi/Watchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.h.example
47 lines (37 loc) · 1.55 KB
/
parameters.h.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef PARAMETERS_H
#define PARAMETERS_H
//Weather Settings
#define CITY_ID "2996944" //New York City https://openweathermap.org/current#cityid
//You can also use LAT,LON for your location instead of CITY_ID, but not both
//#define LAT "40.7127" //New York City, Looked up on https://www.latlong.net/
//#define LON "-74.0059"
#ifdef CITY_ID
#define OPENWEATHERMAP_URL "http://api.openweathermap.org/data/2.5/weather?id={cityID}&lang={lang}&units={units}&appid={apiKey}" //open weather api using city ID
#else
#define OPENWEATHERMAP_URL "http://api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}&lang={lang}&units={units}&appid={apiKey}" //open weather api using lat lon
#endif
#define OPENWEATHERMAP_APIKEY "test" //use your own API key :)
#define TEMP_UNIT "metric" //metric = Celsius , imperial = Fahrenheit
#define TEMP_LANG "fr"
#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 * 2 //New York is UTC -5 EST, -4 EDT, will be overwritten by weather data
#define VIBRATE_0_CLOCK true
// Face params
#define DARKMODE true
// WIFI Settings
// Default connection point
#define WIFI_SSID_DEF "Pastabox-test"
#define WIFI_PASS_DEF "test"
// 2ndary connection point
#define WIFI_SSID_2ND "Volophone-test"
#define WIFI_PASS_2ND "test"
// Blague du jour
#define BLAGUE_TYPE "dev"
#define BLAGUE_URL "https://www.blagues-api.fr/api/type/" + String(BLAGUE_TYPE) + "/random"
#define BLAGUE_TOKEN "test"
// DATA API
#define API_URL ""
#define API_TOKEN ""
#endif