You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
3.4 KiB

const bool DebugDisplayUpdate = false;
// Change to your WiFi credentials
const char* ssid = "VOVA-47";
const char* password = "vovak26102003";
// Use your own API key by signing up for a free developer account at https://openweathermap.org/
String apikey = "a0b9f94d153cbcbfeb00ea5632db24ac"; // See: https://openweathermap.org/
const char server[] = "api.openweathermap.org";
//http://api.openweathermap.org/data/2.5/forecast?q=Yevpatoriya,UA&APPID=a0b9f94d153cbcbfeb00ea5632db24ac&mode=json&units=metric&cnt=40 прогноз по3 часа
//http://api.openweathermap.org/data/2.5/forecast/daily?q=Yevpatoriya,UA&APPID=a0b9f94d153cbcbfeb00ea5632db24ac&mode=json&units=metric&cnt=7 прогноз на 7 дней
//http://api.openweathermap.org/data/2.5/weather?q=Yevpatoriya,UA&APPID=a0b9f94d153cbcbfeb00ea5632db24ac&mode=json&units=metric&cnt=1 текущая погода
//Set your location according to OWM locations
String City = "Yevpatoriya"; // Your home city See: http://bulk.openweathermap.org/sample/
String Country = "UA"; // Your _ISO-3166-1_two-letter_country_code country code, on OWM find your nearest city and the country code is displayed
// https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
String Language = "EN"; // NOTE: Only the weather description is translated by OWM
// Examples: Arabic (AR) Czech (CZ) English (EN) Greek (EL) Persian(Farsi) (FA) Galician (GL) Hungarian (HU) Japanese (JA)
// Korean (KR) Latvian (LA) Lithuanian (LT) Macedonian (MK) Slovak (SK) Slovenian (SL) Vietnamese (VI)
String Hemisphere = "north"; // or "south"
String Units = "M"; // Use 'M' for Metric or I for Imperial
const char* Timezone = "MSK-3"; // Choose your time zone from: https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv
const char* ntpServer = "0.europe.pool.ntp.org"; // See below for examples
//const char* ntpServer = "0.ru.pool.ntp.org"; // Or, choose a time server close to you, but in most cases it's best to use pool.ntp.org to find an NTP server
// const char* ntpServer = "0.uk.pool.ntp.org"; // then the NTP system decides e.g. 0.pool.ntp.org, 1.pool.ntp.org as the NTP syem tries to find the closest available servers
// EU "0.europe.pool.ntp.org"
// US "0.north-america.pool.ntp.org"
// See: https://www.ntppool.org/en/ server 0.ru.pool.ntp.org
// server 1.ru.pool.ntp.org
// server 2.ru.pool.ntp.org
// server 3.ru.pool.ntp.org
int gmtOffset_sec = 0; // UK normal time is GMT, so GMT Offset is 0, for US (-5Hrs) is typically -18000, AU is typically (+8hrs) 28800
int daylightOffset_sec = 0; // In the UK DST is +1hr or 3600-secs, other countries may use 2hrs 7200 or 30-mins 1800 or 5.5hrs 19800 Ahead of GMT use + offset behind - offset