control a blinkstick via http requests
Find a file
2022-02-21 11:56:49 +01:00
libs code optimization 2022-02-21 11:56:49 +01:00
public initial commit 2021-04-06 16:41:49 +02:00
scripts fixed type environment variable 2021-04-14 23:11:15 +02:00
.gitignore code optimization 2022-02-21 11:56:49 +01:00
blinky.js code optimization 2022-02-21 11:56:49 +01:00
config.json optimized and extended functionality 2022-02-21 00:48:29 +01:00
LICENSE initial commit 2021-04-06 16:41:49 +02:00
package.json initial commit 2021-04-06 16:41:49 +02:00
README.md code optimization 2022-02-21 11:56:49 +01:00

blinky

control your blinkstick via http requests

requirements

  • nodejs
  • yarn / npm
  • nvm

the node-hid module is a bit picky about node.js's version - use node.js 8.x or 15.x

setup

  • clone the project
    git clone https://git.velvettear.de/velvettear/blinky.git

  • enter the cloned directory
    cd blinky

  • install and switch to a supported node.js version (automatically done via .nvmrc file) nvm install

  • install the required modules
    npm install

  • switch back to your system's default node.js version nvm deactivate

  • run it
    nvm run 15 blinky.js

scripts

  • blinky-feed.sh
    • gathers various system information (currently temperature only) then converts it to color values and sends it to blinky
    • requirements: bash, bc