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

(Новая страница: «// time point marking the beginning of the interval // i.e. "today, at HH:MM". All dates are in UTC! var date_start = new Date(date); date_start.setHours(9); date_start.setMinutes(30);»)
(Новая страница: «In addition, the rule turns off the engines after a specified time after being turned on.»)
Строка 156: Строка 156:
The rule ensures that both relays are not turned on at the same time.
The rule ensures that both relays are not turned on at the same time.


<div lang="ru" dir="ltr" class="mw-content-ltr">
In addition, the rule turns off the engines after a specified time after being turned on.
Кроме этого, правило отключает двигатели спустя заданное время после включения.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="ecmascript">
(function() { //don't touch this line
(function() { //don't touch this line
Строка 168: Строка 165:
   var relay_up_device = "lc103_4";
   var relay_up_device = "lc103_4";
   var relay_up_control = "Relay 1";
   var relay_up_control = "Relay 1";
</div>


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   <div lang="ru" dir="ltr" class="mw-content-ltr">