User Manual for the Clock Widget with Two Display Modes

Материал из SmartPlayer
Версия от 12:14, 31 марта 2025; N.Bloshkin (обсуждение | вклад) (Новая страница: «== '''Widget Description''' == This widget provides the user with the ability to run a countdown and display it on devices when needed. Below is the description of the widget setup and operation principles. == '''Adding Widget to Personal Account''' == To add this widget to the personal account, the user needs to go to the "Widget Gallery" section. File:Галерея_виджетов лк.png|thumb|center| Example of displaying the "Widget Gallery" sectio...»)

Widget Description

This widget provides the user with the ability to run a countdown and display it on devices when needed. Below is the description of the widget setup and operation principles.

Adding Widget to Personal Account

To add this widget to the personal account, the user needs to go to the "Widget Gallery" section.

Example of displaying the "Widget Gallery" section in personal account

In this section, the user must find this widget and load it.

Example of widget display in "Widget Gallery" section

After completing the widget loading, it will be displayed in the selected folder of the "Content" section of the personal account.

<templatestyles src="Note/styles.css" />

An alternative way to add the widget to the personal account is to add it as a ".zip" archive to the "Content" section of the personal account.

Widget Configuration

To configure this widget, the user needs to double-click the widget icon in the "Content" section. After this, the widget's main page will open for the user.

Example of displaying widget's main page

To access widget settings, the user needs to hover the cursor over the settings icon in the form of a gear. Clicking on it will open the widget parameters settings page for the user.

Example of displaying settings icon in the form of a gear

Widget Configuration Parameters

After opening the widget settings page, the user needs to configure the following parameters for widget operation:

  • Language selection - allows the user to select one of available languages from the list: Russian, English, Portuguese, Spanish, Kazakh
  • Widget background - allows the user to select the background on which the clock will be displayed. Color can be specified using HEX code can be found online
  • Clock type - allows the user to select clock display option: analog, digital
  • Digital clock color - allows the user to select the color of displayed symbols in digital clock option. Color can be specified using HEX code can be found online
  • Digital clock shadow color - allows the user to select the color of used shadow for digital clocks. Color can be specified using HEX code can be found online
  • Analog clock color - allows the user to select color for analog clock display. Color can be specified using HEX code can be found online
  • Analog clock seconds hand color - allows the user to select display color of seconds hand for analog clocks. Color can be specified using HEX code can be found online
Example of displaying widget parameters list

Загрузка и скачивание настроек

В процессе взаимодействия с настройками виджета пользователь может загрузить и выгрузить настройки виджета. Каждое из указанных действий можно сделать по отдельным иконкам в интерфейсе виджета. Иконки расположены в виджете снизу по центру.

Пример отображения иконок загрузить и выгрузить настройки виджета

Завершив все настройки параметров виджета пользователю необходимо сначала нажать на кнопку внизу справа "Применить настройки". Если указанные настройки не соответствуют требованиями пользователя, он может их сбросить до настроек по умолчанию нажав на расположенную по соседству кнопку "Сбросить".

Пример отображения кнопок "Применить настройки" и "Сбросить" в виджете

После нажатия на кнопку применить настройку пользователю необходимо нажать на кнопку "Сохранить" расположенную внизу по центру экрана.

Пример отображения кнопки "Сохранить" в виджете

Работа в ограниченной сети

Данный виджет получает данные с нескольких ресурсов:

  • https://api.sypexgeo.net/ - используется для получения геолокации (города) по IP адресу устройства, где загружен виджет
  • https://api-maps.yandex.ru - данные по пробкам с Яндекс карт

Для проверки доступа необходимо подключить компьютер к внутренней сети и выполнить команду в терминал:
curl https://api-maps.yandex.ru и должны получить ответ от сервиса, и он вернет данные (могут быть любые). Главное, чтобы соединение не отключалось по timeoout/forbidden (зависит от настроек конкретной ограниченной сети).

Добавление настроенного виджета в трансляцию

Чтобы полностью ознакомиться с работой данной функциональности, пользователю необходимо запустить трансляцию с расписанием и добавить в качестве контента данный виджет. Чтобы ознакомиться с описанными ранее шагами по созданию трансляции и расписания рекомендуется просмотреть следующие статьи из Wikipedia:

Видеоинструкция

Настройка виджета часов с двумя вариантами отображения

Дополнительная информация

Если данная статья не помогает использовать функционал по назначению или после ее прочтения остаются вопросы можно озвучить данные вопросы в разделе "Обсуждения" вверху страницы.

Пример отображения вкладки "Обсуждения" на wiki-странице

Также дополнительную информацию можно узнать на странице Как взаимодействовать пользователю с разделом "Обсуждения"