Created
March 5, 2014 20:53
-
-
Save brandon-barker/9376342 to your computer and use it in GitHub Desktop.
Connect to sgminer API and return a summary using node-xgminer - https://www.npmjs.org/package/xgminer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xgminer = require('../lib/xgminer'); | |
var MinerAPI = new xgminer('Miner 1', '192.168.0.111', 4028); | |
MinerAPI.send('summary', '').then(function (res) { | |
console.log(res); | |
}, function (err) { | |
console.log(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment