Blynk and Raspberry Pi: Tips & Tricks

This documentation is for the LEGACY version of Blynk platform which is no longer supported and will be shut down.

You can sign up for the current version of Blynk platform here.

The new mobile apps can be downloaded from App Store and Google Play.

The actual Blynk documentation is here.


To enable Blynk autostart for Pi, find /etc/rc.local file and add there:

node full_path_to_your_script.js <YourAuthToken> &

Run forever

Use forever utility to auto-restart your script.

npm install -g forever

Run external scripts/utilities from Blynk

You can run external python, batch, or just anything executable from Node.js using child_process module:

var exec = require('child_process').exec;
exec('command', function callback(error, stdout, stderr){
    // result


PiBakery allows you to pre-configure Raspberry Pi, while creating SD Card.

Last updated