Skip to content
Permalink
Browse files

to 6.0

  • Loading branch information
MrPlusGH committed Nov 29, 2019
1 parent 918aa87 commit 176b7e82cadccb448b92ea36945b8666d8198116
BIN -126 Bytes (58%) Config/EarningTrackerConfig.json
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,111 @@
{
"default": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"ahashpool": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"ahashpool24hr": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"ahashpoolplus": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"blazepool": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"blazepool24hr": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"blazepoolplus": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"hashrefinery": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"minemoney": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"minemoney24hr": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"miningpoolhub": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "NPlusMinerRocks",
"PricePenaltyFactor": 1,
"APIKey": ""
},
"nicehash": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zergpool": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zergpool24hr": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zergpoolplus": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zpool": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zpool24hr": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"zpoolplus": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
}
}
@@ -0,0 +1,14 @@
{
"default": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "ID=NPlusMinerRocks",
"PricePenaltyFactor": 1
},
"nicehash": {
"UserName": "mrplus",
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"WorkerName": "NPlusMinerRocks",
"PricePenaltyFactor": 1
}
}
@@ -0,0 +1,19 @@
{
"default": {
"PricePenaltyFactor": 1,
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"UserName": "mrplus",
"WorkerName": "NPlusMinerRocks",
"APIKey": ""
},
"phiphipoolplus": {
"PricePenaltyFactor": 0.97,
"Wallet": "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy",
"UserName": "mrplus",
"WorkerName": "NPlusMinerRocks",
"APIKey": "",
"Algorithm": [
"+x21s"
]
}
}
@@ -27,23 +27,30 @@
"Location": "EU",
"ManualConfig": false,
"MarginOfError": 0,
"MaxMinerFailure": 3,
"MinerName": null,
"MineWhenIdle": false,
"MonitoringServer": "",
"MonitoringUser": "",
"OrphanBlocksPenalty": true,
"PartyWhenAvailable": false,
"Passwordcurrency": "BTC",
"PenalizeSoloInPlus": true,
"PoolName": [
"nicehash",
"miningpoolhub",
"zergpoolplus"
],
"Proxy": "",
"ReportToServer": false,
"SelGPUCC": "0",
"SelGPUDSTM": "0",
"ShowOnlyTopCoins": true,
"ShowWorkerStatus": false,
"SSL": false,
"StartGUIMinimized": false,
"StartPaused": false,
"StatsInterval": 300,
"StatsInterval": 180,
"SyncRoot": {

},
@@ -173,6 +173,7 @@
"pluck128": "Pluck",
"poly": "Polytimos",
"polytimos": "Polytimos",
"power2b": "Power2b",
"quark": "Quark",
"quarkcoin": "Quark",
"qubit": "Qubit",
@@ -1,6 +1,6 @@
<#
This file is part of NPlusMiner
Copyright (c) 2018 MrPlus
Copyright (c) 2018-2019 MrPlus
NPlusMiner is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: NPlusMiner
File: Charting.ps1
version: 5.1.0
version date: 20181213
version: 5.4.1
version date: 20190809
#>


@@ -55,6 +55,16 @@ Function GetNextColor {
$R+$G+$B
}

function Get-ColorPalette {
param($StartColor,$EndColor,$n)$x=$StartColor -split '(..)' -ne ''
$StartColor
++$n..1|%{
$j=$_
-join($x=$x|%{
"{0:x2}"-f(+"0x$_"-[int]((+"0x$_"-"0x$(($EndColor -split '(..)' -ne '')[$i++%3])")/$j))
})
}
}

[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms.DataVisualization")
$scriptpath = Split-Path -parent $MyInvocation.MyCommand.Definition
@@ -92,9 +102,10 @@ Switch ($Chart) {
$chartarea.AxisX.MajorGrid.Enabled = $False
$chartarea.AxisY.MajorGrid.Enabled = $True
$chartarea.AxisY.MajorGrid.LineColor = "#FFFFFF"
$chartarea.AxisY.MajorGrid.LineColor = "#777E7E"
$chartarea.AxisY.labelAutoFitStyle = $chartarea.AxisY.labelAutoFitStyle - 4
# $chartarea.AxisY.IntervalAutoMode = 0
$chartarea.AxisY.Interval = [math]::Round(($datasource | group date | % {($_.group.DailyEarnings | measure -sum).sum} | measure -maximum).maximum *1000 / 4, 3)
$chartarea.AxisY.Interval = [math]::Round(($datasource | group date | % {($_.group.DailyEarnings | measure -sum).sum} | measure -maximum).maximum *1000 / 4, 1)
$chart1.ChartAreas.Add($chartarea)

$legend = New-Object system.Windows.Forms.DataVisualization.Charting.Legend
@@ -114,10 +125,10 @@ Switch ($Chart) {
$chart1.Series["Total"].chartarea = "ChartArea1"
# $chart1.Series[$Pool].Legend = "Legend1"
# $chart1.Series[$Pool].color = "#E3B64C"
$chart1.Series["Total"].color = "#FFFFFF"
$chart1.Series["Total"].color = "#f2a900"
# $chart1.Series[$Pool].color = [System.Drawing.Color]::FromArgb($A,247,147,26)
$chart1.Series["Total"].label = "#VALY{N3}"
# $chart1.Series[$Pool].LabelStyle.ForeColor = "#000000"
$chart1.Series["Total"].LabelForeColor = "#FFFFFF"
$chart1.Series["Total"].ToolTip = "#VALX: #VALY mBTC" # - Total: #TOTAL mBTC";
# $datasource | select Date,DaySum -Unique | ForEach-Object {$chart1.Series["Total"].Points.addxy( $_.Date , ("{0:N3}" -f ([Decimal]$_.DaySUm*1000))) | Out-Null }
$datasource | select Date,DaySum -Unique | ForEach-Object {$chart1.Series["Total"].Points.addxy( $_.Date , (([Decimal]$_.DaySUm*1000))) | Out-Null }
@@ -195,8 +206,9 @@ Switch ($Chart) {
$Chart1.Series | foreach {$_.CustomProperties = "DrawSideBySide=True"}
}
"DayPoolSplit" {
$datasource = If (Test-Path ".\logs\DailyEarnings.csv" ) {Import-Csv ".\logs\DailyEarnings.csv" | ? {$_.date -eq (Get-Date).ToString("MM/dd/yyyy")}}
$datasource = $dataSource | ? {$_.DailyEarnings -gt 0} | sort DailyEarnings -Descending
$datasource = If (Test-Path ".\logs\DailyEarnings.csv" ) {Import-Csv ".\logs\DailyEarnings.csv" | ? {$_.date -ge (Get-Date).date.AddDays(-1).ToString("MM/dd/yyyy")}}
$dataSource | % {$_.DailyEarnings = [Decimal]$_.DailyEarnings}
$datasource = $dataSource | ? {$_.DailyEarnings -gt 0} | sort DailyEarnings #-Descending

$chart1 = New-object System.Windows.Forms.DataVisualization.Charting.Chart
$chart1.Width = $Width
@@ -216,9 +228,10 @@ Switch ($Chart) {
$chartarea.AxisX.MajorGrid.Enabled = $False
$chartarea.AxisY.MajorGrid.Enabled = $True
$chartarea.AxisY.MajorGrid.LineColor = "#FFFFFF"
$chartarea.AxisY.MajorGrid.LineColor = "#777E7E"
$chartarea.AxisY.labelAutoFitStyle = $chartarea.AxisY.labelAutoFitStyle - 4
# $chartarea.AxisY.IntervalAutoMode = 0
$chartarea.AxisY.Interval = [math]::Round(($datasource | group date | % {($_.group.DailyEarnings | measure -sum).sum} | measure -maximum).maximum *1000 / 4, 3)
$chartarea.AxisY.Interval = [math]::Round(($datasource | group date | % {($_.group.DailyEarnings | measure -sum).sum} | measure -maximum).maximum *1000 / 4, 1)
$chart1.ChartAreas.Add($chartarea)

# legend
@@ -229,26 +242,29 @@ Switch ($Chart) {
# $BaseColor = "424B54"
$BaseColor = "FFFFFF"
# $BaseColor = "F7931A"
$Color = $BaseColor
$A=255
Foreach ($Pool in ($datasource.Pool)) {
$A=$A-20
$Color = GetNextColor -BaseColorHex $Color -Factor -20
# $StartColor = "FFFFFF"
$StartColor = "FFFFFF"
$EndColor = "f2a900"
$i=0
$Colors = Get-ColorPalette $StartColor $EndColor ($datasource.Pool | select -Unique).count
Foreach ($Pool in ($datasource.Pool | select -Unique)) {
$i++

[void]$chart1.Series.Add($Pool)
$chart1.Series[$Pool].ChartType = "StackedColumn"
$chart1.Series[$Pool].BorderWidth = 1
$chart1.Series[$Pool].BorderColor = "#FFFFFF"
# $chart1.Series[$Pool].BorderColor = "#2B3232"
$chart1.Series[$Pool].BorderColor = [System.Drawing.Color]::Transparent
# $chart1.Series[$Pool].IsVisibleInLegend = $true
$chart1.Series[$Pool].chartarea = "ChartArea1"
# $chart1.Series[$Pool].Legend = "Legend1"
# $chart1.Series[$Pool].color = "#E3B64C"
$chart1.Series[$Pool].color = "#$($Color)"
$chart1.Series[$Pool].color = "#$($Colors[$i])"
# $chart1.Series[$Pool].color = "#FFFFFF"
# $chart1.Series[$Pool].color = [System.Drawing.Color]::FromArgb($A,247,147,26)
# $chart1.Series[$Pool].label = "#SERIESNAME: #VALY mBTC"
$chart1.Series[$Pool].ToolTip = "#SERIESNAME: #VALY mBTC" # - Total: #TOTAL mBTC";
$datasource | ? {$_.Pool -eq $Pool} | ForEach-Object {$chart1.Series[$Pool].Points.addxy( $_.Pool , ("{0:N3}" -f ([Decimal]$_.DailyEarnings*1000))) | Out-Null }
$chart1.Series[$Pool].ToolTip = "#VALX - #SERIESNAME: #VALY mBTC" # - Total: #TOTAL mBTC";
$datasource | ? {$_.Pool -eq $Pool} | Sort date | ForEach-Object {$chart1.Series[$Pool].Points.addxy( $_.Date , ("{0:N3}" -f ([Decimal]$_.DailyEarnings*1000))) | Out-Null }
# $Chart1.Series["Data"].Points.DataBindXY($datasource.pool, $datasource.DailyEarnings)
}
}

0 comments on commit 176b7e8

Please sign in to comment.
You can’t perform that action at this time.