Инструкция по работе с виджетом «Цены для АЗС»/en: различия между версиями
Новая страница: «Instruction for Working with the “Fuel Prices” Widget» |
Новая страница: «== '''Situation Description''' == This widget allows users to display information about the cost of specific fuel types on devices. The instructions below explain how the widget works and how to configure it within the SmartPlayer platform. == '''Server Logic''' == This widget receives all data directly from the customer's server. After receiving it, the data is processed and displayed in the broadcast through the SmartPlayer personal account. == '''Adding t...» |
||
| Строка 1: | Строка 1: | ||
== '''Situation Description''' == | |||
== ''' | This widget allows users to display information about the cost of specific fuel types on devices. The instructions below explain how the widget works and how to configure it within the SmartPlayer platform. | ||
== '''Server Logic''' == | |||
== ''' | This widget receives all data directly from the customer's server. After receiving it, the data is processed and displayed in the broadcast through the SmartPlayer personal account. | ||
== '''Adding the Widget to the Personal Account''' == | |||
== ''' | To add this widget to the personal account, the user must request a zip archive with the content from a technical support specialist. | ||
[[File:Виджет_лукойл.png|thumb|center| Example of the widget in .zip format|800px]] | |||
[[File:Виджет_лукойл.png|thumb|center| | After that, the user must log into their personal account and go to the “Content” section. | ||
[[File:Раздел_контент_личного_кабиента.png|thumb|center| Example of the “Content” section in the personal account |800px]] | |||
[[File:Раздел_контент_личного_кабиента.png|thumb|center| | In the “Content” section, drag the widget from local storage into the personal account. Once the user uploads the widget, it will appear in the content list. | ||
[[File:Цены_на_топливо.png|thumb|center| Example of the widget being added to the SmartPlayer personal account|800px]] | |||
[[File:Цены_на_топливо.png|thumb|center| | == '''Widget Configuration''' == | ||
== ''' | After transferring the widget, the user must double-click the widget icon to access the main page for initial configuration. | ||
[[File:Главная_страница_топливо.png|thumb|center| Example of the widget's main page|800px]] | |||
[[File:Главная_страница_топливо.png|thumb|center| | On the widget’s main page, two buttons are available: | ||
# “API” button. | |||
# | # “Settings” button. | ||
# | [[File:Кнопки_настроек_топливо.png|thumb|center| Example of the icon for accessing widget settings|800px]] | ||
[[File:Кнопки_настроек_топливо.png|thumb|center| | == '''“API” Button''' == | ||
== ''' | Clicking the “API” button opens a modal window with information about the resources required for stable widget performance. The section also contains a general explanation of its purpose and principles of operation. | ||
[[File:Данные_в_модальном_окне.png|thumb|center| Example of the modal window content |800px]] | |||
[[File:Данные_в_модальном_окне.png|thumb|center| | The main parameters for the resources include: | ||
* name — name of the resource; | |||
* | * method — HTTP method used (GET); | ||
* | * requires authorization — whether authorization is required; | ||
* | * server address — URL of the server providing the data; | ||
* | * API address — displays the JSON file name containing API and price information; | ||
* | * “Check connection” button — checks the connection and displays a numeric status. | ||
* | This window can be closed using the standard icon in the upper-right corner. | ||
== '''“Settings” Button''' == | |||
== ''' | After opening the settings page, the user will see two blocks of parameters: | ||
# General widget settings. | |||
# | # Animation settings for the widget. | ||
# | [[File:Настройки_виджета_топлива.png|thumb|center| Example showing both parameter blocks for widget setup|800px]] | ||
[[File:Настройки_виджета_топлива.png|thumb|center| | === '''General Widget Settings''' === | ||
=== ''' | The following parameters belong to general settings: | ||
* language selection — choose from: Russian, English, Spanish, Portuguese; | |||
* | * widget rotation — select rotation angle (90 or 270 degrees); | ||
* | * proxy server address — enter the proxy server URL; | ||
* | * “Use proxy” checkbox — enables/disables use of a proxy; | ||
* | * for which diesel positions to show "ekto-winter" — input values (starting from 0, separated by ","); | ||
* | * fuel type font size — specify size in pixels or adjust via slider; | ||
* | * icon size — specify size in pixels or use the slider; | ||
* | * price font size — specify in pixels or adjust via slider; | ||
* | * line spacing — specify in pixels; | ||
* | * font color — select custom color; | ||
* | * font weight — choose from: thin, normal, semi-bold, bold; | ||
* | * “Format values without trailing zero” checkbox — enable/disable zero removal; | ||
* | * “Duplicate prices” checkbox — enable/disable price duplication; | ||
* | * “Filter identical values” checkbox — enable/disable filtering; | ||
* | * icon color — choose black or white; | ||
* | * full API path for prices — enter full URL with identifier (last numeric value); | ||
* | {{Note|[[File:Правильный_идентификатор.png|thumb|center| Example of correct identifier display|800px]]|warn}} | ||
{{Note|[[File:Правильный_идентификатор.png|thumb|center| | * data refresh interval — specify interval in seconds; | ||
* | * use client app storage — enable/disable usage (Windows/Linux/Raspberry only); | ||
* | * video — select background video from personal account; | ||
* | * video identifier — cannot be edited, is auto-fetched from the selected video. | ||
* | [[File:Общие_настройки_топлива.png|thumb|center| Example of the general widget settings list|800px]] | ||
[[File:Общие_настройки_топлива.png|thumb|center| | === '''Widget Animation Settings''' === | ||
=== ''' | Animation settings appear in a separate block on the right. Animations are split into steps (max 6). Each step includes: | ||
* animation direction — select from: left-to-right, right-to-left, bottom-up, top-down; | |||
* | * animation speed — set duration in seconds; | ||
* | * animation delay — set delay time in seconds. | ||
* | [[File:Блок_настроек_анимации.png|thumb|center| Example of animation settings block|800px]] | ||
[[File:Блок_настроек_анимации.png|thumb|center| | == '''Finalizing Widget Setup''' == | ||
== ''' | Once configuration is complete, the user must click “Apply Settings” at the bottom and then “Save” just below. | ||
[[File:Завершение_настройки_виджета_топлива.png|thumb|center| Example showing buttons to finalize widget settings|800px]] | |||
[[File:Завершение_настройки_виджета_топлива.png|thumb|center| | == '''Upload and Download Settings''' == | ||
== ''' | During configuration, the user can upload or download widget settings via dedicated icons located at the bottom center of the widget. | ||
[[File:Скачать_и_загрузить_настройки_топлива.png|thumb|center| Example of upload/download buttons|800px]] | |||
[[File:Скачать_и_загрузить_настройки_топлива.png|thumb|center| | == '''Adding the Configured Widget to a Broadcast''' == | ||
== ''' | To create a broadcast with this widget, go to the “Broadcast” section and find the “Create” category. | ||
[[File:Создание_транлсяций.png|thumb|center| Example of the “Broadcast” section and “Create” category in the personal account|800px]] | |||
[[File:Создание_транлсяций.png|thumb|center| | Click “Add zone” and configure the zone dimensions — width and height in pixels — then click “Save”. | ||
{{Note|If the widget is used on a double-sided gas station screen, specify the total width for both screens.|warn}} | |||
{{Note| | [[File:Параметры_для_настрйоки.png|thumb|center| Example of zone settings|800px]] | ||
[[File:Параметры_для_настрйоки.png|thumb|center| | Select the desired content (e.g. video) and add it to the zone, then also add the widget. A playlist for the zone will appear at the bottom. | ||
[[File:Контент_в_плейлисте.png|thumb|center| Example showing content in the playlist|800px]] | |||
[[File:Контент_в_плейлисте.png|thumb|center| | Align the widget and content to start at the same time. | ||
[[File:Выравнивание старта.png|thumb|center| Example showing start alignment|800px]] | |||
[[File:Выравнивание старта.png|thumb|center| | Then, click the content to copy its duration and paste it into the widget’s duration parameter to match playback. | ||
[[File:Настройка_продолжительности.png|thumb|center| Example of duration parameter display|800px]] | |||
[[File:Настройка_продолжительности.png|thumb|center| | == '''Adding the Configured Widget to a Scheduled Broadcast''' == | ||
== ''' | To fully explore this functionality, launch a scheduled broadcast and add the widget as content. To review the earlier setup steps, refer to the following Wiki SmartPlayer articles: | ||
* [[Раздел "Устройства"]] | * [[Раздел "Устройства"]] | ||
* [[Раздел "Контент на устройства"]] | * [[Раздел "Контент на устройства"]] | ||
* [[Раздел "Трансляции"]] | * [[Раздел "Трансляции"]] | ||
* [[Раздел "Расписание"]] | * [[Раздел "Расписание"]] | ||
== ''' | == '''Video Tutorial''' == | ||
[https://vk.com/video-227547238_456239101 | [https://vk.com/video-227547238_456239101 Instruction for Working with the “Fuel Prices” Widget] | ||
== ''' | == '''Additional Information''' == | ||
If this article doesn’t help you use the feature as intended or if you still have questions after reading it, you can ask them in the “Discussions” tab at the top of the page. | |||
[[File:Обсуждение_цены_топлива.png|thumb|center| | [[File:Обсуждение_цены_топлива.png|thumb|center| Example of the “Discussions” tab on the wiki page |800px]] | ||
You can also learn more from the page [[How the User Can Interact with the “Discussions” Section]] | |||
Текущая версия от 10:18, 13 ноября 2025
Situation Description
This widget allows users to display information about the cost of specific fuel types on devices. The instructions below explain how the widget works and how to configure it within the SmartPlayer platform.
Server Logic
This widget receives all data directly from the customer's server. After receiving it, the data is processed and displayed in the broadcast through the SmartPlayer personal account.
Adding the Widget to the Personal Account
To add this widget to the personal account, the user must request a zip archive with the content from a technical support specialist.

After that, the user must log into their personal account and go to the “Content” section.

In the “Content” section, drag the widget from local storage into the personal account. Once the user uploads the widget, it will appear in the content list.

Widget Configuration
After transferring the widget, the user must double-click the widget icon to access the main page for initial configuration.

On the widget’s main page, two buttons are available:
- “API” button.
- “Settings” button.

“API” Button
Clicking the “API” button opens a modal window with information about the resources required for stable widget performance. The section also contains a general explanation of its purpose and principles of operation.

The main parameters for the resources include:
- name — name of the resource;
- method — HTTP method used (GET);
- requires authorization — whether authorization is required;
- server address — URL of the server providing the data;
- API address — displays the JSON file name containing API and price information;
- “Check connection” button — checks the connection and displays a numeric status.
This window can be closed using the standard icon in the upper-right corner.
“Settings” Button
After opening the settings page, the user will see two blocks of parameters:
- General widget settings.
- Animation settings for the widget.

General Widget Settings
The following parameters belong to general settings:
- language selection — choose from: Russian, English, Spanish, Portuguese;
- widget rotation — select rotation angle (90 or 270 degrees);
- proxy server address — enter the proxy server URL;
- “Use proxy” checkbox — enables/disables use of a proxy;
- for which diesel positions to show "ekto-winter" — input values (starting from 0, separated by ",");
- fuel type font size — specify size in pixels or adjust via slider;
- icon size — specify size in pixels or use the slider;
- price font size — specify in pixels or adjust via slider;
- line spacing — specify in pixels;
- font color — select custom color;
- font weight — choose from: thin, normal, semi-bold, bold;
- “Format values without trailing zero” checkbox — enable/disable zero removal;
- “Duplicate prices” checkbox — enable/disable price duplication;
- “Filter identical values” checkbox — enable/disable filtering;
- icon color — choose black or white;
- full API path for prices — enter full URL with identifier (last numeric value);
- data refresh interval — specify interval in seconds;
- use client app storage — enable/disable usage (Windows/Linux/Raspberry only);
- video — select background video from personal account;
- video identifier — cannot be edited, is auto-fetched from the selected video.

Widget Animation Settings
Animation settings appear in a separate block on the right. Animations are split into steps (max 6). Each step includes:
- animation direction — select from: left-to-right, right-to-left, bottom-up, top-down;
- animation speed — set duration in seconds;
- animation delay — set delay time in seconds.

Finalizing Widget Setup
Once configuration is complete, the user must click “Apply Settings” at the bottom and then “Save” just below.

Upload and Download Settings
During configuration, the user can upload or download widget settings via dedicated icons located at the bottom center of the widget.

Adding the Configured Widget to a Broadcast
To create a broadcast with this widget, go to the “Broadcast” section and find the “Create” category.

Click “Add zone” and configure the zone dimensions — width and height in pixels — then click “Save”.

Select the desired content (e.g. video) and add it to the zone, then also add the widget. A playlist for the zone will appear at the bottom.

Align the widget and content to start at the same time.

Then, click the content to copy its duration and paste it into the widget’s duration parameter to match playback.

Adding the Configured Widget to a Scheduled Broadcast
To fully explore this functionality, launch a scheduled broadcast and add the widget as content. To review the earlier setup steps, refer to the following Wiki SmartPlayer articles:
Video Tutorial
Instruction for Working with the “Fuel Prices” Widget
Additional Information
If this article doesn’t help you use the feature as intended or if you still have questions after reading it, you can ask them in the “Discussions” tab at the top of the page.

You can also learn more from the page How the User Can Interact with the “Discussions” Section
