Rule Examples/en: различия между версиями
Matveevrj (обсуждение | вклад) (Новая страница: «The full contents of the file with the rules:») |
Matveevrj (обсуждение | вклад) (Новая страница: «A few examples of system rules are below.») |
||
Строка 926: | Строка 926: | ||
== Complex rules with schedules == | == Complex rules with schedules == | ||
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. | |||
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. | |||
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. | |||
<div lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |