How to install a Blynk Server in a Raspberry pi?

Hi Guys

I just want to collect ideas to proceed to install Blynk Server on a Raspberry Pi
Raspberry Pi is unknown device for me
Thanks for readme

Did you read installing instruction? It is very simple and straightforward.

1 Like

Hi,

I am also a complete raspberry pi noob, but managed to get the local server working without too much trouble. Follow the instructions in the documentation exactly and it works great. If you have any specific questions or problems just ask here and you will get help.

If raspberry pi is completely new to you as it was for me, all the setup is done in ā€˜terminalā€™ which is like command prompt if you are familiar with that.

On a side note, thanks to all the founders, creators and backers of Blynk. It is an amazing product that I will be happy to pay for. You guys have done a great job.

Nick

1 Like

Hello again
Iā€™m a caveman I must to say
Raspberry PI is something completely new for me
reading about Raspberry PI I discovered so many potencial
Which Raspberry PI did you recomend just for to run Blynk server?
RAM?
SDCard type and size?

Thanks

Any Rasp is ok. Blynk server doesnā€™t have any specific requirements. It could be run on very low hardware. 128 MB should be enough. SDCard - donā€™t know it depends on your needs, this is not related to Blynk.

2 Likes

I even managed to get it running on a Raspi with OpenELEC installed. I got Java installed and made a startup script. Easy peasy :slight_smile:

3 Likes

I donā€™t see instructions for Raspberry Pi; just Arduino. Am I blind?

All the way to the bottom is a section ā€œBlynk local serverā€. It has instructions to setup a local server. Itā€™s not very difficult, you just have to make sure Java is installed and is a good version.

Hi,

Iā€™ve had a garage door project up and running using Blynk cloud for several months using a Sparkfun ESP 8266 Thing Dev board - works great.

Iā€™ve been following the instructions in docs to install the server on a Raspberry Pi 3. The Server is installed and says itā€™s running, but I canā€™t get the device (Sparkfun Thing Dev) to connect to the server.

The simple (Led on Pin 5 on and off) project on my phone that Iā€™m testing the server with works fine on blynk cloud, but canā€™t connect to the server.

The blynk.log file is:
016-11-06 19:16:57.602 INFO - Region : local
2016-11-06 19:17:00.134 INFO - Initializing gmail smtp mail transport. Username : example@gmail.com. SMTP host : smtp.gmail.com:587
2016-11-06 19:17:00.283 WARN - ATTENTION. Certificate /home/pi and key /home/pi paths not valid. Using embedded certs. This is not secure. Please re$
2016-11-06 19:17:02.530 WARN - ATTENTION. Server certificate paths cert : ā€˜/home/piā€™, key : ā€˜/home/piā€™ - not valid. Using embedded server certs and $
2016-11-06 19:17:26.554 WARN - ATTENTION. Certificate /home/pi and key /home/pi paths not valid. Using embedded certs. This is not secure. Please re$
2016-11-06 19:17:28.449 WARN - ATTENTION. Certificate /home/pi and key /home/pi paths not valid. Using embedded certs. This is not secure. Please re$
2016-11-06 19:17:29.226 WARN - ATTENTION. Certificate /home/pi and key /home/pi paths not valid. Using embedded certs. This is not secure. Please re$
2016-11-06 19:17:30.820 INFO - Hardware plain tcp/ip server listening at 8442 port.
2016-11-06 19:17:30.826 INFO - Hardware SSL server listening at 8441 port.
2016-11-06 19:17:30.828 INFO - Application server listening at 8443 port.
2016-11-06 19:17:30.829 INFO - HTTP API server listening at 8080 port.
2016-11-06 19:17:30.831 INFO - HTTPS API server listening at 9443 port.
2016-11-06 19:17:30.832 INFO - HTTPS Admin UI server listening at 7443 port.
2016-11-06 19:17:30.833 INFO - Web Sockets server listening at 8082 port.
2016-11-06 19:17:30.835 INFO - Web SSL Sockets server listening at 8081 port.
2016-11-06 19:17:30.836 INFO - Mqtt hardware server listening at 8440 port.
2016-11-06 19:27:00.131 INFO - ##myemailaddress##@gmail.com Blynk-app joined.

The serial monitor output from the thing is:

[276] Connecting to [SSID deleted]
[4277] Connected to WiFi
[4277] IP: 192.168.0.15
[4277] Blynk v0.3.10 on Esp Thing Dev
[5001] Connecting to 192.168.0.21
[6240] Invalid auth token
[11120] Connecting to 192.168.0.21
[11154] Invalid auth token
[16139] Connecting to 192.168.0.21
[16202] Invalid auth token

etc. etc.

Not sure if itā€™s related, but I also canā€™t log onto the Admin UI from the Pi or any other computer on the same network.

Appreciate any help.

Rob.

You have to generate a new Authtoken for using the board with the local server, so the message is quite clear :slight_smile:

Ahh, thanks. Been trying to get it going for days!

Still canā€™t access the Admin UI though?

Do you have a server.properties file? Usually the admin page is at https://serverip:7443/admin but it could differ, depending on your server.properties file. There is also a directive in that file which restricts access from IP numbers.

Hi,
You can set administrator ips using server.properties. (explain at https://github.com/blynkkk/blynk-server#advanced-local-server-setup)
By default, in example file itā€™s :

#comma separated list of administrator IPs. allow access to admin UI only for those IPs.
#you may set it for 0.0.0.0/0 to allow access for all.
#you may use CIDR notation. For instance, 192.168.0.53/24
allowed.administrator.ips=127.0.0.1

Your network address seems to be like

allowed.administrator.ips=192.168.0.0/24

Thanks, I tried that but am still getting an Unable to Load Page error:

Error receiving data: Connection reset by peer

It means the Pi is probably taking too long to proces the request from the browser. Have you tried clearing the browser cache and restarting the Pi/Blynk server?

I checked the log file again - it said the allowed.administrator.ips was IPv4 but the address i was using was IPv6.

Checked from a laptop and I could access the admin UI. Added the IPv6 range to the allowed.administrator.ips and restarted and now I can use the admin UI from both the laptop and Pi.

Thanks & cheers

Rob.

Hi all

I just successfully got my Blynk server running on my Pi. However in the Blynk app after I choose local server and give the correct IP + port I cannot login with the normal login credentials which I used for logging in the App using Blynk server. Also the password and login name of the RPi doesnt work. So how to login to this new local server of mine, anyone? I dont see anybody else with this problem so I must be doing something very basic wrong?

Cheers
Dennis

You need to create a new account on the local server. If you previously created an account on the cloud servers it is not transferred to your local server. That also means you need to recreate all your projects too. You can use the same auth tokens, but you have to copy them into your projects via the Admin page of your local server.

Wow Lichtsignaal

That goes a bit further then I hopedā€¦ ā€œinstall the server is very easyā€ they say. Ok that I found out myself. But the creation of an account on my server how is this done did you just know how this works or is there documentation of this as well somewhere? I am not exactly a linux guru

Cheers
Dennis

You need to do it from the App, just like when signing on to the Cloud server. On the main screen setup your local server with the three-dot button (I assume you did this) and then register a new account.