Vista Sidebar Gadget

Got a program that plays well with SABnzbd? Share it here!

Re: Vista Sidebar Gadget

Postby pieteckhart » May 7th, 2008, 4:40 am

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/
User avatar
pieteckhart
Release Testers
Release Testers
 
Posts: 139
Joined: April 30th, 2008, 10:34 am
Location: Netherlands

Re: Vista Sidebar Gadget

Postby yoppybt » May 9th, 2008, 5:14 pm

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.
yoppybt
Newbie
Newbie
 
Posts: 3
Joined: May 9th, 2008, 5:03 pm

Re: Vista Sidebar Gadget

Postby pieteckhart » May 10th, 2008, 9:05 am

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/
User avatar
pieteckhart
Release Testers
Release Testers
 
Posts: 139
Joined: April 30th, 2008, 10:34 am
Location: Netherlands

Re: Vista Sidebar Gadget

Postby kizer8 » May 14th, 2008, 2:03 pm

Any new version yet?

Thanks,
Kizer
kizer8
Newbie
Newbie
 
Posts: 38
Joined: April 21st, 2008, 8:00 am

Re: Vista Sidebar Gadget

Postby neilt0 » June 3rd, 2008, 2:14 pm

bump
User avatar
neilt0
Full Member
Full Member
 
Posts: 120
Joined: January 22nd, 2008, 5:16 am

Re: Vista Sidebar Gadget

Postby ferno » June 5th, 2008, 4:59 pm

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.
ferno
Jr. Member
Jr. Member
 
Posts: 52
Joined: March 19th, 2008, 6:49 pm

Re: Vista Sidebar Gadget

Postby stborchert » June 7th, 2008, 8:22 am

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
stborchert
Newbie
Newbie
 
Posts: 2
Joined: June 7th, 2008, 8:13 am

Re: Vista Sidebar Gadget

Postby shypike » June 7th, 2008, 2:05 pm

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16548
Joined: January 18th, 2008, 1:49 pm

Re: Vista Sidebar Gadget

Postby stborchert » June 9th, 2008, 4:58 pm

Thanks, this works!
stborchert
Newbie
Newbie
 
Posts: 2
Joined: June 7th, 2008, 8:13 am

Re: Vista Sidebar Gadget

Postby kizer8 » June 22nd, 2008, 8:57 pm

Any new version yet?

Thanks,
Kizer
kizer8
Newbie
Newbie
 
Posts: 38
Joined: April 21st, 2008, 8:00 am

Re: Vista Sidebar Gadget

Postby pieteckhart » July 1st, 2008, 4:51 am

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=addfi ... rd=*******

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
pieteckhart
Release Testers
Release Testers
 
Posts: 139
Joined: April 30th, 2008, 10:34 am
Location: Netherlands

Re: Vista Sidebar Gadget

Postby switch » July 1st, 2008, 8:34 am

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
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Vista Sidebar Gadget

Postby pieteckhart » July 1st, 2008, 12:28 pm

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
pieteckhart
Release Testers
Release Testers
 
Posts: 139
Joined: April 30th, 2008, 10:34 am
Location: Netherlands

Re: Vista Sidebar Gadget

Postby switch » July 1st, 2008, 12:38 pm

It is sent like an upload form.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Vista Sidebar Gadget

Postby pieteckhart » July 1st, 2008, 6:18 pm

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/
User avatar
pieteckhart
Release Testers
Release Testers
 
Posts: 139
Joined: April 30th, 2008, 10:34 am
Location: Netherlands

PreviousNext

Return to Third-party Addons