Page 1 of 2

Displaying stats in Mirc

Posted: September 6th, 2008, 5:39 pm
by FouT
Does anyone happen to know a way to display Sabnzbd stats in Mirc, I know it officially isnt sabnzb related because an mirc script should be able to read the info from sabnzbd, but any help would be greatly appreciated :P

Re: Displaying stats in Mirc

Posted: September 7th, 2008, 11:17 am
by inpheaux
I don't have a script for you, but it should be pretty trivial to write one if your script has access to the internet. Check out this page on the wiki, and scroll down to "Brief queue status report (json or xml)". Have your script stat that URL and you'll have an XML version of your queue to play with and display bits of as you see fit.

Re: Displaying stats in Mirc

Posted: October 22nd, 2008, 7:46 am
by bugmenot
i build one for myself thats pretty basic, it currently outputs like this:

(14:38:46) (@me) I currently have 2 jobs with a total size of 369.36 MB in my downloadqueue.
(14:38:46) (@me) Downloading with 311.1 KB/sec, MB Left: 315.34 MB, Time Left: 0:17:17
(14:38:46) (@me) Current job: Bleach_191_(Eng_Subs) , MB Left: 130.56 MB

Re: Displaying stats in Mirc

Posted: October 24th, 2008, 1:59 am
by bugmenot
ok it's done, get it here: http://www5.zippyshare.com/v/33268876/file.html

Requirements: Mirc 6.* or greater, installed .NET Framework 2.0

Installation:
1. unpack the 3 files (sab4mirc.mrc, sab4mirc.dll and sab4mirc.ini) to your mirc dir
2. edit sab4mirc.ini to point to your hosts xml (standart = http://localhost:8080/sabnzbd/api?mode= ... output=xml)
3. fire up mirc and load the script with: /load -rs sab4mirc.mrc

If all went ok you should see this: *** Sab4Mirc by Ize initialized...
and you can now use the script :)

Usage:
You can rightclick in channels and use the Sabnzbs 4 Mirc menu with the following options:

*Show complete stats - generates Output like this:
(08:48:03) (@Ize) .oO SABnzbd Mircstats Oo.
(08:48:03) (@Ize) 3 job(s) with a total size of 3994.28 MB in downloadqueue.
(08:48:03) (@Ize) Speed 345.94 KB/sec, MB Left: 3223 MB, Time Left: 2:39:00
(08:48:03) (@Ize) Current job: the_name_of_what_you_download_here , MB Left: 39.51 MB, Time Left: 1min 56secs

*Show current job -  generates Output like this:
(08:48:08) (@Ize) SABnzbd - Current job: the_name_of_what_you_download_here, MB Left: 37.61 MB, Time Left: 1min 51secs

*Pimp -  generates Output like this:
(08:48:12) (@Ize) I'm using .·´¯`·-> SABnzbd Mircstats by Ize <-·´¯`·.

*Unload Script - unloads the script and gives feedback like this:
Sab4Mirc by Ize unloaded...

Re: Displaying stats in Mirc

Posted: October 27th, 2008, 10:31 am
by rascalli
Looks like a nice script, have some questions :


* will this also work for sabnzbd's that are hosted on a server  ?
* If sabnzbd is pw protected , does it work then ?



I get this :

*** Sab4Mirc by Ize initialized...
* No such Com 'lMC' open
* No such Com 'lMC' open

Re: Displaying stats in Mirc

Posted: October 27th, 2008, 12:29 pm
by bugmenot
hmm strange, do you have the latest .net framework installed?

and getting the info from servers works fine, just change the url in the ini file...

i haven't added explicit authentication stuff and just use .nets webclient functions... you can try using http://username:[email protected]/announce.xml

Re: Displaying stats in Mirc

Posted: October 27th, 2008, 11:42 pm
by rascalli
yep all needed apps are installed

Re: Displaying stats in Mirc

Posted: November 1st, 2008, 1:38 am
by bugmenot
the only thing i can think of is that you haven't allowed your mirc to load and execute dll's

open mirc's options (alt+o) and go down all the way to other and there open the lock sub-option

on the right you'll see disabled commands, uncheck all and reload the script

Re: Displaying stats in Mirc

Posted: November 4th, 2008, 1:35 am
by rascalli
Other scripts are loading & working

Re: Displaying stats in Mirc

Posted: November 9th, 2008, 7:30 am
by Lordfunkey
iam to is geting this error...  and have done all u sad and still same..  any other tips ?

Re: Displaying stats in Mirc

Posted: November 9th, 2008, 7:35 am
by Lordfunkey
after i installed this script i get errors on other script to... i get this

* No such Com 'lMC' open (line 15, sab4mirc.mrc)    <---- when trying to unload another script
* No such Com 'lMC' open  <--- when trying to show stats

Re: Displaying stats in Mirc

Posted: January 3rd, 2009, 11:33 am
by JPA
Anyone got a mirror for this? I'd like to try it but the original link no longer works. :)

Re: Displaying stats in Mirc

Posted: February 7th, 2009, 3:00 am
by FouT
Any update on this?

I keep getting the same error, cant figure out why.
Im on vista btw.

Re: Displaying stats in Mirc

Posted: February 28th, 2009, 6:33 am
by FouT
*bump*kick*bump* :P

just realized something, is it possible that this error is caused by some part of the Developing Enviornment you used to create the DLL we lack? (looks like you made it with visual studio)

Re: Displaying stats in Mirc

Posted: March 1st, 2009, 3:32 am
by rollingeyeball
I think the script poster is longgone tbh, But I'll bump
Maybe someone else can have a crack?