Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API compatibility #2

Open
jch9678 opened this issue Jul 4, 2020 · 4 comments
Open

API compatibility #2

jch9678 opened this issue Jul 4, 2020 · 4 comments

Comments

@jch9678
Copy link

jch9678 commented Jul 4, 2020

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

@tomkha
Copy link
Owner

tomkha commented Jul 4, 2020

it actually exposes almost everything except HW temps/fans
https://github.com/tomkha/nq-miner/blob/master/index.js#L270

@tomkha
Copy link
Owner

tomkha commented Jul 4, 2020

@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"
}

@jch9678
Copy link
Author

jch9678 commented Jul 4, 2020

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.

@jch9678
Copy link
Author

jch9678 commented Jul 5, 2020

I've contacted them, who knows if they'll implement it. If they do, is it possible to expose the temps/fans?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants