nq-miner
nq-miner copied to clipboard
API compatibility
If possible could you please add other stats to your api so awesome miner can read it. Right now it only reads total hashrate. It's missing the pool, shares, hw errors, number of gpus and their stats, clock, fan, temps, and performance. Thanks
it actually exposes almost everything except HW temps/fans https://github.com/tomkha/nq-miner/blob/master/index.js#L270
@jch9678 run it with API enabled
./nq-miner -t cuda -m dumb -p eu.nimpool.io:8444 -a "NQ07 0000 0000 0000 0000 0000 0000 0000 0000" --api
and then
$ curl -s http://localhost:3110/api | jq .
{
"mode": "dumb",
"network": "main",
"pool": "eu.nimpool.io:8444",
"wallet": "NQ07 0000 0000 0000 0000 0000 0000 0000 0000",
"balance": 0.02323,
"confirmedBalance": 0.02323,
"deviceName": "mat",
"deviceId": 2897362820,
"shares": 1,
"errors": 0,
"totalHashrate": 101952,
"hashrates": [
101952
],
"shareDifficulty": 20.0000190735,
"networkDifficulty": 5034347.7979871975,
"networkHashrate": 5498850288.1481495,
"devices": [
{
"idx": 0,
"enabled": true,
"name": "GeForce GTX 1050"
}
],
"uptime": 26,
"version": "NQ Miner 0.99.7 CUDA"
}
Gotcha, thanks. I guess the problem is awesome miner doesn't officially support nq-miner. I had to choose noncer-pro in awesome miner for the total hashrate to show up. Thanks for pointing this out.
I've contacted them, who knows if they'll implement it. If they do, is it possible to expose the temps/fans?