Translations:Rule Examples/50/en

Материал из Wiren Board

<syntaxhighlight lang="ecmascript"> var motion_timer_1_timeout_ms = 5 * 1000; var motion_timer_1_id = null;

defineRule("motion_detector_1", {

 whenChanged: "wb-gpio/A1_IN",
 then: function (newValue, devName, cellName) {
   var date = new Date();