Skip to content

18sg/SHETCClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SHET C Client

A command line client for SHET.

Requirements

Installation

$ 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

Usage

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.

Calling Actions

$ shet /tom/notify "hi"
null

Getting Properties

$ shet /tom/audio/input
1

Setting Properties

$ shet /tom/audio/input 1
null

Watching Events

$ 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.

About

Command line clients for SHET, written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published