I'm working on a script that can be used with SABNZBD.
SABNZBD is a small web based program that is widely used on NAS servers and NMT's
The program also produces a XML file with status info. (see Att.)
Initially, (to get on the right track) I want to make 3 HS devices to store some info in.
Let's say: paused = _50, kbpersec = _51 and noofslots = _52.
How would i go about?
This is what I think should be the start of the script, but do I read the nodes and put them in the devices. (the last part I understand)
Regards,
SABNZBD is a small web based program that is widely used on NAS servers and NMT's
The program also produces a XML file with status info. (see Att.)
Initially, (to get on the right track) I want to make 3 HS devices to store some info in.
Let's say: paused = _50, kbpersec = _51 and noofslots = _52.
How would i go about?
This is what I think should be the start of the script, but do I read the nodes and put them in the devices. (the last part I understand)
Code:
sub main() Set oXML = CreateObject("Microsoft.XMLDOM") oXML.ValidateOnParse = False oXML.async="false" hs.setDeviceString virtualdevice, "" If (oXML.load("10.0.0.152:8081/sabnzbd/api?mode=qstatus&output=xml&apikey=550b956bf290d91ccb033382b3337acd")) then processdata(oXML) else hs.writelog "SABNZBD+", "Failed to load XML file" end if end sub
Comment