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

Новая страница: «7. Let's describe the rules for turning the switch on and off»
(Новая страница: «The file can be edited with vim, nano, or mcedit in an ssh session on the device, or it can be downloaded with SCP.»)
(Новая страница: «7. Let's describe the rules for turning the switch on and off»)
Строка 1284: Строка 1284:
   });
   });


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   // =============== Vegetable Zone ==============
// =============== Овощная зона ==============
   // Refrigeration of vegetables with air conditioning only when the air temperature is above 18.5C   
   // Охлаждение овощей кондиционером только при температуре воздуха выше 18.5C
</div>  


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   defineRule("acVegOn", {
defineRule("acVegOn", {
     when: function() {
     when: function() {
       return vegetablesTemperature >= 18.5
       return vegetablesTemperature >= 18.5
Строка 1296: Строка 1293:
     then: function (newValue, devName, cellName) {
     then: function (newValue, devName, cellName) {
       log("acVegOn  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       log("acVegOn  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       dev["wb-mir_76/Play from ROM3"] = true; // Охлаждение +18
       dev["wb-mir_76/Play from ROM3"] = true; // Cooling +18
     }
     }
   });
   });
</div>


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   <div lang="ru" dir="ltr" class="mw-content-ltr">
translator, wb_editors
4295

правок