Comments (3)
How to launch dual mining via command line (and not per config file)?
https://github.com/nanopool/nanominer#launching-from-command-line
from nanominer.
This is how I get hash rates for dual algo:
[Object]GetMinerData () {
$Timeout = 5 #seconds
$Data = [PSCustomObject]@{ }
$PowerUsage = [Double]0
$Request = "http://127.0.0.1:$($this.Port)/stats"
Try {
$Data = Invoke-RestMethod -Uri $Request -TimeoutSec $Timeout
}
Catch {
Return $null
}
If (-not $Data) { Return $null }
$HashRate = [PSCustomObject]@{ }
$HashRate_Name = ""
$HashRate_Value = [Double]0
$Shares = [PSCustomObject]@{ }
$Shares_Accepted = [Int64]0
$Shares_Rejected = [Int64]0
$Algorithms = @($Data.Algorithms | ForEach-Object { ($_ | Get-Member -MemberType NoteProperty).Name } | Select-Object -Unique)
ForEach ($Algorithm in $Algorithms) {
$HashRate_Name = Get-Algorithm $this.Algorithms[$Algorithms.IndexOf($Algorithm)]
$HashRate_Value = [Double]($Data.Algorithms.$Algorithm.Total.Hashrate | Measure-Object -Sum).Sum
$HashRate | Add-Member @{ $HashRate_Name = [Double]$HashRate_Value }
$Shares_Accepted = [Int64]($Data.Algorithms.$Algorithm.Total.Accepted | Measure-Object -Sum).Sum
$Shares_Rejected = [Int64]($Data.Algorithms.$Algorithm.Total.Denied | Measure-Object -Sum).Sum
$Shares_Invalid = [Int64]0
$Shares | Add-Member @{ $HashRate_Name = @($Shares_Accepted, $Shares_Rejected, $Shares_Invalid, ($Shares_Accepted + $Shares_Rejected + $Shares_Invalid)) }
}
If ($this.ReadPowerUsage) {
$PowerUsage = $this.GetPowerUsage()
}
If ($HashRate.PSObject.Properties.Value -gt 0) {
Return [PSCustomObject]@{
Date = (Get-Date).ToUniversalTime()
HashRate = $HashRate
PowerUsage = $PowerUsage
Shares = $Shares
}
}
Return $null
}
I have not tried 3/4 algo mining.
from nanominer.
Super! Thank you!
from nanominer.
Related Issues (20)
- Verus denied share
- Errors with both 3.8.5 & 3.8.6 for hiveos HOT 2
- Mining XMR, Running only 8 Minutes on ubuntu HOT 1
- v 3.8.12-linux - System exception - CUDA_ERROR_INVALID_IMAGE
- nanominer 3.8.12 : device: 0; device kernel image is invalid (CUDA_ERROR_INVALID_IMAGE)
- Unknown gpu name
- Add support for Scash
- CUDA_ERROR_INVALID_IMAGE
- Zilliqa: trying to use "stratum" mining protocol
- Please add the capacity to read the local energy cost and decide if mining is profitable accordingly
- Keeps mining Zilliqa after update
- Nanominer Not Starting Past "Updating Dataset"
- 3.9.0 (Windows): RX5700: Unreal hashrate mining EtcHash@Nicehash HOT 1
- Nanominer auto restarts even after set autoupdate=false in Nicehash Miner HOT 2
- 3.9.1: Fishhash not available for AMD RX5700 HOT 2
- Linux - suddenly exits nanominer after launching HOT 1
- Apple Sillicon support?
- Increase support for scash
- We would like to ask you to add the newly released algorithm.(ECCPOW)
- Configuration / config broken - does not work - does not load config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanominer.