Все доступные журналы
Общий список журналов сайта Wiren Board. Вы можете отфильтровать результаты по типу журнала, имени участника (учитывается регистр) или затронутой странице (также учитывается регистр).
(новейшие | старейшие) Просмотреть (50 более новых | 50 более старых) (20 | 50 | 100 | 250 | 500)- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/247/en (Новая страница: «<syntaxhighlight lang="bash"> service wb-mqtt-confed restart»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/246/en (Новая страница: «After creating the files, you need to restart the services»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/245/en (Новая страница: «In the json file describes the schema of the output html page browser, according to generally accepted mapping standard. Description of keys here: json-schema.org ahhh!»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/244/en (Новая страница: «The last file can also be edited from the web interface on the Scripts tab.»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/243/en (Новая страница: «log("temperature setpoint is: {}".format(config.temperature_setpoint)); </syntaxhighlight>»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/242/en (Новая страница: «<syntaxhighlight lang="bash"> var config = readConfig("/etc/test-config.conf");»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/241/en (Новая страница: «3. Script that updates config : /mnt/data/etc/wb-rules/test-config-script.js»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/240/en (Новая страница: «2. Description of the default configuration (when saving the form in the web interface, the values will be written to this file) : /etc/test-config.conf <syntaxhighlight lang="bash"> { "temperature_setpoint": 60, "humidity_setpoint": 14 } </syntaxhighlight>»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/239/en (Новая страница: «"humidity_setpoint": { "type":"number", "title":"Humidity Setpoint (RH, %)", "default": 60, "propertyOrder": 2, "minimum": 10, "maximum": 95 } }, "required": ["temperature_setpoint", "humidity_setpoint"] } </syntaxhighlight>»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/238/en (Новая страница: «"properties": { "temperature_setpoint": { "type":"number", "title":"Temperature Setpoint (Degrees C)", "default": 25, "propertyOrder": 1, "minimum": 5, "maximum": 40 },»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/237/en (Новая страница: «"configFile": { "path":"/etc/test-config.conf", "service":"wb-rules" },»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/236/en (Новая страница: «1. The output scheme of the html page in the Configs section: /usr/share/wb-mqtt-confed/schemas/test-config.schema.json <syntaxhighlight lang="bash"> { "type":"object", "title":"Test configuration", "description":"Long description configuration",»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/235/en (Новая страница: «Three files are required:»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/234/en (Новая страница: «The correct but tricky way is to create a new tab in the Configs section with editable settings options fields.»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/3/en (Новая страница: «An easy way is to do in the defineVirtualDevice() field, make it readonly: false. And it will appear in the web interface in Devices as editable, and the value will be saved in the rules engine. But a complex setup with menus and options cannot be done this way.»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/233/en (Новая страница: «300px|thumb|right|Example configuration 300px|thumb|right|Example script If you need to manually enter temperature and humidity settings in the interface of the Wiren Board controller.»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/135/en (Новая страница: «== Custom fields in web interface ==»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/232/en (Новая страница: «trackMqtt("/devices/+/controls/+/meta/error", function(message){ log.info("name: {}, value: {}".format(message.topic, message.value)) if (message.value=="r"){ dev["meta_error_test/topic"] = message.topic; dev["meta_error_test/value"] = message.value; } }); </syntaxhighlight>»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/231/en (Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("meta_error_test", { title: "Metaerordisplay", cells: { topic: { type: "text", value: "", readonly: true }, value: { type: "text", value: "", readonly: true }, } });»)
- 20:58, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/230/en (Новая страница: «== Handling errors when working with serial devices == Implemented by subscribing to all '''meta/error''' topics.»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/229/en (Новая страница: «runShellCommand(command); </syntaxhighlight>»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/228/en (Новая страница: «<syntaxhighlight lang="ecmascript"> varmessage = "Text"; // write your message text var token = "TOKEN"; // replace with bot token var chat_id = CHATID; // replace with your chat_id var command = 'curl -s -X POST https://api.telegram.org/bot{}/sendMessage -d chat_id={} -d text="{}"'.format(token, chat_id, message);»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/227/en (Новая страница: «== Sending a message via Telegram bot == {{Anchor|telegram}} Messages are sent using [https://core.telegram.org/api#telegram-api Telegram API] via <code>curl</code>.»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/134/en (Новая страница: «</syntaxhighlight>»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/133/en (Новая страница: «setTimeout(setup_port, 1000); // set setup_port() running 1 second after starting.»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/132/en (Новая страница: «defineRule("_rs485_switch_off", { asSoonAs: function () { return !dev.rs485_cmd.enabled; }, then: function() { runShellCommand("/usr/bin/printf '\\xff\\xff\\x0a\\x01\\x00\\x00\\x00\\x0b' >/dev/ttyNSC0"); } });»)
- 20:57, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/131/en (Новая страница: «defineRule("_rs485_switch_on", { asSoonAs: function () { return dev.rs485_cmd.enabled; }, then: function() { runShellCommand("/usr/bin/printf '\\xff\\xff\\x0a\\x01\\xff\\x00\\x00\\x0a' > /dev/ttyNSC0"); } });»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/130/en (Новая страница: «function setup_port() { runShellCommand("stty -F /dev/ttyNSC0 ospeed 9600 ispeed 9600 raw clocal -crtscts -parenb -echo cs8"); }»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/129/en (Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("rs485_cmd", { title: "Send custom command to RS-485 port", cells: { enabled: { type: "switch", value: false }, } });»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/128/en (Новая страница: «The full contents of the file with the rules:»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/127/en (Новая страница: «7. Putting it all together»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/126/en (Новая страница: «Note the double shielding.»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/125/en (Новая страница: «</syntaxhighlight>»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/124/en (Новая страница: «defineRule("_rs485_switch_off", { asSoonAs: function () { return !dev.rs485_cmd.enabled; }, then: function() { runShellCommand("/usr/bin/printf '\\xff\\xff\\x0a\\x01\\x00\\x00\\x00\\x0b' >/dev/ttyNSC0"); } });»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/123/en (Новая страница: «<syntaxhighlight lang="ecmascript"> defineRule("_rs485_switch_on", { asSoonAs: function () { return dev.rs485_cmd.enabled; }, then: function() { runShellCommand("/usr/bin/printf '\\xff\\xff\\x0a\\x01\\xff\\x00\\x00\\x0a' > /dev/ttyNSC0"); } });»)
- 20:56, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/122/en (Новая страница: «7. Let's describe the rules for turning the switch on and off»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/121/en (Новая страница: «</syntaxhighlight>»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/120/en (Новая страница: «<syntaxhighlight lang="ecmascript"> function setup_port() { runShellCommand("stty -F /dev/ttyNSC0 ospeed 9600 ispeed 9600 raw clocal -crtscts -parenb -echo cs8"); }»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/119/en (Новая страница: «6. Add a function to configure the port.»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/118/en (Новая страница: «A new device "Send custom command to RS-485 port" should appear in the Devices section of the web interface.»)
- 20:55, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/117/en (Новая страница: «There should be no error messages in the log (exit via control-c)»)
- 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:»)