Wiren Board Web Interface 1.0/en: различия между версиями

Материал из Wiren Board
(Новая страница: «=== Configs === thumb|center|400 px|configs Page On the "Configs" page you can configure the controller and the connection of external de…»)
(Новая страница: «=== Settings == center|thumb|400 px|settings Page On the Settings page, you configure the web interface and controller settings. Here yo…»)
Строка 79: Строка 79:
*setting [[Модуль уведомлений/en | Alarm]]
*setting [[Модуль уведомлений/en | Alarm]]


=== Settings (Настройки) ===
=== Settings ==
[[File:web-settings.png|center|thumb|400 px|Страница Settings]]
[[File:web-settings.png|center|thumb|400 px|settings Page]]
На странице ''Settings'' настраиваются параметры веб-интерфейса и контроллера. Здесь можно:
On the Settings page, you configure the web interface and controller settings. Here you can:
*загрузить на контроллер новую прошивку;
*upload new firmware to the controller;
*выбрать панель, которая будет отображаться на главной странице (Home);
*select the panel that will be displayed on the main page (Home);
*просмотреть полный список подключённых устройств и и их аппаратных возможностей и не которую другую отладочную информацию.
*view a complete list of connected devices and and their hardware capabilities and not that other debugging information.


== Стандартные задачи, решаемые через веб-интерфейс ==
== Стандартные задачи, решаемые через веб-интерфейс ==

Версия 19:47, 5 июня 2019

Другие языки:
Web interface main page

The Wiren Board controller has an integrated web interface. The interface allows to:

  • monitor and manage the status of the controller and connected devices;
  • connect the device to the controller;
  • configure the controller and update its software;
  • create automation rules for the built-in engine;
  • configure SMS and email notifications;
  • see the history of values (for example, temperature) on the graph.

Веб-интерфейс работает непосредственно на Wiren Board. В качестве веб-сервера работает nginx (в ранних версиях на {http://manpages.ubuntu.com/manpages/lucid/man1/webfsd.1.html webfsd]). Сам сайт написан на AngularJS и взаимодействует с MQTT через WebSocket.


How to get access to the web interface

Just enter the IP address of the controller (how to find out the IP address of the controller) into the browser command line . If you are accessing from an Apple device or a Linux computer and the network is the same for the device and the controller, enter 'wirenboard-XXXXXXXX.local' in the address bar, where XXXXXXXXXX is the eight-digit serial number of the controller. ( in older versions of the controller the access was via the "wirenboard.local" address).

Web interface Sections

Home

Home - the main page

This is the user's home page. It displays the interface elements - the widgets. These can be readings from sensors (e.g. temperature sensor data), switches, relay control buttons. The set of widgets on the main page is fully customizable by the user.

Dashboards

Dashboards

Widgets with a similar purpose can be grouped in a panel, where all the necessary buttons, settings and indicators of sensors are located on one screen. For example, you can combine widgets to enable heating, air conditioning, display temperature and humidity. In the Dashboards section you can see all created panels. In fact, the Home section also displays one of the panels, which is selected in the settings.

Devices

Devices is a list of all hardware features of the controller and connected devices

The Devices page displays all the hardware functions of the controller (status of inputs, outputs, power supply), as well as the connected sensors and devices. If you have connected an external module to the controller, all its changing values will be displayed here.

The options displayed on this page should not be mistaken for widgets - see #Widgets for details.

All the hardware devices should be configured in the #Configs section before they appear on this page

Rooms

Rooms is a list of so-called rooms, groups of widgets sorted by the location of the managed devices

So, Rooming is the method of grouping the interface widgets.You can create many widgets for temperature or lighting sensors or switches located in different rooms or for heating control on many floors. To organize and not to lose the desired widgets when they are created, each of them links to a Room corresponding to the physical location of the device. This page displays a list of rooms, and here you can add, rename, or delete them. We'll abandon the use of Rooms In the new versions of the web interface.

Widgets

Widgets - the page for creating and editing widgets

Widgets are the interface elements and they are created on the basis of hardware parameters of the controller and the devices connected to it - those which are displayed on the #Devices page.

The example of a widget

Configuring the widget

Suppose you control the illumination of a picture on the wall using an external relay module connected to the controller. The equipment (relay module and illumination lamp) is located in room 103. Then you can create such a widget:

  • Title: "Turn on backlight"
  • Room: "Room 103" (a room with this name must be created in advance in the section Rooms)
  • Widget type: "Light Control Relay" (light control) - the widget will look like a simple switch "on-off"
  • Controls: /devices/wb-mrm2_130/controls/Relay_1" - the first relay on the module WB-MRM2 with address 130, which connection you previously configured on the Configs page.

History

Diagram and the list of supply voltage values

On the "History" page, you can view the history of changes in the values of hardware resources (for example, temperature sensors, voltage, meter readings). The history is represented simultaneously as a graph and a table of values with timestamps.

A utility for extracting history data from the internal database

Rules

Script open for viewing and editing

On the 'Rules' page, you can create and edit rules. Rules are written in a simple language, similar to JavaScript, and allow you to create rules ("turn on the lights from 10:00 to 18:00") or virtual devices (for example, a button in the interface that turns on and off all the lights in the building together).

Configs

configs Page

On the "Configs" page you can configure the controller and the connection of external devices:

  • configuring network interfaces
  • setting up connection of RS-485 devices
  • setting analog inputs
  • setting up digital inputs and outputs
  • setting value logging
  • infrared port setting (if connected)
  • setting Alarm

= Settings

settings Page

On the Settings page, you configure the web interface and controller settings. Here you can:

  • upload new firmware to the controller;
  • select the panel that will be displayed on the main page (Home);
  • view a complete list of connected devices and and their hardware capabilities and not that other debugging information.

Стандартные задачи, решаемые через веб-интерфейс

Покдлючить устройство RS-485 Modbus и создать кнопки управления на главной панели

RS-485:Настройка через веб-интерфейс

Обновить прошивку контроллера

Обновление прошивки через веб-интерфейс

Облачный интерфейс

Веб-интерфейс Wiren Board можно разместить не только на самом контроллере, но и на специальном сервере. Тогда на интерфейс можно будет заходить используя всегда один и тот же IP-адрес.

Чтобы контроллер начал работать с веб-интерфейсом, размещённым на сервере, нужно внести некоторые изменения в конфигурацию контроллера.

Такой вариант удобен, если ваш контроллер находится за роутером и не имеет глобального IP-адреса, или если он подключён по GPRS - тогда он тоже, скорее всего, не имеет глобального IP, да ещё и работа с удалённым веб-интерфейсом израсходует слишком много трафика.

Пока что такой вариант доступен только корпоративным клиентам по запросу.

Также рекомендуем воспользоваться сервисом Inspektor SCADA, который предоставляет схожую функциональность. Статья про настройку доступа к Inspektor SCADA.



Настройка авторизованного доступа к Web-интерфейсу контроллера

В статье Защита паролем приводятся краткие инструкции по перенастройке контроллера, обеспечивающие авторизованный доступ к Web-интерфейсу контроллера.