Skip to content

Commit

Permalink
v5.0.2.1
Browse files Browse the repository at this point in the history
Changes:
- Disable Rig Monitor (www.nemosminer.com is down)

Enhancements:
- Brains: Minor speed optimizations
- Core: Minor speed optimizations
- Miners: Minor speed optimizations
- Pools: Minor speed optimizations
- Web GUI / Configuration editor: Add & remove wallets functionality

Fixes:
- Core / Include.psm1: 'Update-ConfigFile' error (Regression from 5.0.1.3)
- Core: Do not remove stats that exist on disk (Regression from 5.0.1.6)
- Core: Would not detect when MinerDataReader job has failed
- XMRig-v6.20.0: Miner did not create miner objects

Miner changes:
- GMiner-v3.42
- JayddeeCpu-v23.15
- lolMiner-v1.79
- NanoMiner-v3.8.6
- Rigel-v1.10.0
- SRBMinerMulti-v2.4.2
- TeamBlackMiner-v2.12
- TTMiner-v2023.4.3
- Wildrig-v0.39.8

Pool changes:
- ZergPool: Added *Coins pool option
  • Loading branch information
UselessGuru committed Dec 8, 2023
1 parent e940d2e commit 90777cb
Show file tree
Hide file tree
Showing 164 changed files with 9,371 additions and 15,013 deletions.
12 changes: 6 additions & 6 deletions Balances/HashCryptos.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: NemosMiner
File: \Balances\HashCryptos.ps1
Version: 5.0.2.0
Version date: 2023/11/12
Version: 5.0.2.1
Version date: 2023/12/09
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$PayoutCurrency = $Config.PoolsConfig.$Name.Wallets.psBase.Keys | Select-Object -First 1
$PayoutCurrency = $Config.PoolsConfig.$Name.PayoutCurrency
$Wallet = $Config.PoolsConfig.$Name.Wallets.$PayoutCurrency
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
$RetryInterval = $Config.PoolsConfig.$Name.PoolAPIRetryInterval
Expand All @@ -39,9 +39,9 @@ While (-not $APIResponse -and $RetryCount -gt 0 -and $Wallet) {
$APIResponse = Invoke-RestMethod $Request -TimeoutSec $Config.PoolAPITimeout -ErrorAction Ignore -Headers $Headers -UserAgent $UserAgent -SkipCertificateCheck

If ($Config.LogBalanceAPIResponse) {
"$(([DateTime]::Now).ToUniversalTime())" | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
$Request | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
$APIResponse | ConvertTo-Json -Depth 10 | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
"$(([DateTime]::Now).ToUniversalTime())" | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$Request | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$APIResponse | ConvertTo-Json -Depth 10 | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
}

If ($APIResponse.symbol) {
Expand Down
73 changes: 37 additions & 36 deletions Balances/HiveON.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,54 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: NemosMiner
File: \Balances\Hiveon.ps1
Version: 5.0.2.0
Version date: 2023/11/12
Version: 5.0.2.1
Version date: 2023/12/09
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName

$PoolConfig = $Config.PoolsConfig.$Name
$PoolConfig.Wallets.psBase.Keys | Where-Object { $_ -in @("BTC", "ETC", "RVN") } | ForEach-Object {
$PoolConfig.Wallets.psBase.Keys.Where({ $_ -in @("BTC", "ETC", "RVN") }).ForEach(
{
$APIResponse = $null
$Currency = $_.ToUpper()
$Wallet = ($PoolConfig.Wallets.$_ -replace '^0x').ToLower()
$RetryCount = $PoolConfig.PoolAPIAllowedFailureCount
$RetryInterval = $PoolConfig.PoolAPIRetryInterval

$APIResponse = $null
$Currency = $_.ToUpper()
$Wallet = ($PoolConfig.Wallets.$_ -replace '^0x').ToLower()
$RetryCount = $PoolConfig.PoolAPIAllowedFailureCount
$RetryInterval = $PoolConfig.PoolAPIRetryInterval
$Request = "https://Hiveon.net/api/v1/stats/miner/$Wallet/$Currency/billing-acc"

$Request = "https://Hiveon.net/api/v1/stats/miner/$Wallet/$Currency/billing-acc"
While (-not $APIResponse -and $RetryCount -gt 0 -and $Wallet) {

While (-not $APIResponse -and $RetryCount -gt 0 -and $Wallet) {
Try {
$APIResponse = Invoke-RestMethod $Request -TimeoutSec $PoolConfig.PoolAPITimeout -ErrorAction Ignore

Try {
$APIResponse = Invoke-RestMethod $Request -TimeoutSec $PoolConfig.PoolAPITimeout -ErrorAction Ignore

If ($Config.LogBalanceAPIResponse) {
"$(([DateTime]::Now).ToUniversalTime())" | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
$Request | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
$APIResponse | ConvertTo-Json -Depth 10 | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name).json" -Append -Force -ErrorAction Ignore
}
If ($Config.LogBalanceAPIResponse) {
"$(([DateTime]::Now).ToUniversalTime())" | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$Request | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$APIResponse | ConvertTo-Json -Depth 10 | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
}

If ($APIResponse.earningStats) {
[PSCustomObject]@{
DateTime = ([DateTime]::Now).ToUniversalTime()
Pool = $Name
Currency = $_
Wallet = $Wallet
Pending = [Double]0
Balance = [Double]$APIResponse.totalUnpaid
Unpaid = [Double]$APIResponse.totalUnpaid
# Paid = [Double]$APIResponse.stats.totalPaid
# Total = [Double]$APIResponse.stats.balance + [Decimal]$APIResponse.stats.penddingBalance
Url = "https://Hiveon.net/$($Currency.ToLower())?miner=$Wallet"
If ($APIResponse.earningStats) {
[PSCustomObject]@{
DateTime = ([DateTime]::Now).ToUniversalTime()
Pool = $Name
Currency = $_
Wallet = $Wallet
Pending = [Double]0
Balance = [Double]$APIResponse.totalUnpaid
Unpaid = [Double]$APIResponse.totalUnpaid
# Paid = [Double]$APIResponse.stats.totalPaid
# Total = [Double]$APIResponse.stats.balance + [Decimal]$APIResponse.stats.penddingBalance
Url = "https://Hiveon.net/$($Currency.ToLower())?miner=$Wallet"
}
}
}
}
Catch {
Start-Sleep -Seconds $RetryInterval # Pool might not like immediate requests
}
Catch {
Start-Sleep -Seconds $RetryInterval # Pool might not like immediate requests
}

$RetryCount--
$RetryCount--
}
}
}
)
60 changes: 32 additions & 28 deletions Balances/MiningDutch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: NemosMiner
File: \Balances\MiningDutch.ps1
Version: 5.0.2.0
Version date: 2023/11/12
Version: 5.0.2.1
Version date: 2023/12/09
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand All @@ -34,39 +34,43 @@ $Useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTM
While (-not $APIResponse -and $RetryCount -gt 0 -and $Config.MiningDutchAPIKey) {

Try {
(Invoke-RestMethod "https://www.mining-dutch.nl/api/v1/public/pooldata/?method=poolstats&algorithm=all&id=$($Config.MiningDutchUserName)" -UserAgent $Useragent -Headers $Headers -TimeoutSec $PoolAPITimeout -ErrorAction Ignore).result | Where-Object { $_.tag -notlike "*_*" } | ForEach-Object {
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
$Currency = $_.tag
$CoinName = $_.currency
(Invoke-RestMethod "https://www.mining-dutch.nl/api/v1/public/pooldata/?method=poolstats&algorithm=all&id=$($Config.MiningDutchUserName)" -UserAgent $Useragent -Headers $Headers -TimeoutSec $PoolAPITimeout -ErrorAction Ignore).result.Where({ $_.tag -notlike "*_*" }).ForEach(
{
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
$Currency = $_.tag
$CoinName = $_.currency

$APIResponse = $null
While (-not $APIResponse -and $RetryCount -gt 0) {
Try {
If ($APIResponse = ((Invoke-RestMethod "https://www.mining-dutch.nl/pools/$($CoinName.ToLower()).php?page=api&action=getuserbalance&api_key=$($Config.MiningDutchAPIKey)" -UserAgent $Useragent -Headers $Headers -TimeoutSec $PoolAPITimeout -ErrorAction Ignore).getuserbalance).data) {
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
$APIResponse = $null
While (-not $APIResponse -and $RetryCount -gt 0) {
Try {
If ($APIResponse = ((Invoke-RestMethod "https://www.mining-dutch.nl/pools/$($CoinName.ToLower()).php?page=api&action=getuserbalance&api_key=$($Config.MiningDutchAPIKey)" -UserAgent $Useragent -Headers $Headers -TimeoutSec $PoolAPITimeout -ErrorAction Ignore).getuserbalance).data) {
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount

If ($Config.LogBalanceAPIResponse) {
@{ $Currency = $APIResponse } | ConvertTo-Json -Depth 10 | Out-File -FilePath ".\Logs\BalanceAPIResponse_$($Name)_$($Currency).json" -Append -Force -ErrorAction Ignore
}
If ($Config.LogBalanceAPIResponse) {
"$(([DateTime]::Now).ToUniversalTime())" | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$Request | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
$APIResponse | ConvertTo-Json -Depth 10 | Out-File -LiteralPath ".\Logs\BalanceAPIResponse_$Name.json" -Append -Force -ErrorAction Ignore
}

[PSCustomObject]@{
DateTime = ([DateTime]::Now).ToUniversalTime()
Pool = $Name
Currency = $Currency
Wallet = $Config.MiningDutchUserName
Pending = [Double]$APIResponse.unconfirmed
Balance = [Double]$APIResponse.confirmed
Unpaid = [Double]$APIResponse.confirmed + [Double]$APIResponse.unconfirmed
Url = "https://www.mining-dutch.nl//index.php?page=earnings"
[PSCustomObject]@{
DateTime = ([DateTime]::Now).ToUniversalTime()
Pool = $Name
Currency = $Currency
Wallet = $Config.MiningDutchUserName
Pending = [Double]$APIResponse.unconfirmed
Balance = [Double]$APIResponse.confirmed
Unpaid = [Double]$APIResponse.confirmed + [Double]$APIResponse.unconfirmed
Url = "https://www.mining-dutch.nl//index.php?page=earnings"
}
}
}
}
Catch {
$RetryCount--
Start-Sleep -Seconds $Config.PoolsConfig.$Name.PoolAPIRetryInterval # Pool might not like immediate requests
Catch {
$RetryCount--
Start-Sleep -Seconds $Config.PoolsConfig.$Name.PoolAPIRetryInterval # Pool might not like immediate requests
}
}
}
}
)
}
Catch {
$RetryCount--
Expand Down
Loading

0 comments on commit 90777cb

Please sign in to comment.