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

Новая страница: «The file can be edited with vim, nano, or mcedit in an ssh session on the device, or it can be downloaded with SCP.»
(Новая страница: «setTimeout(setup_port, 1000); // set setup_port() running 1 second after starting.»)
Метки: правка с мобильного устройства правка из мобильной версии
(Новая страница: «The file can be edited with vim, nano, or mcedit in an ssh session on the device, or it can be downloaded with SCP.»)
Строка 1261: Строка 1261:
   // ==================  The cash register area =================
   // ==================  The cash register area =================


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   // in the checkout area during working hours, the temperature is maintained by air conditioners (position controller)
// в кассовой зоне в рабочее время температура поддерживается кондиционерами (позиционный регулятор)
</div>


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   defineRule("countersACOn", {
defineRule("countersACOn", {
     when: function() {
     when: function() {
       return (dev._schedules.working_hours_15m) && (countersTemperature < 17.7);
       return (dev._schedules.working_hours_15m) && (countersTemperature < 17.7);
Строка 1272: Строка 1269:
     then: function (newValue, devName, cellName) {
     then: function (newValue, devName, cellName) {
       log("countersACOn  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       log("countersACOn  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       dev["wb-mir_75/Play from ROM7"] = true; // кондиционер кассовой зоны на нагрев
       dev["wb-mir_75/Play from ROM7"] = true; // air conditioning cash area for heating
     }
     }
   });
   });
</div>


   <div lang="ru" dir="ltr" class="mw-content-ltr">
   // after working hours, the air conditioning is off
// в нерабочее время кондиционер выключен
   defineRule("countersACOff", {
   defineRule("countersACOff", {
     when: function() {
     when: function() {
Строка 1285: Строка 1280:
     then: function (newValue, devName, cellName) {
     then: function (newValue, devName, cellName) {
       log("countersACOff  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       log("countersACOff  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       dev["wb-mir_75/Play from ROM2"] = true; // кондиционер кассовой зоны выключить
       dev["wb-mir_75/Play from ROM2"] = true; // shut down air conditioning cash area
     }
     }
   });
   });
</div>


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

правки