Displaying stats in Mirc

Got a program that plays well with SABnzbd? Share it here!
FouT
Newbie
Newbie
Posts: 4
Joined: March 31st, 2008, 4:13 am

Displaying stats in Mirc

Post 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
Free grammar and spelling errors for everyone!
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: Displaying stats in Mirc

Post 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.
bugmenot
Full Member
Full Member
Posts: 102
Joined: January 30th, 2008, 9:25 pm

Re: Displaying stats in Mirc

Post 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
Last edited by bugmenot on October 24th, 2008, 1:49 am, edited 1 time in total.
bugmenot
Full Member
Full Member
Posts: 102
Joined: January 30th, 2008, 9:25 pm

Re: Displaying stats in Mirc

Post 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...
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Displaying stats in Mirc

Post 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
Last edited by rascalli on October 27th, 2008, 12:01 pm, edited 1 time in total.
bugmenot
Full Member
Full Member
Posts: 102
Joined: January 30th, 2008, 9:25 pm

Re: Displaying stats in Mirc

Post 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
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Displaying stats in Mirc

Post by rascalli »

yep all needed apps are installed
bugmenot
Full Member
Full Member
Posts: 102
Joined: January 30th, 2008, 9:25 pm

Re: Displaying stats in Mirc

Post 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
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Displaying stats in Mirc

Post by rascalli »

Other scripts are loading & working
Lordfunkey
Newbie
Newbie
Posts: 7
Joined: March 1st, 2008, 10:03 am

Re: Displaying stats in Mirc

Post by Lordfunkey »

iam to is geting this error...  and have done all u sad and still same..  any other tips ?
Lordfunkey
Newbie
Newbie
Posts: 7
Joined: March 1st, 2008, 10:03 am

Re: Displaying stats in Mirc

Post 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
JPA
Newbie
Newbie
Posts: 9
Joined: November 20th, 2008, 12:19 pm

Re: Displaying stats in Mirc

Post by JPA »

Anyone got a mirror for this? I'd like to try it but the original link no longer works. :)
FouT
Newbie
Newbie
Posts: 4
Joined: March 31st, 2008, 4:13 am

Re: Displaying stats in Mirc

Post by FouT »

Any update on this?

I keep getting the same error, cant figure out why.
Im on vista btw.
Free grammar and spelling errors for everyone!
FouT
Newbie
Newbie
Posts: 4
Joined: March 31st, 2008, 4:13 am

Re: Displaying stats in Mirc

Post 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)
Last edited by FouT on February 28th, 2009, 6:39 am, edited 1 time in total.
Free grammar and spelling errors for everyone!
rollingeyeball
Release Testers
Release Testers
Posts: 181
Joined: January 30th, 2009, 12:26 pm

Re: Displaying stats in Mirc

Post by rollingeyeball »

I think the script poster is longgone tbh, But I'll bump
Maybe someone else can have a crack?
Post Reply