Vista Sidebar Gadget

Got a program that plays well with SABnzbd? Share it here!
User avatar
pieteckhart
Release Testers
Release Testers
Posts: 131
Joined: April 30th, 2008, 9:34 am
Location: Netherlands
Contact:

Re: Vista Sidebar Gadget

Post by pieteckhart »

hmm resize able sounds a bit hard and i never seen it on other gadgets. have you?
when the attached gadget is done i will make the detached one just like it!
SABnzbd+ Windows 7 Gadget
Manage your downloads from your desktop.
Download: http://eckhart.hopto.org/sabgadget/sabgadget2.gadget
Site: http://eckhart.hopto.org/sabgadget/
yoppybt
Newbie
Newbie
Posts: 3
Joined: May 9th, 2008, 4:03 pm

Re: Vista Sidebar Gadget

Post by yoppybt »

pieteckhart wrote: oh and ETA is the next thing on my todo list. where shall i put it? instead of speed? like you can switch between speed and ETA?
or maybe in the title (it now only says SABnzbd+) 
I have created a similar gadget for myself but never got around to creating a user interface for some hardcodes values like URL and timeouts. Therefore I never published it. However my version (which I happily use myself every day) may give you some ideas:
Image
On the top is a graph of the download speed the last few minutes. Very handy to detect is something is wrong with the download.

I put the filename on a line separate from the progress bar. The progress bar is below that.
Under the progress bar I show the remaining time (38 seconds in this example) and the ETA.
When there are more files in the queue these three lines repeat.

When you move the mouse over the gadget a 'Pause' button appears which you can use (no surprise) to pause SABnzbd.
User avatar
pieteckhart
Release Testers
Release Testers
Posts: 131
Joined: April 30th, 2008, 9:34 am
Location: Netherlands
Contact:

Re: Vista Sidebar Gadget

Post by pieteckhart »

looks great! the speed graph would look good as  a mini graph on my gadget (bottom left).
i suppose you are drawing the graph with tiny divs with each another height?


i was thinking about the indicator top left.
if it shows the play button downloads are in progress and pause says pause (wow!)
but when you move your mouse over it it swaps to what the status would be like if you click on it. i allready tried this but i was having some problems with refreshing.

would you share your code with me?

Thanks for the ideas!
SABnzbd+ Windows 7 Gadget
Manage your downloads from your desktop.
Download: http://eckhart.hopto.org/sabgadget/sabgadget2.gadget
Site: http://eckhart.hopto.org/sabgadget/
kizer8
Newbie
Newbie
Posts: 38
Joined: April 21st, 2008, 7:00 am

Re: Vista Sidebar Gadget

Post by kizer8 »

Any new version yet?

Thanks,
Kizer
User avatar
neilt0
Full Member
Full Member
Posts: 120
Joined: January 22nd, 2008, 4:16 am

Re: Vista Sidebar Gadget

Post by neilt0 »

bump
ferno
Jr. Member
Jr. Member
Posts: 52
Joined: March 19th, 2008, 5:49 pm

Re: Vista Sidebar Gadget

Post by ferno »

Hi,

Greate  gadget!

Works fine but I would like to see some functionality added, like:

Clicking (or dbl click) on the gadget opning the sabnzbd+ page in a browser (to see more info etc.).
possibility to reorder the downloads.
The bandwith gauge like the one showed in this thread.

I do not know if these options are possible but they would make this already greate gadget even better.
stborchert
Newbie
Newbie
Posts: 2
Joined: June 7th, 2008, 7:13 am

Re: Vista Sidebar Gadget

Post by stborchert »

Hi.
Very nice litte thingy ;-)
Unfortunately it didn't worked for me. My sabnzbd is running on a NAS (Synology DS207+). Its address is "192.168.1.11:8080/sabnzbd". If I insert the IP into the settings page it is converted to "192168111" (without dots) and the gadget always displays "Please Configure".
Any help would be appreciated.

greetings,

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

Re: Vista Sidebar Gadget

Post by shypike »

Try to give it a name in the "hosts" file.
Or set up proper DNS in your router, so you do not need the numeric IP address.
stborchert
Newbie
Newbie
Posts: 2
Joined: June 7th, 2008, 7:13 am

Re: Vista Sidebar Gadget

Post by stborchert »

Thanks, this works!
kizer8
Newbie
Newbie
Posts: 38
Joined: April 21st, 2008, 7:00 am

Re: Vista Sidebar Gadget

Post by kizer8 »

Any new version yet?

Thanks,
Kizer
User avatar
pieteckhart
Release Testers
Release Testers
Posts: 131
Joined: April 30th, 2008, 9:34 am
Location: Netherlands
Contact:

Re: Vista Sidebar Gadget

Post by pieteckhart »

hi all,
yesterday i started coding again :D
i already added ETA now. if you click on the speed you will toggle between kb/s and ETA.

im now working on a drag and drop feature :)

i run into some trouble with the API tough:

im tying to post to:

http://host:port/sabnzbd/api?mode=addfile&name=test.nzb&cat=&pp=&script=&ma_username=admin&ma_password=*******

but i will get the folowing error:

Code: Select all

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cphttptools.pyo", line 126, in _run
  File "cherrypy\filters\__init__.pyo", line 151, in applyFilters
  File "sabnzbd\utils\multiauth\filter.pyo", line 61, in beforeFinalize
  File "sabnzbd\interface.pyo", line 376, in api
AttributeError: 'str' object has no attribute 'filename'

im posting with javascript (this may sound weird but a sidebar gadget has more rights to the system as a website so its possible).
can someone help me with this?

am i using the API in the right way? and what do i need to call the  file that i'm posting? (or is that the name attribute?)

thanks
SABnzbd+ Windows 7 Gadget
Manage your downloads from your desktop.
Download: http://eckhart.hopto.org/sabgadget/sabgadget2.gadget
Site: http://eckhart.hopto.org/sabgadget/
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Vista Sidebar Gadget

Post by switch »

You need to be sending the full contents of the nzb files through as a post request.

Have a look at nzbdstatus' implementation for a working example, ctrl+f to "uploadFile:" (be sure to give credit if you use it).
User avatar
pieteckhart
Release Testers
Release Testers
Posts: 131
Joined: April 30th, 2008, 9:34 am
Location: Netherlands
Contact:

Re: Vista Sidebar Gadget

Post by pieteckhart »

switch wrote: You need to be sending the full contents of the nzb files through as a post request.

Have a look at nzbdstatus' implementation for a working example, ctrl+f to "uploadFile:" (be sure to give credit if you use it).
thanks i think this will solve my problem.
is the file sent as if via an upload form ($_FILES in php) or is it sent "RAW" (file_get_contents('php://input') in php)

thanks!
SABnzbd+ Windows 7 Gadget
Manage your downloads from your desktop.
Download: http://eckhart.hopto.org/sabgadget/sabgadget2.gadget
Site: http://eckhart.hopto.org/sabgadget/
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Vista Sidebar Gadget

Post by switch »

It is sent like an upload form.
User avatar
pieteckhart
Release Testers
Release Testers
Posts: 131
Joined: April 30th, 2008, 9:34 am
Location: Netherlands
Contact:

Re: Vista Sidebar Gadget

Post by pieteckhart »

thanks! im looking in to it tomorow.
would be realy cool if it works :D

(off topic)
btw i was looking at the uTorrent sidebar gadget, and i found out how they did it!
first it uploads it to an external host (!!!) and then copies an URL to the uploaded torrent to the torrent client.

it seems kinde weird but it is more easy this way, i tried it with sabnzbd and it works, but it would be nicer without an external server of course. and i think i can do it now with the code provided. thanks again :D
SABnzbd+ Windows 7 Gadget
Manage your downloads from your desktop.
Download: http://eckhart.hopto.org/sabgadget/sabgadget2.gadget
Site: http://eckhart.hopto.org/sabgadget/
Post Reply