Skip to content
A node client for sending stuff following the Flaschen Taschen protocol
Branch: master
Clone or download
mpmckenna8 changed the example in the readme to actually use the new init helper…
… and to use jimp instead of imagemagick bc it should be much simpler to get going with. Though the ability to add legible text has diminished.
Latest commit 3329aad May 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Made some simple changes to make it easier to init things then to not… Apr 21, 2019
images Just moved some stuff around and deleted the logging with strigifies … Nov 30, 2017
test Cleaned up the code a little bit and moved my test.js to be called im… May 3, 2017
.gitignore Initial commit Jan 5, 2017
LICENSE Initial commit Jan 5, 2017
index.js
package.json changed version number. Apr 22, 2019
readme.md changed the example in the readme to actually use the new init helper… May 10, 2019

readme.md

Node Flaschen Taschen thing

Trying to make a simple thing for people to send stuff to the big light thing at Noisebridge.

see: https://github.com/hzeller/flaschen-taschen

and come see it and interact in person.

Elephant image from https://pixabay.com/en/three-d-3d-abstract-art-elephant-1781590/

Usage:

For some examples of how to use this module look in the tests directory, I think

But i don't think npm will let you install the package without imagemagick so make sure you have that installed.

So you can:

npm install flaschenode

And if there are no errors you should be ready to start interacting with the flaschen-taschen.

Basically it gives you an object and you create a datagram as a Buffer as the data attribute and then send it to the flaschen-taschen.

To see if everything works you should just to install this and then run copy one of the example scripts into your directory and hack on it.

So to just send a simple image:

// simple example to make all the pixels on the flaschen taschen to light up white (some might not have all rg and b working tho)

var flaschen = require('flashenode');

// uncomment if sending to local server
//flaschen.hostname = "localhost"
flaschen.initBuffer();


var color = [255, 255, 255];

for(i=0; i < flaschen.width; i++){
  for(j=0; j < flaschen.height; j++){
    flaschen.set(i, j, color)
  }
}

flaschen.show();

You can’t perform that action at this time.