A command line client for SHET.
$ git clone git://github.com/18sg/SHETCClient.git
$ cd SHETCClient
$ scons
$ sudo scons install
Alternatively, Arch users can install the shet-c-client-git package from the AUR. Debian users can first switch to Arch, then install the shet-c-client-git package from the AUR.
Set the shet server to use in your .bashrc
:
export SHET_HOST="104.97.120.33"
If you want tab completion:
source shet_complete
All parameters are either parsed as JSON, or failing that, used as a string. All output is JSON-formatted. All errors cause the command to exit with a negative return code.
$ shet /tom/notify "hi"
null
$ shet /tom/audio/input
1
$ shet /tom/audio/input 1
null
$ shet /lounge/panel/pressed
[ [ 1, 1 ], [ [ 0, 3 ], false, false ] ]
[ [ 1, 1 ], [ [ 1, 4 ], false, false ] ]
Each event is printed on it's own line, as an array of parameters.