node-deluge
v1.0.2
Published
A simple Deluge NodeJs API interface/wrapper, asynchronous NodeJs module to interact with the Deluge torrent client API.
Downloads
11
Readme
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-deluge
USAGE
First 'require' the package into your project node-deluge accepts 3 parameters as input:
hostname:
your server's url, eg.deluge.nusrath.com
or192.168.1.111
password:
your server'spassword
port:
theport
your server consumes - the default is8112
, if you are running the default port, usenull
here
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