This is a web interface for running CLI scripts as detached subprocesses at the click of a button.
It uses the EmberJS framework on the client and the Flask python web server to launch and moniter processes via desub.
- Create or activate a chirpradio-webcontrol virtualenv
- Make sure that you have chirpradio-machine
configured properly; install it into the virtualenv with
python setup.py develop
- From the chirpradio-webcontrol directory, do
$ pip install -r requirements.txt
- copy
settings_local-dist.py
tosettings_local.py
. Add any custom settings to it.
In settings_local.py
you'll find the following options:
- LIVE_RUN_IS_AVAILABLE
- Setting this to
True
allows the client to run scripts with side effects. IfFalse
, the client will only be offered read only processes. See the Router for more info.
- Setting this to
- DEBUG
- Setting this to
True
enables pretty stack traces to result from server errors and causes the application router to log its activity in the browser console.
- Setting this to
- TRAKTOR_PATH
- The Traktor directory in your local environment; used when updating the traktor
.nml
file.
- The Traktor directory in your local environment; used when updating the traktor
From the chirpradio-webcontrol directory, with the chirpradio-machine virtualenv activated, do
python server.py
Ember is a relatively young JS MVC framework. It's tremendously powerful, concise, and convention-driven. But it also can be kind of hard to wrap your head around how it works at first. And the official documentation isn't great yet (but it's getting better all the time!). So, if you want to read up on it, by far the most useful resource I've encountered concerning Ember is Trek's Advice on & Instruction in the Use Of Ember.js.