OpenHab2 - MQTT binding demo
This demo demonstrates how to use MQTT binding addon in OpenHAB2 installed into Orange Pi zero. The idea is very basic. A switch is created on default sitemap. When you turn on the switch, it sends "ON" message to Topic /office/light via MQTT broker that is installed on Orange Pi. When you turn off the switch, it sends "OFF" message to Topic /office/light.
RequireOpenhab2MQTT broker installed.
First, install MQTT binding via paperui
Define all the brokers which you want to connect to, in your services/mqtt.cfg file. cd /etc/openhab2/services
sudo nano mqtt.cfg
Edit the file as follow #
# Define your MQTT broker connections here for usein the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
# URL to the MQTT broker, e.g. tcp://localhost:1883or ssl://localhost:8883
# Optional. Client id (max23 chars) tousewhen connecting to the broker.
# Ifnot provided a defau…
Orange Pi is a series of cheap single-board computers. It can run It can run Android 4.4, Ubuntu, Debian, Rasberry Pi Image. In this post, I tried to install Eclipse Kura on a Orange Pi Zero which has the AllWinner H2 SoC, and has 512MB DDR3 SDRAM.
This board will be the next generation for our system (Agrinode project).
The fist step, we install Kura on the board and test is to verify that it can work correctly as the Raspberry Pi.
This post is also available at AgriNode project page: https://agrinode.github.io/docs/orangepi/
Install Debian on Orange Pi
Please follow the link: https://docs.armbian.com/User-Guide_Getting-Started/
Install default java JRE/JDK on Debian (JDK 7)Web Browser Plugin
To install the default Web Browser Plugin on your system, run: apt-get install icedtea-pluginJRE To install the default JRE (Java Runtime Environment) on your system, run:apt-get installdefault-jre
To install the default JDK (Java Development Kit) on your system, run: apt-get installdefault-jd…