Blynk : installer un serveur local privé sur Orange Pi sous Armbian (Ubuntu 16.04LTS) [Exclusive Guide]

10:29 am May 7, 201710561

Dans le Tutorial précédent, nous avons vu comment installer le serveur local Blynk sur un Raspberry Pi 3. In this tutorial we will install the server Blynk on one Orange running Armbian more 2nd Pi based on Ubuntu Xenial 16.04LTS. The Orange Pi + 2 is more powerful than the Raspberry Pi 3. It for especially of 2 GB of RAM and 16 GB of memory eMMC more reliable and faster than SD cards.

Blynk needs Java 8 to work. Armbian 5.24 take Java 5, specifically the 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 be updated Java. Follow this steps which 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

set to the directory where you want to install Blynk then download the jar file of the Server

it’s over!

Configuration of the server (server.properties file)

the first configuration file to create is server.properties . Retrieve a core on GitHub file here . In addition to the destination of the files files, you can change the communication ports. This is especially important if you have installed a home automation server (or other software) which uses the same ports as the local server Blynk. For example, the default http port (and web socket) is the 8080 . If you use Domoticz , it’s going to get. You can use the port 8082 instead.

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

Enregistrez le fichier server.properties dans le même dossier que le serveur.

Setting up the account email (file mail.properties)

the second parameter file to create is the mail.properties that allows to send the Tokens for the Arduino code. Create a new configuration file named mail.properties and save it in the same folder as the server. Here is a sample configuration file for gmail.

manually start the server

to start the server, run the following command

On passe en paramètre le chemin du répertoire des données ( dataFolder). The server starts in about 10 seconds.

To stop, press the CTRL + C key combination.

start the Blynk server at the start of Armbian

to start the server automatically at startup, just run the command launch by adding & at the end of the command. This gives

If you don’t not work, edit the crontab

go to end of the file and add the following command. Remember to change the path so that it matches your installation directory.

the server Blynk works now in the same way as on any other system (Windows, macOS, Raspberry Pi). Follow the tutorial previous to start using Blynk and assign an unlimited energy to your user account.