translator, wb_editors
4544
правки
Matveevrj (обсуждение | вклад) (Новая страница: «// 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);») |
Matveevrj (обсуждение | вклад) (Новая страница: «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. | ||
In addition, the rule turns off the engines after a specified time after being turned on. | |||
<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 lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |