Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pro2_compact_receiver [2020/04/10 01:45] – [Custom Box for the WeatherDuino Pro2 Compact receiver] werk_agpro2_compact_receiver [2020/05/03 04:08] (current) – [Settings for the 4 Day Forecast] werk_ag
Line 27: Line 27:
   * Integrated Atmospheric Pressure and Temperature / Humidity sensors (latest Bosch BME280).   * Integrated Atmospheric Pressure and Temperature / Humidity sensors (latest Bosch BME280).
   * Wi-Fi capability (amongst other things, this allows direct upload to WU without the need to have a permanent connection to a PC or Raspberry Pi - 'Stand alone' Mode).   * Wi-Fi capability (amongst other things, this allows direct upload to WU without the need to have a permanent connection to a PC or Raspberry Pi - 'Stand alone' Mode).
-  * Weather forecast for the next four days.+  * Weather forecast for the next twelve hours.
   * Broadcast data to any number of 4Pro Wireless Display units by Wi-Fi, which is faster than RF, and allows better reception of RF data packets from the Transmitter units.   * Broadcast data to any number of 4Pro Wireless Display units by Wi-Fi, which is faster than RF, and allows better reception of RF data packets from the Transmitter units.
   * Sync system time with NTP servers.   * Sync system time with NTP servers.
Line 54: Line 54:
  
   * SSID and password of your Wi-Fi access point   * SSID and password of your Wi-Fi access point
-  * location to be used for the four day forecast+  * location to be used for the OpenWeather forecast
   * other configurable options (see below)   * other configurable options (see below)
  
Line 84: Line 84:
 const char* OTA_DEVICE_ID  = "Pro2C-RX";   // Define a unique ID for each Pro2 Compact RX (used to identify unit for OTA upload) const char* OTA_DEVICE_ID  = "Pro2C-RX";   // Define a unique ID for each Pro2 Compact RX (used to identify unit for OTA upload)
 const uint16_t OTA_port    = 8266;         // This is the default port used for OTA. Once set, don't change. const uint16_t OTA_port    = 8266;         // This is the default port used for OTA. Once set, don't change.
 +
  
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-//   Dark Sky API used for 4 Days Forecast+//   OpenWeather API used for 12 Hours Forecast
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-// Sign up for an account at Dark Sky, change x'to your API key +// Sign up for an account at Open Weather to get your free API Key. 
-const String api_key = "xxxxxxxxxxxx";+const char* OpenWeather_api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
  
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-//   WU Credentials+//   WU Credentials 
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-#define WUNDERGROUND_STATION_ID "xxxxxxxxxxxx        // WU Station ID +const char* WU_STATION_ID = "XXXXXXXXX"        // WU Station ID 
-#define WUNDERGROUND_PWD        "xxxxxxxxxxxx        // WU Station Key (It's more secure use Station Key than your WU account passw) +const char* WU_PWD        "XXXXXXXXX"        // WU Station Key
-//#define WUNDERGROUND_PWD      "xxxxxxxxxxxx"         // Weather Underground password+
 </code> </code>
  
Line 106: Line 107:
  
  
-===== Settings for the 4 Day Forecast =====+===== Settings for the 12 Hours Forecast =====
  
-In order to use the 4 Day Forecast, you need to have a Dark Sky API key. If you don't have one, get it for free here: https://darksky.net/dev +In order to use the 12 Hours Forecast, you need to have a OpenWeather API key. If you don't have one, get it for free here: [[https://openweathermap.org/api|https://openweathermap.org/api]]\\ 
-\\+Choose the free 5 day / 3 hour Forecast.\\
 Once you have your API key, insert it in the Credentials.h file: Once you have your API key, insert it in the Credentials.h file:
  
 <code> <code>
 +
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-//   Dark Sky API used for 4 Days Forecast+//   OpenWeather API used for 12 Hours Forecast
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-// Sign up for an account at Dark Sky, change x'to your API key +// Sign up for an account at Open Weather to get your free API Key. 
-const String api_key = "xxxxxxxxxxxx";+const char* OpenWeather_api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
 </code> </code>
  
-There is no need to set anything else to get the correct 4 days forecast for your location.\\+There is no need to set anything else to get the correct twelve hours forecast for your location.\\
 Just make sure you have correctly placed your location on the Config_Option.h\\ Just make sure you have correctly placed your location on the Config_Option.h\\
  
Line 134: Line 137:
 //   LONGITUDE: 180.000 to -180.000 (negative for West)  //   LONGITUDE: 180.000 to -180.000 (negative for West) 
 // -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
-#define LATITUDE      39.22350    // Put here your Station Latitude (up to 5 decimal places, don't use less than 4 decimal places) +#define LATITUDE      36.22350    // Put here your Station Latitude (up to 5 decimal places, don't use less than 4 decimal places) 
-#define LONGITUDE     -8.99650    // Put here your Station Longitude (up to 5 decimal places, don't use less than 4 decimal places)+#define LONGITUDE     -7.99650    // Put here your Station Longitude (up to 5 decimal places, don't use less than 4 decimal places)
 #define ELEVATION     124         // Put here your Station height above sea level in Meters (no decimal places) #define ELEVATION     124         // Put here your Station height above sea level in Meters (no decimal places)
 </code> </code>
Print/export
QR Code
QR Code pro2_compact_receiver (generated for current page)