Hello!
You made a great miner!
Some time ago, I made this fork
https://github.com/webgkv/greenTeaAt the same time, I am not a programmer, but rather an advanced user. And for the most part I develop this fork as a hobby.
And so I need your help, that the miniZ would have the opportunity to work with this script. Saw you have done something like this for hiveOS.
In more detail, its not a problem to launch a miniZ with a script. The problem is in obtaining data from the miner, since he does not have standard api.
So maybe you can tell me how should look the code for your miner api like this:
"Optiminer" {
$Request = Invoke-HTTPRequest $Server $Port "" 5
if ($Request) {
$Data = $Request | ConvertFrom-Json
$HashRate = [double]($Data.solution_rate.Total."60s" | Measure-Object -Sum).sum
if (-not $HashRate) { $HashRate = [double]($Data.solution_rate.Total."5s" | Measure-Object -Sum).sum }
}
}
This is a piece of code from a file
https://github.com/yuzi-co/Forager/blob/master/Include.ps1 Thanks for your help!