Connect to sgminer API and return a summary using node-xgminer