Page 2 of 17

Re: Vista Sidebar Gadget

Posted: May 7th, 2008, 3:40 am
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!

Re: Vista Sidebar Gadget

Posted: May 9th, 2008, 4:14 pm
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.

Re: Vista Sidebar Gadget

Posted: May 10th, 2008, 8:05 am
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!

Re: Vista Sidebar Gadget

Posted: May 14th, 2008, 1:03 pm
by kizer8
Any new version yet?

Thanks,
Kizer

Re: Vista Sidebar Gadget

Posted: June 3rd, 2008, 1:14 pm
by neilt0
bump

Re: Vista Sidebar Gadget

Posted: June 5th, 2008, 3:59 pm
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.

Re: Vista Sidebar Gadget

Posted: June 7th, 2008, 7:22 am
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

Re: Vista Sidebar Gadget

Posted: June 7th, 2008, 1:05 pm
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.

Re: Vista Sidebar Gadget

Posted: June 9th, 2008, 3:58 pm
by stborchert
Thanks, this works!

Re: Vista Sidebar Gadget

Posted: June 22nd, 2008, 7:57 pm
by kizer8
Any new version yet?

Thanks,
Kizer

Re: Vista Sidebar Gadget

Posted: July 1st, 2008, 3:51 am
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

Re: Vista Sidebar Gadget

Posted: July 1st, 2008, 7:34 am
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).

Re: Vista Sidebar Gadget

Posted: July 1st, 2008, 11:28 am
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!

Re: Vista Sidebar Gadget

Posted: July 1st, 2008, 11:38 am
by switch
It is sent like an upload form.

Re: Vista Sidebar Gadget

Posted: July 1st, 2008, 5:18 pm
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