История
3 июня 2019
Новая страница: «// supply and exhaust ventilation are forcibly switched off defineRule("ventFrontshopAlwaysOff", { when: cron("@every 1m"), then: function() { de…»
−49
Новая страница: «defineRule("heatersNightOn", { when: function() { return (!dev._schedules.heaters_schedule) && (vegetablesTemperature < 11.3); }, then: function…»
−18
Новая страница: «// position controller works at night defineRule("heatersNightOff", { when: function() { return (!dev._schedules.heaters_schedule) && (vegetablesTempe…»
−53
Новая страница: «defineRule("heatersDayOn", { when: function() { return (dev._schedules.heaters_schedule) && (vegetablesTemperature < 16.7); }, then: function (n…»
−18
Новая страница: «// position controller works daily defineRule("heatersDayOff", { when: function() { return (dev._schedules.heaters_schedule) && (vegetablesTemperature…»
−54
Новая страница: «// ========= Boilers and supply ventilation =========== // feedback by the temperature of the vegetable zone»
−58
Новая страница: «//Display fridges defineRule("powerBrandFridgesOnOff", { when: function() { return dev._schedules.working_hours || true; }, then: function (ne…»
−75
Новая страница: «// the lighting in the freezer showcases via the normally-closed relays (inverted) dev["wb-mrm2-old_60/Relay 1"] = !on; dev["wb-mrm2-old_61/Relay 1"]…»
−39
Новая страница: «// Freezer showcase illumination defineRule("lightingCoolingshelfsOnOff", { when: function() { return dev._schedules.frontshop_lighting || true; }…»
−23
Новая страница: «// backstoreroom ventilation defineRule("ventBackstoreOnOff", { when: function() { return dev._schedules.ext_working_hours_15m || true; }, th…»
−96
Новая страница: «// sales area illumination defineRule("lightingFrontshopOnOff", { when: function() { return dev._schedules.frontshop_lighting || true; }, the…»
−53
Новая страница: «// signboard and facade illumination defineRule("signboardOnOff", { when: function() { return dev._schedules.signboard || true; }, then: funct…»
−20
Новая страница: «An example of a rule using Schedules: <syntaxhighlight lang="ecmascript"> (function() { // closing»
−43
Новая страница: «(function(Schedules) { // closing»
−11
Новая страница: «This means that even if the controller works intermittently and missed the transition time between schedules (10 am), the controller will still turn on the lighti…»
−145
Нет описания правки
−3
Новая страница: «For example, we want the lighting to be on from 10 to 17h. The libschedule will follow the rule of "turn on the lights" once a minute from 10 am to 17 PM.»
−125
Новая страница: «Not cron-rules are used for schedules, but the libschedule. The libschedule enables and disables rules, which, unlike cron rules, are executed continuously when…»
−151
Новая страница: «Object - grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the schedule of the store.»
−128
Нет описания правки
−5
Новая страница: «=== Complex rules with schedules ===»
−29
Новая страница: «More detailed and with example - in the topic on the technical support [https://support.wirenboard.com/t/kak-na-wb5-wb6-sozdat-pole-dlya-vvoda-ustavok-i-peredat-z…»
−32
Новая страница: «To enable the user to enter exact parameter values (setpoints) from the interface, you can use the [https://wirenboard.com/wiki/index.php/%D0%A1%D0%BE%D0%B7%D0%B4…»
−132
Новая страница: «=== User fields in the interface ===»
−37
Новая страница: «setTimeout(setup_port, 1000); // set setup_port() running 1 second after starting.»
−77
Новая страница: «Full contents of the rules file:»
−35
Новая страница: «8. Putting it all together»
−13
Новая страница: «Note the double shielding.»
−55
Новая страница: «7. Let's describe the rules for switching on and off the switch»
−42
Новая страница: «6. Add a function to configure the port.»
−44
Новая страница: «A new device "Send custom command to RS-485 port"should appear in the Devices section of the web interface.»
−51
Новая страница: «There should be no error messages in the log (exit via control-c)»
−44
Новая страница: «5. Restart wb-rules and check the operation»
−30
Новая страница: «4. Describe the virtual device in the file»
−29
Новая страница: «The file can be edited with vim, nano, or mcedit in an ssh session on the device, or it can be downloaded with SCP.»
−72
Новая страница: «3. Create the new rules file <code>/etc/wb-rules/rs485_cmd.js</code> in the rules engine»
−42
Нет описания правки
−10
Новая страница: «You can send data by the following shell command:»
−42
Новая страница: «2. Sending a command»
−14
Новая страница: «To configure the / dev/ttyNSC0 port to 9600 speed, run the following command»
−62
Новая страница: «1. Port setting»
−17
Новая страница: «When you turn off the switch a command will be sent: (set channel brightness 00=0x00) for Uniel UCH-M141: <pre> FF FF 0A 01 00 00 00 0B </pre>»
−59
Новая страница: «When you turn on the switch a command will be sent: (Set Brightness ch. 00=0xff) for Uniel UCH-M141: <pre> FF FF 0A 01 FF 00 00 0A </pre>»
−63
Новая страница: «Create a virtual device with switch type control via rules engine.»
−106
Новая страница: «For example, send a command to the device on the port /dev/ttys0 (corresponds to the hardware port RS-485-ISO on the Special:MyLanguage/Wiren Board 4|Wiren Boar…»
−168
Новая страница: «=== Sending commands viaRS-485 ===»
−15
Новая страница: «To illustrate, the rules use two different ways of triggering: by changing the value of the control (rule _system_track_vin) and by changing the value of the expr…»
−120
Новая страница: «2. If the input voltage is greater than the battery voltage, the Board is powered by an external power supply. The measurement from the Vin channel is displayed a…»
−144
Новая страница: «1. If the input voltage is less than the voltage on the battery, then the Board is powered by the battery. In this case, 0V is also displayed as the input voltage.»
−150
Новая страница: «The following logic is implemented:»
−20