Движок правил wb-rules/en: различия между версиями

Новая страница: «Not cron-rules are used for schedules, but the libschedule. The libschedule enables and disables rules, which, unlike cron rules, are executed continuously when…»
(Новая страница: «Object - grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the schedule of the store.»)
(Новая страница: «Not cron-rules are used for schedules, but the libschedule. The libschedule enables and disables rules, which, unlike cron rules, are executed continuously when…»)
Строка 709: Строка 709:
Object - grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the schedule of the store.
Object - grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the schedule of the store.


Для расписаний используются не cron-правила, а обёртка над ними. Обёртка включает и выключает правила, которые, в отличие от cron-правил, выполняются постоянно, будучи включенными.
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.


Например, мы хотим, чтобы освещение было включено с 10 до 17ч. Обёртка (libschedule) будет выполнять правило "включить освещение" раз в минуту с 10 утра до 17 вечера.
Например, мы хотим, чтобы освещение было включено с 10 до 17ч. Обёртка (libschedule) будет выполнять правило "включить освещение" раз в минуту с 10 утра до 17 вечера.
12 063

правки