Все доступные журналы
Общий список журналов сайта Wiren Board. Вы можете отфильтровать результаты по типу журнала, имени участника (учитывается регистр) или затронутой странице (также учитывается регистр).
(новейшие | старейшие) Просмотреть (50 более новых | 50 более старых) (20 | 50 | 100 | 250 | 500)- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/166/en (Новая страница: «}; }; };»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/165/en (Новая страница: «// set schedule dev status as soon as possible at startup (function(schedule) { setTimeout(function() { updateSingleScheduleDevStatus(schedule); }, 1); })(schedule);»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/164/en (Новая страница: «// if needed, setup periodic task to trigger rules which use this schedule if (schedule.autoUpdate) { addScheduleAutoUpdCronTask(schedule); }»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/163/en (Новая страница: «// setup cron tasks which updates the schedule dev status at schedule // interval beginings and ends addScheduleDevCronTasks(schedule);»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/162/en (Новая страница: «for (var schedule_name in _schedules) { if (_schedules.hasOwnProperty(schedule_name)) { var schedule = _schedules[schedule_name];»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/161/en (Новая страница: «defineVirtualDevice("_schedules", params);»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/160/en (Новая страница: «for (var schedule_name in _schedules) { if (_schedules.hasOwnProperty(schedule_name)) { var schedule = _schedules[schedule_name]; params.cells[schedule_name] = {type: "switch", value: false, readonly: true}; } };»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/159/en (Новая страница: «Schedules.initSchedules = function() { var params = { title: "Schedule Status", cells: {} };»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/158/en (Новая страница: «Schedules.registerSchedule = function(schedule) { _schedules[schedule.name] = schedule; };»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/157/en (Новая страница: «var _schedules = {};»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/156/en (Новая страница: «function addScheduleAutoUpdCronTask(schedule) { defineRule("_schedule_auto_upd_{}".format(schedule.name), { when: cron("@every " + schedule.autoUpdate), then: function() { dev._schedules[schedule.name] = dev._schedules[schedule.name]; } }); }»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/155/en (Новая страница: «function addScheduleDevCronTasks(schedule) { for (var i = 0; i < schedule.intervals.length; ++i) { var interval = schedule.intervals[i]; for (var j = 0; j < 2; ++j) { // either start or end of the interval var hours = interval[j][0]; var minutes = interval[j][1]; log("cron at " + "0 " + minutes + " " + hours + " * * *"); defineRule("_schedule_dev_{}_{}_{}".format(schedule.name, i, j), { when: cron("0...»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/154/en (Новая страница: «for (var i = 0; i < schedule.intervals.length; ++i) { var item = schedule.intervals[i]; if (checkScheduleInterval(now, item[0], item[1])) { log("found matching schedule interval at {}".format(item)); return true; } } return false; } function updateSingleScheduleDevStatus(schedule) { log("updateSingleScheduleDevStatus {}".format(schedule.name)); dev["_schedules"][schedule.name] = checkSchedule(schedule)...»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/153/en (Новая страница: «function checkSchedule(schedule, now) { if (now == undefined) { now = new Date(); }»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/152/en (Новая страница: «}»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/151/en (Новая страница: «if (now >= start_date) { return true; } } return false;»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/150/en (Новая страница: «// well, that seems not to be the case. ok, // option 2: it's the day of "start" date:»)
- 21:01, 21 сентября 2022 Matveevrj обсуждение вклад создал страницу Translations:Rule Examples/149/en (Новая страница: «// option 1: what if it's now the day of "end" date? // in this case the following is enough: if (now < end_date) { return true; }»)
- 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 }, } });»)