Introduction
Learn how to control the BlinkinLabs BlinkyTape over Meshblu using the default firmware and a Meshblu connector. Assumes you have an OSX Node.js development environment set up.
Setup the Meshblu Connector
1. Install meshblu-util
npm install -g meshblu-util
2. Clone or download the meshblu-blinky-tape project from Github
git clone https://github.com/octoblu/meshblu-blinky-tape
3. Change into the directory and register a new Meshblu device
cd meshblu-blinky-tape
meshblu-util register > meshblu.json
4. Install and start up the Meshblu Device
npm install
npm start<
ode>
5. Go to https://app.octoblu.com and claim as a generic device
Programming the BlinkyTape
The BlinkyTape expects an array of arrays, where the outer array lists the frames and the inner arrays are individual color values for each led:
var message = {animation: [
['red', 'blue', <led2>..., <led39>], // Frame 1
['#00ff00', '#ff0000', ...,<led39>] // Frame 2
]};
The plugin will cycle through all the frames repeatedly until it receives a new message. This means we'll have to create a function node to craft the message. The easiest way is to import this flow. Just click the trigger and watch it go! If you'd like to see some more advanced function nodes, check out this flow.
Comments