loshated / blynk-library-js

Blynk library implementation for JavaScript (Node.js, Espruino)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version NPM download GitHub stars GitHub issues GitHub license

NPM

Implementations for other platforms:


blynk-library-js

Blynk library implementation for JavaScript (Node.js, Espruino)

What is Blynk?

Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets. If you need more information, please follow these links:

Getting Started tutorials

Usage example:

var BlynkLib = require('blynk-library');

var blynk = new BlynkLib.Blynk('715f8caae9bf4a91bae319d0376caa8d');
var v1 = new blynk.VirtualPin(1);
var v9 = new blynk.VirtualPin(9);

v1.on('write', function(param) {
  console.log('V1:', param);
});

v9.on('read', function() {
  v9.write(new Date().getSeconds());
});

Tested on:

  • Node.js
  • Intel Edison
  • Desktop (Windows, Linux): TCP, SSL
  • Espruino
  • Pico: ESP8266WiFi_0v25, over USB/Serial
  • VoCore (using OpenWRT Espruino package)
  • Linux

Boards with supported direct pin IO:

  • Intel Edison, Galileo using mraa package
  • Raspberry Pi, Beaglebone using onoff package
  • Espruino Pico
  • OpenWrt + Espruino package

Just install the required package and this module will do auto-detection.

About

Blynk library implementation for JavaScript (Node.js, Espruino)

License:MIT License


Languages

Language:JavaScript 97.7%Language:Makefile 2.3%