Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blinkstick

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blinkstick

Blickstick API for Node.js

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
decreased by-94.45%
Maintainers
2
Weekly downloads
 
Created
Source

BlinkStick Node

BlinkStick Node provides an interface to control Blinkstick devices connected to your computer with Node.js.

What is BlinkStick? It's a smart USB-controlled LED device. More info about it here:

http://www.blinkstick.com

Resources

Requirements

  • Node.js
  • Libusb for Mac OSX and Linux

Requirements for Mac OSX

Install Node with npm and libusb using homebrew:

$> brew install node
$> brew install libusb

Requirements for Windows

Install Node for Windows and make sure it's added to your PATH environment variable.

Requirements for Linux

$> sudo apt-get install libusb nodejs npm

For the most up to date version of Node.js, use Node Version Manager.

$> nvm install --lts
Raspberry Pi

Install libudev and libusb development packages:

$> sudo apt-get install libusb-1.0-0-dev libudev-dev -y

Install BlinkStick node module

Install using npm:

$> npm install blinkstick

Getting started

var blinkstick = require('blinkstick');

To get the first blinkstick on your system:

var device = blinkstick.findFirst();

To set the color:

led.blink('random', function(){
    led.pulse('random', function(){
        led.setColor('red', function(){
        });
    });
});

More details and examples available in the wiki:

https://github.com/arvydas/blinkstick-node/wiki

Permission problems

If you get an error message on Linux:

Error: cannot open device with path /dev/hidraw0

Please run the following command and restart your computer:

echo "KERNEL==\"hidraw*\", SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"20a0\", ATTRS{idProduct}==\"41e5\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/85-blinkstick-hid.rules

Maintainers

Copyright (c) 2014 Agile Innovative Ltd and contributors

Released under MIT license.

Keywords

FAQs

Package last updated on 30 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc