Post
Topic
Board Mining (Altcoins)
Re: CMiner - Your new Ethereum Mining Software (En / Cn / Ru)
by
ComputeLabs
on 17/12/2021, 07:53:06 UTC
How is the API looks like? Do you take a API format from another miner to see hashrate and so on in HiveOS?

Hello Sir.

Well, the API does not mimic any existing miner at the moment, but is indeed used by the custom miner package we did build for HiveOS. In fact the current Api was heavily inspired by the requirements of the Hive custom miner packages, but it is not final yet. For example we plan to add the GPU names, the watts consumed as well as the accepted and rejected shares per graphic card in the next version.

At the moment the API output is a json file over http (so it can be requested via curl) with the following format - here an example of a 3070 LHR + 3070 non LHR.

Code:
{
    "total_hs": 102656.72095372647,
    "hs": [41565.117000464095, 61091.603953262376],
    "hs_units": "khs",
    "temp": [48,61],
    "fan": [40,44],
    "uptime": 390,
    "ver": "21.12.15",
    "ar": [12,0],
    "bus_numbers": [2,3]
}

You see the interface is very basic at the moment, but in our opinion a solid base to build upon.