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

Новая страница: «There should be no error messages in the log (exit via control-c)»
(Новая страница: «[https://github.com/contactless/wb-rules-system/blob/master/rules/power_status.js Rule] creates a virtual device that reports the current power status. Two ADC channels are used as input data: battery voltage measurement and input voltage measurement.»)
(Новая страница: «There should be no error messages in the log (exit via control-c)»)
Строка 934: Строка 934:
This means that even if the controller is running intermittently and missed the transition time between schedules (10 am), the controller will still turn on the lights at the first opportunity.
This means that even if the controller is running intermittently and missed the transition time between schedules (10 am), the controller will still turn on the lights at the first opportunity.


<div lang="ru" dir="ltr" class="mw-content-ltr">
lib_schedules.js:
lib_schedules.js:
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="ecmascript">
global.__proto__.Schedules = {};
global.__proto__.Schedules = {};
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
(function(Schedules) { // closing
(function(Schedules) { // замыкание
</div>


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

правок