1.0.2 • Published 10 years ago
node-deluge v1.0.2
node-deluge
A simple Deluge NodeJs API interface/wrapper, asynchronous NodeJs module to interact with the Deluge torrent client API.
INSTALLATION
npm install --save node-delugeUSAGE
First 'require' the package into your project node-deluge accepts 3 parameters as input:
hostname:your server's url, eg.deluge.nusrath.comor192.168.1.111password:your server'spasswordport:theportyour server consumes - the default is8112, if you are running the default port, usenullhere
var deluge = require('node-deluge')(hostname, password, port);Make use of the various methods
The syntax is as follows:
deluge.method(callback(json_data))METHODS
There are currently 2 methods available:
get_status this method returns as JSON the status of all torrents currently added to the client.
get_config this method returns as JSON the current configuration of the torrent client, including download paths, etc.
TODO
Include all methods mentioned in the link specified in the 'RESOURCES' section