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

Материал из Wiren Board
(Новая страница: «See more atMQTT.»)
Строка 45: Строка 45:




See more at[[Special:MyLanguage/MQTT|MQTT]].
See more at [[Special:MyLanguage/MQTT|MQTT]].





Версия 16:10, 17 июля 2015

Другие языки:

Wiren Board offers both ready web-interface and capabilities for its development. Source code of all software is open.


Web-interface

thumb|500 px|Web-interface Main Page

Wiren Board 4 features built-in, local web-interface. This is a convenient way to control connected devices and monitor connected sensors.

How to enter the interface

Just enter IP address of the controller into address line of your browser. Ref. also the article How to know IP-address of the controller.


What to do with the interface?

  • control the connected devices
  • read the sensors
  • assemble devices and sensors into panels (Dashboards)


Подробнее смотрите здесь - Wiren Board 4:Web-interface


Wiren Board software architecture

thumb | 600px

Operating system

Wiren Board runs under a standard configuration of Debian Linux 7.0. There is an official version of the system suitable for architecture of the used processor. That's why it is possible to find any package in the standard repository and install it by one command (apt-get install).


Repository and Git

We also maintain our own debian repository releases.contactless.ru, which contains packages developed specially for the controller. By default, this repository is listed in Wiren Board software image (file /etc/apt/sources.list).

All the source code is available at Github. It is where you can find examples for development of your custom software.


MQTT

Wiren Board uses the MQTT message queue (Wikipedia article) as a single standard to gather information from internal modules (relays, ADS, etc.) and external devices (1-Wire sensors, Modbus devices). All these modules and external devices are provided with drivers that transfers data to the MQTT message system and back again. Web-interface also takes data from this message system and sends there all changes made by the user (for example, a relay activation command). The message queue is also used by the rules engine.


See more at MQTT.


Веб-интерфейс

Подробнее см. Wiren Board 4:Веб-интерфейс

Веб-интерфейс работает непосредственно на Wiren Board. В качестве веб-сервера работает лёгкий webfsd. Сам сайт написан на AngularJS, сайт взаимодействует с MQTT через WebSocket.


Движок правил

Можно создавать правила, например, "если значение с датчика температуры ниже 18С, включи нагреватель". Правила пишутся на языке Javascript. Подробнее смотрите Движок правил wb-rules.


Как работать с модулями контроллера и портами ввода-вывода из своих программ

GSM/GPRS

Wi-Fi

RS-485

GPIO

Watchdog