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

Новая страница: «A few examples of system rules are below.»
(Новая страница: «The full contents of the file with the rules:»)
(Новая страница: «A few examples of system rules are below.»)
Строка 926: Строка 926:
== Complex rules with schedules ==
== Complex rules with schedules ==


<div lang="ru" dir="ltr" class="mw-content-ltr">
The object is a grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the store's work schedule.
Объект - продуктовый магазин. Различные системы магазина управляются по обратной связи от датчиков температуры и с учётом расписания работы магазина.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
Not cron-rules are used for schedules, but  the libschedule. The libschedule enables and disables rules, which, unlike cron rules, are executed continuously when enabled.
Для расписаний используются не cron-правила, а обёртка над ними. Обёртка включает и выключает правила, которые, в отличие от cron-правил, выполняются постоянно, будучи включенными.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
For example, we want the lighting to be on from 10 to 17h. The libschedule will follow the "turn on the lights" rule once a minute from 10 am to 17 PM.
Например, мы хотим, чтобы освещение было включено с 10 до 17ч. Обёртка (libschedule) будет выполнять правило "включить освещение" раз в минуту с 10 утра до 17 вечера.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<div lang="ru" dir="ltr" class="mw-content-ltr">
translator, wb_editors
4293

правки