Skip to content

Weather

project-owner edited this page Dec 18, 2021 · 15 revisions

The Weather screensaver displays today's weather and 6 days weather forecast. This functionality is based on OpenWeather web service. It allows to get weather conditions for any location in the world.

The following steps should be completed for the screensaver configuration.

Get the latitude and longitude of the city which you would like to use in the Weather Screensaver. The easiest way to get the city coordinates is to use the Google Maps web site. Type the location details in the search field. Here is the example for San Francisco:

w-1

Click the right mouse button to see the popup menu with location coordinates on the top. The first number is the latitude and the second number is the longitude.

w-2

Click on the coordinates to copy them to the clipboard.

Open the Weather configuration page in the Peppy Player Configuration Web UI and insert those numbers from the map. The first is latitude, the second longitude.

w-3

Enter the city name which will be displayed in the screensaver. Also define the temperature unit: F - Fahrenheit, C - Celsius. Reboot the player.

The labels will be displayed using the current player language. The timestamp in the upper-right corner indicates the time when the weather conditions have been fetched from the OpenWeather service. This is not the current time. The minimum fetch interval is 10 minutes (can be different for user defined API Key).

w-4

Configuration Parameters

Here is the description of all configuration parameters:

  • city - here you can specify town/city name as it will appear in UI e.g. München.
  • latitude - location latitude
  • longitude - location longitude
  • unit - this parameter can be used to define temperature unit. It can be either 'C' for Celsius or 'F' for Fahrenheit.
  • update.period - update period can be defined in this parameter in seconds (default - 10 seconds). This period defines how often the screen with today's weather will be replaced by the 6 days forecast screen.
  • API Key - user-defined API Key. The key can be acquired from the OpenWeather Web site. The user-defined key allows to set arbitrary Weather Update Period. The default key supplied with player updates weather only when the screensaver was stopped/started.
  • Weather Update Period - this parameter is valid only in case of user-defined API Key. It defines in seconds how often the weather will be fetched from the OpenWeather web site and displayed in UI.

<<Previous | Next>>

Contents

Clone this wiki locally