NerdMiner_v2 icon indicating copy to clipboard operation
NerdMiner_v2 copied to clipboard

API to check miner status or configure mining pool

Open PSLLSP opened this issue 1 year ago • 7 comments

Nerdminer has WiFi connectivity and it has IP address. I can ping it, ping works. Unfortunately, I cannot find any API to check status of the miner, to check firmware version, uptime, hashrate, temperature, number of solved blocks, etc, etc

There is well defined API for miners, it is documented here

I think that implementing such API will open new possibilities for NerdMiner. It will be possible to run local monitoring server that will report status of each miner, to save data to log file, to change configuration from user friendly UI...


cgminer has simple PHP page to access API, an example.There were advanced management systems for cgminer API, one of them was Minera. Unfortunately, Minera, it is not maintained anymore... It was replaced with systems like HiveOS those are more universal and with great support.


Another useful function for network API will be "identify", it could be that LED at NerdMiner will blink for few seconds or that API can define color of LED and LED will shine that color for few seconds. Could be useful to find a troublemaker. In the case you have just one NerdMiner, that is not really useful but one you have more, you will find such feature useful...

PSLLSP avatar Nov 07 '23 15:11 PSLLSP

I would love to have this status too. It would be nice to have it as another screen on device or accessible via REST API or both.

sany3001 avatar Nov 08 '23 07:11 sany3001

That would be great. then I could integrate that into the iobroker

Webranger2 avatar Nov 11 '23 16:11 Webranger2

I added #203 for something like this, too!

dwightmulcahy avatar Nov 22 '23 22:11 dwightmulcahy

+1 for this as well but it would be great if you return it using some of the bitaxe api naming conventions in api Bitaxe, then we can easily include in the same monitoring. :-)
Here's a sample

{
        "power":        13.359999656677246,
        "voltage":      4781.25,
        "current":      2795,
        "fanSpeed":     4503,
        "temp": 51,
        "hashRate":     655.23875991751333,
        "bestDiff":     "187M",
        "freeHeap":     177464,
        "coreVoltage":  1200,
        "coreVoltageActual":    1188,
        "frequency":    525,
        "ssid": "MySSID",
        "wifiStatus":   "Connected!",
        "sharesAccepted":       23563,
        "sharesRejected":       0,
        "uptimeSeconds":        287369,
        "ASICModel":    "Nerdminer?",
        "stratumURL":   "public-pool.io",
        "stratumPort":  21496,
        "stratumUser":  "bc1qy1111111111111111111111111111111111111.miner",
        "version":      "v1",
        "boardVersion": "1",
        "runningPartition":     "ota_0",
        "flipscreen":   1,
        "invertscreen": 0,
        "invertfanpolarity":    1,
        "autofanspeed": 0,
        "fanspeed":     60
}

I'm in the middle of writing a Netdata plugin to monitor the Bitaxe, so would be cool to standardise on api params for reuse within the OSMU projects.

Cheers

Thanks

ChimpRocket avatar Apr 18 '24 23:04 ChimpRocket

its already been done?

jeanfrodrigues avatar Jun 03 '24 15:06 jeanfrodrigues

I am looking for this now as well, I have people asking about an integration with it. Happy to provide support on API design if needed, but my C is not the strongest...

Reference issue - https://github.com/UpstreamData/pyasic/issues/176

b-rowan avatar Jul 27 '24 19:07 b-rowan

Any updates on this? Would love to have a little API

toberkel avatar Sep 25 '24 08:09 toberkel