Blynk: installing a private local server on Orange Pi under Armbian (Ubuntu 16.04LTS)

In the previous tutorial we saw how to install the local Blynk server on a Raspberry Pi 3. In this tutorial we will install the Blynk server on an Orange Pi Plus 2e running Armbian based on Ubuntu Xenial 16.04LTS. The Orange Pi + 2e is more powerful than the Raspberry Pi 3. It mainly has 2GB of RAM and 16GB of memory eMMC more reliable and faster than SD cards.

Check the installed Java version

Blynk needs Java 8 to work. Armbian 5.24 embeds Java 5, especially version 5.4.0. To check the version of Java installed on your system, run the following command

If you are in this case, you must already update Java. Follow these steps that have been detailed here.

During the installation, you will have two messages to validate

armbian install java 8

armbian install java 8 blynk server

After the update, version 8 of Java should be installed

Installing and Configuring the Local Blynk Server

Place yourself in the directory where you want to install Blynk then download the jar file from the server

It’s over !

Configuring the server ( file)

The first configuration file to create is Retrieve a basic file from GitHub here. In addition to the destination files of the files, you will be able to modify the communication ports. This is especially important if you have installed a home automation server (or other software) that uses the same ports as the local Blynk server. For example, by default the port http (and web socket) is the 8080. If you use Domoticz, it will get stuck. You can use port 8082 instead.

Blynk has a management interface accessible from a web browser. By default this interface is accessible only from the computer the raspberry Pi on which the server is installed. If you want to be able to access it from any computer on the local network, change the allowed.administrator.ips  parameter at the end of the file like this

Save the file in the same folder as the server.

Configuring the email account ( file)

The second parameter file to create is the file, which allows you to send the Tokens for the Arduino code. Create a new configuration file named and save it to the same folder as the server. Here is a sample configuration file for gmail.

Starting the Server

Start the server manually

To start the server, run the following command

The path to the data directory ( -dataFolder) is passed as a parameter. The server starts in about ten seconds.

To stop, press the CTRL + C key combination.

Start the Blynk server when Armbian starts

To start the server automatically at startup, simply run the start command by adding & at the end of the command. This gives

If it does not work, edit the crontab

Go to the end of the file and add the following command. Do not forget to change the path to match your installation directory.

The Blynk server now works exactly like any other system (Windows, MacOS, Raspberry Pi). Follow the previous tutorial to start using Blynk and assign unlimited energy to your user account.

Subscribe to the weekly newsletter

No spam and no other use will be made of your email. You can unsubscribe anytime.

DIY Projects