Fileserver Wake-on-LAN

I have several TV shows stored on a local server that is set to sleep when not in use. Is it possible to add a feature to send a WOL for specific TV show folders if NZBDrone downloads and processes an episode from that show? An example setup I have is below:

D:\tv\show 1
D:\tv\show 2
\\server\tv\show 3

Can NZBDrone send a WOL packet if it downloads an episode from show 3? Most of the time that server is sleeping, unless I’m watching TV.

Thanks

Just an idea: currently, you could write a script and let your downloader run it.

Assuming you use sabnzbd as your downloader & completed download handling in nzbdrone:

  • write a script that looks like “if status = Ok and download = show stored on server then send WoL”
  • add it to the category in sab you use for drone, so sab will run it every time a download for that category is finished.

It does mean that the script needs to be written fuzzy enough to match any possible hit for that show, to be sure that the WoL is sent every time an episode for that show is downloaded. It’s better to send it in case of doubt rather than not, otherwise your server is sleeping and drone can’t access the path to move the file.
E.g. The Big Bang Theory: have your script match “theory” in the download directory name, assuming you have no other shows with that word in the title.

The sab forums have an entire section dedicated to post-processing scripts, and people far more knowledgeable than me, in case you need help with that :slight_smile:

Thanks for the idea! I never really thought of adding a script manually. I DO use sabnzbd, and I dabble in python (I have a movie script that scrapes imdb and moves movies to specific folders when I download them), so I should be able to figure that out. I thought it might be something others would use in drone, so I thought I would request it. I could write a script (it might be extremely sloppy, I’m not a programmer…), and post it if anyone else would like something like that.

I think most people likely run drone on the same system as their storage so I don’t see WOL being heavily used. At this time it is not something we’re going to investigate/implement.

You could use drone’s API to check where the series is stored as well, the API docs for it are on github in our wiki.