Startup Sabnzbd box using WOL after detecting Newzbin Bookmarks

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
timecmdr
Newbie
Newbie
Posts: 4
Joined: January 22nd, 2009, 7:10 am

Startup Sabnzbd box using WOL after detecting Newzbin Bookmarks

Post by timecmdr »

Hi Guys,

I’m Looking for a bit of help. It’s tenuously  Sabnzbd related but I think it will assist a few people.

I have a laptop based ubuntu server (low Power Usage) running at home as a gateway to my home network. I also have a Linux based XBMC media server sat under my TV with sabnzbd running at startup.

When I'm after a new movie I bookmark it on Newzbin then SSH to my laptop and send a Wake on lan packet to my media server. The media server starts up and then sabnzbd then checks for bookmarks, downloads, unrars and then shutsdown the media server. Sweet!

However! I wish to cut out the SSH step by getting my laptop server to check for the bookmarks and on finding send the WOL packet. I know this must be possible as sabnzbd can check.

I've messed with WGET but not managed to get to the bookmarks page, I was wondering if someone could explain how Sabnzbd interfaces with Newzbin or provide a way of checking for a bookmark.

Thanks in advance

TC
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Startup Sabnzbd box using WOL after detecting Newzbin Bookmarks

Post by shypike »

Look in the source code of SABnzbd.
Module newzbin.py.
BTW: newzbin has documented their interface quite well:
See: http://docs.newzbin.com/index.php/Newzbin_API:Bookmarks and
http://docs.newzbin.com/index.php/Newzbin_API:DirectNZB
timecmdr
Newbie
Newbie
Posts: 4
Joined: January 22nd, 2009, 7:10 am

Re: Startup Sabnzbd box using WOL after detecting Newzbin Bookmarks

Post by timecmdr »

Brilliant I didn't realize they had a documentation area.

For those interested the code to retrieve a list of bookmarks is

Code: Select all

wget --post-data "username=******&password=******&action=fetch" http://www.newzbin.com/api/bookmarks/
Post Reply