Makey Makey Button Server
This is a little Node.js server/client that uses Web sockets to transmit button press events across hosts.
Installation
Install the makey-button
npm package globally:
npm install -g makey-button
Use
To run the server, use makey-button-server
with the -p
flag to specify
what port the sockets should listen on:
makey-button-server -p 7788
Run the client using the host -h
, button -b
and command -e
required
flags. For example, this will connect to myhost:7788
, listen for
presses to button a
and run say 'button pressed'
when the button is
pressed:
makey-button -h myhost:7789 -b a -e "say 'button pressed'"