From OpenSCADAWiki
Jump to: navigation, search

Enter a message name below to show all available translations.

Message

Found 2 translations.

NameCurrent message text
 h English (en)[[File:LibsMainWeatherCfg.png|right|Configuration.]]
{{CntHdr|Configuring and using}}
:1. For this template create and run a [[Special:MyLanguage/Modules/LogicLev|logical controller object]] or use any available with the required scheduling properties.
:2. Create a [[Special:MyLanguage/Modules/LogicLev|logical parameter object]] and select this template for it. Enable the parameter.
:3. In the tab "Template configuration" of the logical parameter object you need to set:
:* ''Scheduling at CRON of current update'' — to value of need scheduling for current data acquiring in the [[Special:MyLanguage/Documents/User_API#CRON|CRON format]], at empty the acquiring will be performed with period of execution the controller object;
:* ''Scheduling at CRON of forecast update'' — to value of need scheduling for forecast data acquiring in the [[Special:MyLanguage/Documents/User_API#CRON|CRON format]], at empty the acquiring will be performed with period of execution the controller object.
:4. RESULT: Starting the controller object (where this parameter was created) and when it was not started, we should get the weather data in the attribute ''Current (current)'' and ''Forecast (forecast)'' and after setting your city code in the corresponded attribute. City code you can obtain from the [https://openweathermap.org/ official site] in the URL after searching your city in the site form.
 h Ukrainian (uk)[[File:LibsMainWeatherCfg_uk.png|right|Конфігурація.]]
{{CntHdr|Конфігурація та використання}}
:1. Для цього шаблону створити та запустити [[Special:MyLanguage/Modules/LogicLev|об'єкт логічного контролеру]] або використати будь який наявний з потрібними властивостями планування.
:2. Створити [[Special:MyLanguage/Modules/LogicLev|об'єкт логічного параметру]] та обрати цей шаблон для нього. Ввімкнути параметр.
:3. У вкладці "Конфігурація шаблону" об'єкту логічного параметру треба встановити:
:* ''Планування за CRON оновлення поточних даних'' — у значення необхідного планування для отримання поточних даних у [[Special:MyLanguage/Documents/User_API#CRON|форматі CRON]], за порожнього отримання здійснюватиметься із періодом виконання об'єкту контролеру;
:* ''Планування за CRON оновлення прогнозованих даних'' — у значення необхідного планування для отримання прогнозованих даних у [[Special:MyLanguage/Documents/User_API#CRON|форматі CRON]], за порожнього отримання здійснюватиметься із періодом виконання об'єкту контролеру.
:4. РЕЗУЛЬТАТ: Запустивши об'єкт контролеру (де створено цей параметр) та якщо він не був запущений, маємо отримати у атрибуті параметру ''Поточне (current)'' і ''Прогноз (forecast)'' та після встановлення кода вашого міста у відповідному атрибуті. Код міста ви можете отримати із [https://openweathermap.org/ офіційного сайту] у адресі (URL) після пошуку вашого міста у формі сайту.