physical-ui v1.0.0
#physical-ui
Physical interface for Radiodan, using the GPIO pins of the Raspberry Pi. This probably won't compile on any other platform.
Currently a counterpart of the Magic Button web app.
Installing
npm installRunning
bin/server path/to/config.jsonOn non-Pi systems, specify a mock wiring-pi library should be used. Calls to this mock won't fail, but they won't do anything either.
WIRING_PI=mock bin/server path/to/config.jsonDevelopment
JSON config file is used to specify pins and initial state for buttons, LEDs and rotary encoders. lib/bootstrap.js is where all of this is setup.
REPL (Experimental)
A read-eval-print-loop (REPL) is available to control the server from a utility program bin/repl. They communicate via a socket which is specified on startup:
REPL=/tmp/repl.sock bin/server path/to/config.jsonConnect to the server process by specifing the same socket path:
bin/repl /tmp/repl.sockYou should now have a repl for manipulating the physical UI objects.