Page 1 of 1

Free buttons in the web interface to assign free commands

Posted: December 31st, 2009, 8:52 am
by pmxk
Hi all,

it could be good to have some free buttons to do some actions.
For example, to shutdown the machine immediatly, or anything else.
The commands linked to the button and the label of the button will be defined in the ini file.
Sort of "tools buttons"  :)
Thanks for all !
regards
pmxk

Re: Free buttons in the web interface to assign free commands

Posted: December 31st, 2009, 3:37 pm
by inpheaux
This sounds out of scope for SABnzbd itself. However, you should be able to implement this with a Greasemonkey script + the API.

Specifically, you'd want api?mode=shutdown.

Re: Free buttons in the web interface to assign free commands

Posted: January 1st, 2010, 6:12 am
by pmxk
Hi, yes, it's out of scope. However, when a server is dedicated to sabnzb, then it's in the scope  ;).
The API can't help me because mode=shutdown stop sabnzb daemon only, but not the server itself.
All the API is dedicated to the sabnzb daemon.
I can do it by myself with a cgi script, but I have to run an http server too, it's heavy regarding the sabnzb solution.
Regards
pmxk