How to install Node.js library on Linux
Last updated
Was this helpful?
Last updated
Was this helpful?
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 .
The new mobile apps can be downloaded from and .
The actual Blynk documentation is .
First of all, you need to install Node.js.
Before updating Node.js, please be sure to remove old versions:
Add repositories:
Install Node.js:
Automatic install might not work for you, in this case you can perform manual installation.
If uname -m
gives you armv6l (on Raspberry Pi, usually), try this:
Run default Blynk client (replace YourAuthToken
):
Installing Blynk globally may not work or can be undesired. In this case, you need to create a new Node.js module with local Blynk library dependency.
It will prompt you for general information about your project and create a package.json
file (project description). Next, add Blynk to your project:
You can also install onoff, if you want (allows direct pin operations):
Now create your main script file index.js
(just replace YourAuthToken
):
This is it. Run your project:
You should see something like:
If you are trying to connect to Blynk cloud, and get an error like:
you should use the date
command to update current system time.
Write our own script based on !
Read about concept and unleash full power of Blynk. Blynk supports huge amount of board types. Our library is Open Source Software. us a star on GitHub.