Free buttons in the web interface to assign free commands

Want something added? Ask for it here.
Post Reply
pmxk
Newbie
Newbie
Posts: 6
Joined: December 31st, 2009, 8:34 am

Free buttons in the web interface to assign free commands

Post 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
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

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

Post 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.
pmxk
Newbie
Newbie
Posts: 6
Joined: December 31st, 2009, 8:34 am

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

Post 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
Post Reply