Все доступные журналы
Общий список журналов сайта Wiren Board. Вы можете отфильтровать результаты по типу журнала, имени участника (учитывается регистр) или затронутой странице (также учитывается регистр).
(новейшие | старейшие) Просмотреть (50 более новых | 50 более старых) (20 | 50 | 100 | 250 | 500)- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/148/en (Новая страница: «if (end_date >= start_date) { if ((now >= start_date) && (now < end_date)) { return true; } } else { // end date is less than start date, // assuming they belong to a different days (e.g. today and tomorrow)»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/147/en (Новая страница: «function checkScheduleInterval(now, start_time, end_time) { var start_date = todayAt(now, start_time[0], start_time[1]); var end_date = todayAt(now, end_time[0], end_time[1]); log("checkScheduleInterval {} {} {}".format(now, start_date, end_date));»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/146/en (Новая страница: «function todayAt(now, hours, minutes) { var date = new Date(now); // i.e. "today, at HH:MM". All dates are in UTC! date.setHours(hours); date.setMinutes(minutes); return date; }»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/145/en (Новая страница: «(function(Schedules) { // closing»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/144/en (Новая страница: «<syntaxhighlight lang="ecmascript"> global.__proto__.Schedules = {};»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/143/en (Новая страница: «lib_schedules.js:»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/142/en (Новая страница: «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.»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/141/en (Новая страница: «For example, we want the lighting to be on from 10 to 17h. The libschedule will follow the "turn on the lights" rule once a minute from 10 am to 17 PM.»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/140/en (Новая страница: «Not cron-rules are used for schedules, but the libschedule. The libschedule enables and disables rules, which, unlike cron rules, are executed continuously when enabled.»)
- 21:00, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/139/en (Новая страница: «The object is a grocery store. Various store systems are controlled by feedback from temperature sensors and taking into account the store's work schedule.»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/138/en (Новая страница: «== Complex rules with schedules ==»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/249/en (Новая страница: «When you click Save in the web interface, the wb-rules service will be restarted, and the values of the settings will be written to the rules.»)
- 20:59, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/248/en (Новая страница: «service wb-rules restart </syntaxhighlight>»)
- 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>»)