Widget Weather/en: различия между версиями

Материал из SmartPlayer
Нет описания правки
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 2: Строка 2:
== Description ==  
== Description ==  
A widget for displaying weather information.
A widget for displaying weather information.
== Full-Screen Widget == Two display modes are supported:
== Full-Screen Widget ==  
Two display modes are supported:
* Weather for one day  
* Weather for one day  
[[File:Файл:Weather daily ru.png.png|400px]]
[[Файл:Weather daily ru.png|400px]]
* Weather for the week  
* Weather for the week  
[[File:Weather weekly ru.png|400px]]
[[File:Weather weekly ru.png|400px]]
Строка 26: Строка 27:


== Settings ==  
== Settings ==  
[[File:adaptive config ru.png|800px]]
[[File:Weather adaptive config ru.png|800px]]
# Language Selection
# Language Selection
## Russian
## Russian
Строка 47: Строка 48:
To check access, you need to connect a computer to the internal network and run the following command in the terminal: ''curl https://api.openweathermap.org/''. You should receive a response from the service, which will return data (any data is sufficient), the main thing is that the connection is not dropped due to timeout/forbidden (depends on the specific restricted network settings).
To check access, you need to connect a computer to the internal network and run the following command in the terminal: ''curl https://api.openweathermap.org/''. You should receive a response from the service, which will return data (any data is sufficient), the main thing is that the connection is not dropped due to timeout/forbidden (depends on the specific restricted network settings).
You may need to obtain an API key from api.openweathermap.org and provide it in the widget settings in the SmartPlayer personal account.
You may need to obtain an API key from api.openweathermap.org and provide it in the widget settings in the SmartPlayer personal account.
[[File:from 2024-07-10 14-03-40.png|mini|center]]
[[File:Screenshot from 2024-07-10 14-03-40.png|mini|center]]
''By default, a key provided by SmartPlayer is used (which may stop working for reasons beyond our control).''
''By default, a key provided by SmartPlayer is used (which may stop working for reasons beyond our control).''

Текущая версия от 12:46, 28 августа 2024

Другие языки:

Description

A widget for displaying weather information.

Full-Screen Widget

Two display modes are supported:

  • Weather for one day

  • Weather for the week

Settings

  1. Language Selection
    1. Russian
    2. English
  2. Period
    1. Day
    2. Week
  3. City Name - enter in English, supports auto-complete/suggestion display
  4. API Key - the key for accessing the service, provided by a SmartPlayer representative

After making changes, you need to press the save button.

Embedded Widget

The widget can be displayed either in full screen or as part of the screen within a complex playlist, as it supports adaptive layout. The widget supports the selection of any number of cities for display. You can add the display of the current time in a city and change the theme (background color, text color, text size).

Settings

  1. Language Selection
    1. Russian
    2. English
    3. Spanish
    4. Portuguese
  2. Use Adaptive Layout - enable/disable adaptive layout
  3. Display Time - enable/disable time display in the selected city (depends on the selected time zone)
  4. Widget Background Color - allows you to choose the background color for the widget
  5. Widget Font Color - allows you to choose the font color for the widget
  6. City Font Size - allows you to choose the font size for displaying the city name
  7. Temperature Font Size - allows you to choose the font size for displaying the current temperature
  8. City Name - the displayed city name
  9. City Name for Weather Server (specified in Latin alphabet) - the city name for the weather server request (specified in English)
  10. Time Zone Relative to UTC Format - the city's time zone in UTC format for displaying the time
  11. Display Group - show or hide the current group (city)

Operation in a Restricted Network

This widget retrieves data from https://api.openweathermap.org/. Therefore, if the widget is launched on a network with restricted access to external resources, you need to allow access to the domain name api.openweathermap.org on port 443 (default for HTTPS). How to check if access to the resource is available from a restricted network
To check access, you need to connect a computer to the internal network and run the following command in the terminal: curl https://api.openweathermap.org/. You should receive a response from the service, which will return data (any data is sufficient), the main thing is that the connection is not dropped due to timeout/forbidden (depends on the specific restricted network settings). You may need to obtain an API key from api.openweathermap.org and provide it in the widget settings in the SmartPlayer personal account.

mini
mini

By default, a key provided by SmartPlayer is used (which may stop working for reasons beyond our control).