// -------------------------------------------------------------------------------------- // WeatherDuino Weather Display // Version: ESP8266_WD_v5.1-b003 // User configurable options // -------------------------------------------------------------------------------------- // // // >>> DON'T FORGET THIS <<< // If you are upgrading from a software version prior to v5.x, // upload the fonts and icons to SPIFFS using the // "ESP8266 Sketch Data Upload" menu option in the IDE. // // To add this option follow instructions here: // https://github.com/esp8266/arduino-esp8266fs-plugin // or just copy to your Sketchbook location (on Windows, usually C:\Users\xxxxxx\Documents\Arduino) // the "tools" directory, included in software package (look in utilities folder). // // Close the IDE and open again to see the new menu option. // // Unless clearly indicated, this operation only needs to be done 1 time. // On regular software upgrades, or when reprogramming there is no need to re-upload the graphics to the Flash memory. // ******************************************* // * User configurable settings start here * // ******************************************* // -------------------------------------------------------------------------------------- // Define how unit will receive data: RF 433Mhz or WiFi // -------------------------------------------------------------------------------------- #define RX_MODE 1 // 0= Receive data by RF, 1= Receive by WiFi #define UDP_DATA_PORT 9889 // Port to listen for Weather Data UDP packets. Only used when RX_MODE is 1 // Use the same port defined on receiver Config_Options.h (UDP_BROADCAST_PORT) // -------------------------------------------------------------------------------------- // Define the ID for the Wireless Display Unit // Relay_ID should be equal to the value set in your Main RX software // -------------------------------------------------------------------------------------- const byte Relay_ID = 0xA3; // -------------------------------------------------------------------------------------- // Define type of your WeatherDuino receiver // -------------------------------------------------------------------------------------- #define RECEIVER_TYPE 2 // 0= Reserved, 1= Pro2 Compact, 2= Pro2 PLUS, 3= Pro2 // -------------------------------------------------------------------------------------- // Define rules for Auto Summer Time Display, and clock adjustment // -------------------------------------------------------------------------------------- // Example for Australia Eastern Time Zone (Sydney, Melbourne) // TimeChangeRule aEDT = {"AEDT", First, Sun, Oct, 2, 660}; //UTC + 11 hours // TimeChangeRule aEST = {"AEST", First, Sun, Apr, 3, 600}; //UTC + 10 hours // Timezone myTZ(aEDT, aEST); //TimeChangeRule PST = {"PST", Last, Sun, Mar, 1, 60}; //Portuguese Summer Time - "UTC + 1" or GMT + 1 //TimeChangeRule PWT = {"GMT", Last, Sun, Oct, 2, 0}; //Portuguese Winter Time - "UTC + 0" or GMT //Timezone myTZ (PST, PWT); TimeChangeRule cEST = {"CEST", Last, Sun, Mar, 2, 120}; //Central European Summer Time - "GMT + 2" TimeChangeRule cET = {"CET", Last, Sun, Oct, 3, 60}; //Central European Time - "GMT + 1" Timezone myTZ(cEST, cET); // -------------------------------------------------------------------------------------- // Define User Interface Language // -------------------------------------------------------------------------------------- // Change the language code according to your preference. // Currently available languages: en_GB, fr_FR, de_DE, pt_PT, es_ES, cs_CZ, nl_NL, it_IT, pl_PL #define fr_FR // -------------------------------------------------------------------------------------- // Define Auto BigClock TimeOut // -------------------------------------------------------------------------------------- byte AutoBigClock_time = 10; // Time in minutes (1 to 255) to automatically show the Big Clock. 0= Disable auto BigClock // --- Define type of Local TH sensor #define INSIDE_TH_SENSOR 3 // 0= BME280, 1= HTU21D, 2= SHT21, 3= SHT31, 9= Use Main Station TH sensor // --- Fine adjusts for Local Inside Temperature int TemperaturaInt_offset = 0; // Inside Temperature Fine Adjust in Tenths of Degrees // -------------------------------------------------------------------------------------- // Define personalized names for each Extra Sensor. Attention, maximum 12 chars // Should correspond to names defined on RX software. // -------------------------------------------------------------------------------------- // [- Max. Size ] // [- 12 chars -] const char ESname_1[] PROGMEM = "Cave"; const char ESname_2[] PROGMEM = "Cellier"; const char ESname_3[] PROGMEM = "Chambre"; const char ESname_4[] PROGMEM = "Schirla"; const char ESname_5[] PROGMEM = "Soute"; const char ESname_6[] PROGMEM = "Terasse"; const char ESname_7[] PROGMEM = "Rdc"; // -------------------------------------------------------------------------------------- // Define personalized names for each Soil and Leaf Sensor. Attention, maximum 12 chars // Should correspond to names defined on RX software. // -------------------------------------------------------------------------------------- // [- Max. Size ] // [- 12 chars -] const char SSname_1[] PROGMEM = ""; const char SSname_2[] PROGMEM = ""; const char SSname_3[] PROGMEM = ""; const char SSname_4[] PROGMEM = ""; // [- Max. Size ] // [- 12 chars -] const char LSname_1[] PROGMEM = ""; const char LSname_2[] PROGMEM = ""; const char LSname_3[] PROGMEM = ""; const char LSname_4[] PROGMEM = ""; // -------------------------------------------------------------------------------------- // Define data screens order // Use numbers from 1 to 5 to define a personalized order for the data screens // -------------------------------------------------------------------------------------- #define AIRQUALITY_DATA 3 #define TXINFO_DATA 2 #define EXTRASENSORS_DATA 1 #define SOILLEAF_DATA 5 #define FORECAST_DATA 4 // -------------------------------------------------------------------------------------- // Internet Settings // -------------------------------------------------------------------------------------- #define ENABLE_INTERNET 1 // 1= Enable Internet connection, 0= Disable #define WEBSERVER_PORT 80 // WebServer port (default 80) // -------------------------------------------------------------------------------------- // NTP Server Settings. At least one should be defined // -------------------------------------------------------------------------------------- #define TIMESERVER "pool.ntp.org" //#define TIMESERVER "time.nist.gov" // ntp1.nl.net NTP server //#define TIMESERVER "80.96.196.58" // timp.mcsi.ro //#define TIMESERVER "193.79.237.14" // -------------------------------------------------------------------------------------- // Dark Sky 4 Days Forecast Settings // -------------------------------------------------------------------------------------- // Set the forecast longitude and latitude to at least 4 decimal places // Hint: Use the same values set on the WeatherDuino Receiver const String latitude = "47.91166"; // 90.0000 to -90.0000 negative for Southern hemisphere const String longitude = "7.35601"; // 180.000 to -180.000 negative for West /************************************************************************************* Hardware Settings *************************************************************************************/ // -------------------------------------------------------------------------------------- // SHT31 I2c Address // -------------------------------------------------------------------------------------- // Default address will work most of the times! #define SHT31_ADDRESS 0x44 // Default value is 0x44, but it can be changed to 0x45 // Define type of your TFT Touch Panel // -------------------------------------------------------------------------------------- // TFT Display Touch Panel type - PAY ATTENTION TO THIS // -------------------------------------------------------------------------------------- #define TOUCH_PANEL_TYPE 2 // 1= Type 1 (Touch Panel connections at Top Left), 2= Type 2 (Touch Panel connections at Bottom Left) // -------------------------------------------------------------------------------------- // Debug helper - Prints debug messages to serial monitor // -------------------------------------------------------------------------------------- //#define PRINT_DEBUG_WIFI //#define PRINT_DEBUG_NTP //#define PRINT_DEBUG_RX_MESSAGES //#define PRINT_DEBUG_WIFI_MESSAGES //#define PRINT_DEBUG_DS_FORECAST // --------------------------------------------------------------------------------------------------- // End of user configurable options // There is nothing to edit below this line // --------------------------------------------------------------------------------------------------- #ifdef pt_PT #include "_lang/pt_PT_UTF8.h" #endif #ifdef en_GB #include "_lang/en_GB_UTF8.h" #endif #ifdef fr_FR #include "_lang/fr_FR_UTF8.h" #endif #ifdef de_DE #include "_lang/de_DE_UTF8.h" #endif #ifdef es_ES #include "_lang/es_ES_UTF8.h" #endif #ifdef cs_CZ #include "_lang/cs_CZ_UTF8.h" #endif #ifdef nl_NL #include "_lang/nl_NL_UTF8.h" #endif #ifdef it_IT #include "_lang/it_IT_UTF8.h" #endif #ifdef pl_PL #include "_lang/pl_PL_UTF8.h" #endif