Все доступные журналы
Общий список журналов сайта Wiren Board. Вы можете отфильтровать результаты по типу журнала, имени участника (учитывается регистр) или затронутой странице (также учитывается регистр).
(новейшие | старейшие) Просмотреть (50 более новых | 50 более старых) (20 | 50 | 100 | 250 | 500)- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/116/en (Новая страница: «<pre> root@wirenboard:~# /etc/init.d/wb-rules restart root@wirenboard:~# tail -f /var/log/messages </pre>»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/115/en (Новая страница: «5. Restart wb-rules and check the operation»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/114/en (Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("rs485_cmd", { title: "Send custom command to RS-485 port", cells: { enabled: { type: "switch", value: false }, } }); </syntaxhighlight>»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/113/en (Новая страница: «4. Describe the virtual device in the file»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/112/en (Новая страница: «<pre> root@wirenboard:~# mcedit /etc/wb-rules/rs485_cmd.js </pre>»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/111/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.»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/110/en (Новая страница: «3. Create the new rules file <code>/etc/wb-rules/rs485_cmd.js</code> in the rules engine»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/109/en (Новая страница: «<pre> /usr/bin/printf '\xFF\xFF\x0A\x01\xD1\x06\x00\xE2' >/dev/ttyNSC0 </pre> where "\xFF\xFF\x0A\x01\xD1\x06\x00\xE2" - is the entry of a "FF FF 0A 01 D1 06 00 E2" command.»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/108/en (Новая страница: «Sending data is done with the following shell command:»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/107/en (Новая страница: «2. Sending a command»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/106/en (Новая страница: «<pre> stty -F /dev/ttyNSC0 ospeed 9600 ispeed 9600 raw clocal -crtscts -parenb -echo cs8 </pre>»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/105/en (Новая страница: «To configure the / dev/ttyNSC0 port to 9600 speed, run the following command»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/104/en (Новая страница: «1. Port setting»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/103/en (Новая страница: «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>»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/102/en (Новая страница: «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>»)
- 20:54, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/101/en (Новая страница: «Create a virtual device with switch type control via rules engine.»)
- 20:53, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/100/en (Новая страница: «For example, send a command to the device on the port /dev/ttys0 (corresponds to the hardware port RS-485-ISO on the Wiren Board 4). To do this, we will use the rules engine and the ability to execute arbitrary shell commands. See [https://github.com/contactless/wb-rules#%D0%94%D1%80%D1%83%D0%B3%D0%B8%D0%B5-%D0%BF%D1%80%D0%B5%D0%B4%D0%BE%D0%BF%D1%80%D0%B5%D0%B4%D0%B5%D0%BB%D1%91%D0%BD%D0%BD%D1%8B%D0%B5-%D1%84%D1%83%D0%BD%...»)
- 20:53, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/99/en (Новая страница: «</syntaxhighlight> == Sending commands via RS-485 ==»)
- 20:53, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/226/en (Новая страница: «Termostat("R01-TS16-1", "A60-M1W3/External Sensor 1", "Termostat/R01-TS16-1-setpoint", "wb-gpio/EXT4_R3A1", "Termostat/R01-TS16-1-onoff"); // Hallway underfloor heating»)
- 20:52, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/225/en (Новая страница: «var hysteresis = 0.5; function Termostat(name, temp, setpoint, TS, TS_onoff) { defineRule(name, { whenChanged: temp, //when the sensor state changes then: function (newValue, devName, cellName) { // do the following if (dev[TS_onoff]) { if ( newValue < dev[setpoint] - hysteresis) { //if the sensor temperature is less than the setpoint - hysteresis dev[TS] = true; } if ( newValue > dev[setpoint] + hysteresis) { //if the sensor temper...»)
- 20:52, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/224/en (Новая страница: «<syntaxhighlight lang="js"> defineVirtualDevice("Termostat", { title: "Termostat", cells: { // =============== hallway underfloor heating "R01-TS16-1-mode": {//mode 0-manual 1-scheduled type: "switch", value: false, }, "R01-TS16-1-setpoint": {//setting type: "range", value: 25, max: 30, readonly: false }, "R01-TS16-1-lock": {//blockage in visualization 0-unlocked 1-blocked typ...»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/223/en (Новая страница: «== Thermostat == An example of a simple thermostat from the [https://support.wirenboard.com/t/novaya-versiya-dvizhka-pravil/4196/158 topic on the support portal].»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/98/en (Новая страница: «</syntaxhighlight>»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/97/en (Новая страница: «defineRule("_system_dc_off", { asSoonAs: function () { return dev["wb-adc"]["Vin"] <= dev["wb-adc"]["BAT"]; }, then: function () { dev["power_status"]["working on battery"] = true; } });»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/96/en (Новая страница: «defineRule("_system_dc_on", { asSoonAs: function () { return dev["wb-adc"]["Vin"] > dev["wb-adc"]["BAT"]; }, then: function () { dev["power_status"]["working on battery"] = false; } });»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/95/en (Новая страница: «defineRule("_system_track_vin", { whenChanged: "wb-adc/Vin", then: function() { if (dev["wb-adc"]["Vin"] < dev["wb-adc"]["BAT"] ) { dev["power_status"]["Vin"] = 0; } else { dev["power_status"]["Vin"] = dev["wb-adc"]["Vin"] ; } } });»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/94/en (Новая страница: «} });»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/93/en (Новая страница: «cells: { 'working on battery' : { type : "switch", value : false, readonly : true }, 'Vin' : { type : "voltage", value : 0 }»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/92/en (Новая страница: «defineVirtualDevice("power_status", { title: "Power status", //»)
- 20:51, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/91/en (Новая страница: «<syntaxhighlight lang="ecmascript">»)
- 20:50, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/90/en (Новая страница: «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 expression (the other two).»)
- 20:50, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/89/en (Новая страница: «2. If the input voltage is greater than the battery voltage, then the board is powered by an external power source. The measurement from the Vin channel is displayed as the input voltage.»)
- 20:50, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/88/en (Новая страница: «1. If the input voltage is less than the battery voltage, then the board is powered by the battery. In this case, 0V is also displayed as the input voltage.»)
- 20:50, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/87/en (Новая страница: «The following logic is implemented:»)
- 20:50, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/86/en (Новая страница: «[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.»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/85/en (Новая страница: «=== Power status rule ===»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/84/en (Новая страница: «</syntaxhighlight>»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/83/en (Новая страница: «defineRule("_system_buzzer_onof", { whenChanged: "buzzer/enabled", then: function (newValue, devName, cellName) { if ( dev.buzzer.enabled) { _buzzer_set_params(); runShellCommand("echo 1 > /sys/class/pwm/pwmchip0/pwm2/enable"); } else { runShellCommand("echo 0 > /sys/class/pwm/pwmchip0/pwm2/enable"); } } });»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/82/en (Новая страница: «then: function (newValue, devName, cellName) { if ( dev.buzzer.enabled) { _buzzer_set_params(); } } });»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/81/en (Новая страница: «defineRule("_system_buzzer_params", { whenChanged: [ "buzzer/frequency", "buzzer/volume", ],»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/80/en (Новая страница: «runShellCommand("echo " + period + " > /sys/class/pwm/pwmchip0/pwm2/period"); runShellCommand("echo " + duty_cycle + " > /sys/class/pwm/pwmchip0/pwm2/duty_cycle"); };»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/79/en (Новая страница: «function _buzzer_set_params() { var period = parseInt(1.0 / dev.buzzer.frequency * 1E9); var duty_cycle = parseInt(dev.buzzer.volume * 1.0 / 100 * period * 0.5);»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/78/en (Новая страница: «// setup pwm2 runShellCommand("echo 2 > /sys/class/pwm/pwmchip0/export");»)
- 20:49, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/77/en (Новая страница: «cells: { frequency : { type : "range", value : 3000, max : 7000, }, volume : { type : "range", value : 10, max : 100, }, enabled : { type : "switch", value : false, }, } });»)
- 20:48, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/76/en (Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("buzzer", { title: "Buzzer", //»)
- 20:48, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/75/en (Новая страница: «[https://github.com/contactless/wb-rules-system/blob/master/rules/buzzer.js Rule] creates a virtual buzzer device with volume and frequency sliders and a mute button.»)
- 20:48, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/74/en (Новая страница: «=== Rule for tweeters ===»)
- 20:48, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/73/en (Новая страница: «A few examples of system rules are below.»)
- 20:48, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/222/en (Новая страница: «Many of the indications that are visible in the web interface of the controller out of the box are also created by rules on the wb-rules engine. Their code is here: [https://github.com/wirenboard/wb-rules-system https://github.com/wirenboard/wb-rules-system]. The system rules are collected in the <code>wb-rules-system</code> package, the script files on the controller are located in the <code>/usr/share/wb-rules-system/</code> folder.<code></code>»)
- 20:46, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/70/en (Новая страница: «=== System rules ===»)