A
'use strict';
var Transmission = require('transmission');
var transmission = new Transmission({
port: 5091, // DEFAULT : 9091
host: 192.168.1.38, // DEAFULT : 127.0.0.1
username: 'admin', // DEFAULT : BLANK
password: 'admin' // DEFAULT : BLANK
});
// Get details of all torrents currently queued in transmission app
function getTransmissionStats(){
transmission.sessionStats(function(err, result){
if(err){
console.log(err);
} else {
console.log(result);
}
});
}