-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAll_Settings.h
65 lines (46 loc) · 2.69 KB
/
All_Settings.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Use the OpenWeather library: https://github.com/Bodmer/OpenWeather
// The weather icons and fonts are in the sketch data folder, press Ctrl+K
// to view.
// >>> IMPORTANT TO PREVENT CRASHES <<<
//>>>>>> Set SPIFFS to at least 1.5Mbytes before uploading files <<<<<<
// >>> DON'T FORGET THIS <<<
// Upload the fonts and icons to SPIFFS using the "Tools" "ESP32 Sketch Data Upload"
// or "ESP8266 Sketch Data Upload" menu option in the IDE.
// To add this option follow instructions here for the ESP8266:
// https://github.com/esp8266/arduino-esp8266fs-plugin
// To add this option follow instructions here for the ESP32:
// https://github.com/me-no-dev/arduino-esp32fs-plugin
// Close the IDE and open again to see the new menu option.
// You can change the number of hours and days for the forecast in the
// "User_Setup.h" file inside the OpenWeather library folder.
// By default this is 6 hours (can be up to 48) and 5 days
// (can be up to 8 days = today plus 7 days). This sketch requires
// at least 5 days of forecast. Forecast hours can be set to 1 as
// the hourly forecast data is not used in this sketch.
//////////////////////////////
// Setttings defined below
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PASSWORD"
#define TIMEZONE ausET // See NTP_Time.h tab for other "Zone references", UK, usMT etc
// Update every 15 minutes, up to 1000 request per day are free (viz average of ~40 per hour)
const int UPDATE_INTERVAL_SECS = 60 * 60UL; // 60 minutes
// Pins for the TFT interface are defined in the User_Config.h file inside the TFT_eSPI library
// For units use "metric" or "imperial"
const String units = "metric";
// Sign up for a key and read API configuration info here:
// https://openweathermap.org/, change x's to your API key
const String api_key = "1111111";
// Set the forecast longitude and latitude to at least 4 decimal places
const String latitude = "37.8744"; // 90.0000 to -90.0000 negative for Southern hemisphere
const String longitude = "145.1668"; // 180.000 to -180.000 negative for West
// For language codes see https://openweathermap.org/current#multi
const String language = "en"; // Default language = en = English
// Short day of week abbreviations used in 4 day forecast (change to your language)
const String shortDOW [8] = {"???", "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
// Change the labels to your language here:
const char sunStr[] = "Sun";
const char cloudStr[] = "Cloud";
const char humidityStr[] = "Humidity";
const String moonPhase [8] = {"New", "Waxing", "1st qtr", "Waxing", "Full", "Waning", "Last qtr", "Waning"};
// End of user settings
//////////////////////////////