Hi I have a question about the automation of my SABnzbd, maybe it's a bit complicated, but I hope you understand and hopefully help me
I have a Zotac AD02 with openelec installed, on this device I also run SABnzbd 0.6.14 .
I use my router (Asus RT-n16 with DDWRT) to wakeup my Zotac in the middle of the night. On startup SABnzbd checks my Dropbox folder for new .nzb files. After importing, downloading and unpacking my Zotac will power off.
My question/problem is:
When my router powers on my SABnzbd (which happens every night) and there are NO nzb files to download. There is no job to complete/finish so there is no shutdown signal.
Do any of you have a way to check, either from my router, or my Zotac/openelec if it boots with an empty queue and therefor shuts down again.
Other ideas are welcome as long that the result is, that my Zotac does not stand idle the whole night.
Thanks for the replies!
automated shutdown on empty queue
Re: automated shutdown on empty queue
Assuming there is a startup script for SABnzbd,
add a line to test for the presence of an NZB file before you start SABnzbd,
otherwise: power off.
add a line to test for the presence of an NZB file before you start SABnzbd,
otherwise: power off.
Re: automated shutdown on empty queue
I thought of this, but what happens if I want to watch a movie on my Zotac, SABnzbd starts up and shuts-down the Zotac immediately when the script runs. Therefor it will be impossible to start my Zotac unless there are nzb files to download.shypike wrote:Assuming there is a startup script for SABnzbd,
add a line to test for the presence of an NZB file before you start SABnzbd,
otherwise: power off.
I think this isn't the solution or do I understand it wrong.
Re: automated shutdown on empty queue
Well, you script should also check the time of day
Re: automated shutdown on empty queue
OK, my next question is how do I check if the queue is empty?
I have created a autorun.sh script which runs on startup (To start my Dropbox sync) but how do I add the "check time" and "check empty queue" in a specific timeslot.
(I'm not much of a scriptor)
I have created a autorun.sh script which runs on startup (To start my Dropbox sync) but how do I add the "check time" and "check empty queue" in a specific timeslot.
(I'm not much of a scriptor)
Re: automated shutdown on empty queue
You can ask that in the Scripts board.