Skip to content

Commit

Permalink
Added MPHStats support
Browse files Browse the repository at this point in the history
  • Loading branch information
miningpoolhubstats committed Feb 14, 2018
1 parent b08b039 commit 72f5873
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,6 @@ Stats/*
Logs/*
*.rar
*.7z
*.zip
*.zip
/NemosMiner-v2.4.2.iml
/.idea/
14 changes: 12 additions & 2 deletions NemosMiner-v2.4.2.ps1
Expand Up @@ -44,8 +44,13 @@ param(
[Parameter(Mandatory=$false)]
[Int]$ActiveMinerGainPct = 5, # percent of advantage that active miner has over candidates in term of profit
[Parameter(Mandatory=$false)]
[Float]$MarginOfError = 0.4 # knowledge about the past wont help us to predict the future so don't pretend that Week_Fluctuation means something real
[Float]$MarginOfError = 0.4, # knowledge about the past wont help us to predict the future so don't pretend that Week_Fluctuation means something real
[Parameter(Mandatory = $false)]
[String]$MPHApiKey #API Key for MiningPoolHubStats.com
)

$Version = "2.4.2"

Set-Location (Split-Path $script:MyInvocation.MyCommand.Path)
Get-ChildItem . -Recurse | Unblock-File
Write-host "INFO: Adding NemosMiner path to Windows Defender's exclusions.. (may show an error if Windows Defender is disabled)" -foregroundcolor "Yellow"
Expand Down Expand Up @@ -78,7 +83,7 @@ while($true)
# This should fairly distribute donations to Devs
# Devs list and wallets is publicly available at: http://mytestenv.alwaysdata.net/servefiles/Donation.json
try {
$Donation = Invoke-WebRequest "http://mytestenv.alwaysdata.net/servefiles/Donation.json" -UseBasicParsing -Headers @{"Cache-Control"="no-cache"} | ConvertFrom-Json } catch { return }
$Donation = Invoke-WebRequest "https://miningpoolhubstats.com/donation.json" -UseBasicParsing -Headers @{"Cache-Control"="no-cache"} | ConvertFrom-Json } catch { return }

if (-not $Donation) {return}
$DonateRandom = $Donation | Get-Random
Expand Down Expand Up @@ -323,6 +328,11 @@ while($true)
$CurrentMinerHashrate_Gathered = $_.Hashrate_Gathered
}
}

#POST data to stats
if($MPHApiKey) {
.\ReportStatus.ps1 -WorkerName $WorkerName -Version $Version -ActiveMiners $ActiveMinerPrograms -Miners $Miners -MPHApiKey $MPHApiKey
}
#Display mining information
Clear-Host
Write-Host "1BTC = " $Rates.$Currency "$Currency"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -53,6 +53,9 @@ edit startpoolname.bat

3.remove any algos you do not want to mine

**3.1. To enable MiningPoolHubStats.com support: add "-MPHApiKey <YOUR_KEY_HERE>**


4.there is a 3minute per day fee (0.1%)

5.save & run startpoolname.bat
Expand Down
2 changes: 1 addition & 1 deletion startminingpoolhub.bat
@@ -1 +1 @@
powershell -version 5.0 -noexit -executionpolicy bypass -windowstyle maximized -command "&.\NemosMiner-v2.4.2.ps1 -SelGPUDSTM '0 1' -SelGPUCC '0,1' -Currency USD -Passwordcurrency BTC -interval 30 -Username nemo -Workername miningpoolhub -Location US -ActiveMinerGainPct 3 -PoolName miningpoolhub -Type nvidia -Algorithm ethash,cryptonight,keccak,lyra2z,skein,equihash,groestl,MyriadGroestl,Lyra2RE2,neoscrypt
powershell -version 5.0 -noexit -executionpolicy bypass -windowstyle maximized -command "&.\NemosMiner-v2.4.2.ps1 -SelGPUDSTM '0 1' -SelGPUCC '0,1' -Currency USD -Passwordcurrency BTC -interval 30 -Username nemo -Workername miningpoolhub -Location US -ActiveMinerGainPct 3 -PoolName miningpoolhub -Type nvidia -Algorithm ethash,cryptonight,keccak,lyra2z,skein,equihash,groestl,MyriadGroestl,Lyra2RE2,neoscrypt -MPHApiKey aaaaaaaaaasssssssssddddddddddffffffffffgggggggggg1234

0 comments on commit 72f5873

Please sign in to comment.