SABnzbd stats script for XChat (linux)

Got a program that plays well with SABnzbd? Share it here!
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

Thanks, you update too fast  ;D
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

I am running into a problem this is on Mepis 8 linux which is based on Debian using Xchat 2 when I try to run the script I get this output in the chat window

Tcl plugin ERROR (alias SAB)
Error fetching data from http://192,168,0.120/sabnzbd/:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

Now I have edited the sabgetdata as follows

host=http://192.168.0.120/sabnzbd/
port=8090

when I access sabnzbd in firefox I use the following address
http://192.168.0.120:8090/sabnzbd/

looking at the script output it looks like the port is in the wrong location in the address
Last edited by Shadowtester on June 30th, 2009, 7:53 pm, edited 1 time in total.
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

that was just a type in the post its correct in the file like I said it seems that the port is being put in the wrong location on the address maybe due to the fact that my sabnzbd is not in the root directory of the webserver but in its own directory I also have other thing applications which also use the webserver which is why the separate directories
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

Not sure if it will make a difference, but can you try:  host=http://192.168.0.120:8090/sabnzbd/
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

Tried that leaving he port= line empty however get the same kind of error but it shows an address of   http://192.168.0.120:8090/sabnzbd/: so for some reason it was adding an extra : at the end of the line.
Last edited by Shadowtester on June 30th, 2009, 9:35 pm, edited 1 time in total.
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

Thats weird..
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: SABnzbd stats script for XChat (linux)

Post by jcfp »

Shadowtester wrote: Now I have edited the sabgetdata as follows

host=http://192.168.0.120/sabnzbd/
port=8090
It expects the host, not a full url, i.e. just "192.168.0.120"
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

ok I changed it to

host=192.168.0.120
port=8090

Now I am getting this error

Tcl plugin ERROR (alias SAB)
Error fetching data from 192,168,0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

make sure you have sabgetdata and sab.tcl located at ~/.xchat2, also you must have xml2 installed.
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

Yes they are both in the /.xchat2 directory and yes xml2 is installed I think the problem is due to sabnzbd being installed in the www/sabnzbd folder of my webserver vs the www directory.
fredlkrue
Newbie
Newbie
Posts: 30
Joined: June 14th, 2009, 5:00 pm

Re: SABnzbd stats script for XChat (linux)

Post by fredlkrue »

why is it giving this error message:
Tcl plugin ERROR (alias SAB)
Error fetching data from 192,168,0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

check if "192,168,0.120" is without commas...
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

just retyped the host again making sure I am using . vs , and here is the output from xchat


Tcl plugin ERROR (alias SAB)
Error fetching data from 192.168.0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"
lommes
Newbie
Newbie
Posts: 23
Joined: June 24th, 2009, 3:23 am

Re: SABnzbd stats script for XChat (linux)

Post by lommes »

go to your .xchat2 directory, run the script from console like ./sabgetdata speed

are you using username and password? contains the password any special characters?
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: SABnzbd stats script for XChat (linux)

Post by Shadowtester »

no I do not have username or password set for access and here is the output from the console


shadowtester@Shuttle:~/.xchat2$ ./sabgetdata speed
Error fetching data from 192.168.0.120:8090
shadowtester@Shuttle:~/.xchat2$


Could it be something due to the sabnzbd not being install in the webserver's root directory but in its own directory off of the webserver's root directory the url I have to use to access sabnzbd is  http://192.168.0.120:8090/sabnzbd/ if its looking for the files in the webserver's root directory its not going to find them and get any error fetching data. Previously I have tried the following in as the host with no luck  host=192.168.0.120/sabnzbd/ with port=8090 and ended up with an error fetching data from 192.168.0.120/sabnzbd/:8090. I have also tried the following as host host=http://192.168.0.120:8090/sabnzbd/ with the host= empty and I ended up with an error fetching data from http//192.168.0.120:8090/sabnzbd/: an extra : at the end of the line
Last edited by Shadowtester on July 2nd, 2009, 8:32 am, edited 1 time in total.
Post Reply