Translations:Rule Examples/52/ru: различия между версиями
FuzzyBot (обсуждение | вклад) (Импортирована новая версия из внешнего источника) |
(нет различий)
|
Версия 20:26, 21 сентября 2022
// time point marking the end of the interval
var date_end = new Date(date); date_end.setHours(17); date_end.setMinutes(10); // if time is between 09:30 and 17:10 UTC if ((date > date_start) && (date < date_end)) { if (newValue) { dev["wb-gpio"]["EXT1_R3A1"] = 1; if (motion_timer_1_id) { clearTimeout(motion_timer_1_id); } motion_timer_1_id = setTimeout(function () { dev["wb-gpio"]["EXT1_R3A1"] = 0; motion_timer_1_id = null; }, motion_timer_1_timeout_ms); } } }
}); </syntaxhighlight>