Show Posts
|
Pages: [1] 2 »
|
feel free to edit the above code for your own purpose. have fun , guys !
|
|
|
in the above script . 1.conf to 7.conf are needed in the same folder. this is the script to create the conf files if you have a sgminer.conf for multi-algo already in the sgminer folder $ccc = new-object system.net.webclient $ddd = $ccc.downloadstring("c:\users\admin\documents\sgminer.conf") [System.Reflection.Assembly]::LoadWithPartialName("System.Web.Extensions") >null $sgminer = New-Object System.Web.Script.Serialization.JavaScriptSerializer $poolglobal = $sgminer.DeserializeObject($ddd) $pools = $poolglobal.pools #Global Settings Start $failoveronly = $poolglobal."failover-only" $devices = $poolglobal.devices $lookupgap = $poolglobal."lookup-gap" $intensity = $poolglobal.intensity $worksize = $poolglobal.worksize $tempcutoff = $poolglobal."temp-cutoff" $tempoverheat = $poolglobal."temp-overheat" $gpufan = $poolglobal."gpu-fan" $temptarget = $poolglobal."temp-target" $gpumemdiff = $poolglobal."gpu-memdiff" $shares = $poolglobal.shares $kernelpath = $poolglobal."kernel-path" $autofan = $poolglobal."auto-fan" $expiry = $poolglobal.expiry $failoverswitchdelay = $poolglobal."failover-switch-delay" $gpudyninterval = $poolglobal."gpu-dyninterval" $gpuplatform = $poolglobal."gpu-platform" $hamsiexpandbig = $poolglobal."hamsi-expand-big" $log = $poolglobal.log $nopooldisable = $poolglobal."no-pool-disable" $noclientreconnect = $poolglobal."no-client-reconnect" $queue = $poolglobal.queue $scantime = $poolglobal."scan-time" $tcpkeepalive = $poolglobal."tcp-keepalive" $temphysteresis = $poolglobal."temp-hysteresis" #Global Settings End foreach ($pool in $pools) { #Pool Spec starts $name = $pool.name |out-string #$name = $name -replace [Environment]::NewLine $url = $pool.url |out-string #$url = $url -replace [Environment]::NewLine $user = $pool.user |out-string #$user = $user -replace [Environment]::NewLine $pass = $pool.pass |out-string #$pass = $pass -replace [Environment]::NewLine $nfactor = $pool.nfactor |out-string #$nfactor = $nfactor -replace [Environment]::NewLine $algorithm = $pool.algorithm |out-string #$algorithm = $algorithm -replace [Environment]::NewLine $threadconcurrency = $pool."thread-concurrency" |out-string #$threadconcurrency = $threadconcurrency -replace [Environment]::NewLine $intensity = $pool.intensity |out-string #$intensity = $intensity -replace [Environment]::NewLine #pool spec ends if($pool.url -like "*nicehash*" -and $pool.url -like "*336*"){ $conf1 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf1 = $conf1 -replace "4336","3336" -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf1 > 1.conf } elseif($pool.url -like "*nicehash*" -and $pool.url -like "*337*"){ $conf2 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf2 = $conf2 -replace "4337","3337" -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf2 > 2.conf } elseif($pool.url -like "*nicehash*" -and $pool.url -like "*338*"){ $conf3 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf3 = $conf3 -replace "4338","3338" -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf3 > 3.conf } elseif($pool.url -like "*nicehash*" -and $pool.url -like "*339*"){ $conf4 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf4 = $conf4 -replace "4339","3339" -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf4 > 4.conf }
elseif($pool.url -like "*nicehash*" -and $pool.url -like "*340*"){ $conf5 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf5 = $conf5 -replace "4340","3340" -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf5 > 5.conf } elseif($pool.url -like "*waffle*" -and $pool.url -like "*3331*"){ $conf6 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf6 = $conf6 -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf6 > 6.conf } else{ $conf7 = @" { "pools": [ { "name": "$name", "url": "$url", "user": "$user", "pass": "$pass", "nfactor" : "$nfactor", "algorithm": "$algorithm", "thread-concurrency": "$threadconcurrency", "intensity": "$intensity"
} ], "failover-only": $failoveronly, "devices": "$devices", "lookup-gap": "$lookupgap", "intensity": "$intensity", "worksize": "$worksize", "temp-cutoff": "$tempcutoff", "temp-overheat": "$tempoverheat", "gpu-fan" : "$gpufan", "temp-target": "$temptarget", "gpu-memdiff": "$gpumemdiff", "shares": "$shares", "kernel-path": "$kernelpath", "auto-fan": $autofan, "expiry": "$expiry", "failover-switch-delay": "$failoverswitchdelay", "gpu-dyninterval": "$gpudyninterval", "gpu-platform": "$gpuplatform", "hamsi-expand-big": "$hamsiexpandbig", "log": "$log", "no-pool-disable": $nopooldisable, "no-client-reconnect": $noclientreconnect, "queue": "$queue", "scan-time": "$scantime", "tcp-keepalive": "$tcpkeepalive", "temp-hysteresis": "$temphysteresis" } "@ $conf7 = $conf7 -replace '"nfactor" : "",' -replace '"nfactor" : ""' -replace '"thread-concurrency": "",' -replace '"thread-concurrency": ""' -replace '"intensity": "",' -replace '"intensity": ""' -replace [Environment]::NewLine -replace " " -replace ',}','}' $conf7 > 7.conf }
}
|
|
|
I made a powershell script to do multi-algo switch between nicehash and wafflepool. this script is tested in windows 7 ,powershell v2. it will run in the folder where sgminer.exe is . it will switch between niceshash x11 x13 x15 kecaack nist5 , wafflepool x11 $switchcontrol is 1.1 which means when the highest normalized profit is at least 1.1times of current profit , the switch will be triggered. $delay is 30 now , it should be 300 which means after 300 seconds , the script will process again for the most profitable algo. 1.conf to 6.conf each match the conf file for x11 ,x13 ,kecaack , x15, nist5 ,wafflex11 get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Program Start @"+ $(get-date) + "Nicehash x11 is loaded by default" ;$current =3; start-process powershell "cmd.exe /C sgminer.exe --config 1.conf";$current = 3 [decimal]$switchcontrol = 1.1 [int]$delay = 300 do{ $aaa = new-object system.net.webclient $bbb = $aaa.downloadstring(" https://www.nicehash.com/api?method=stats.global.current") [System.Reflection.Assembly]::LoadWithPartialName("System.Web.Extensions") >null $ser = New-Object System.Web.Script.Serialization.JavaScriptSerializer $obj = $ser.DeserializeObject($bbb) $nicehashprofit =@() for ($i = 0;$i -le 7;$i++){ $nicehashprofit += $obj.result.stats[$i].price } $nicehashbest = @() $nicehashbest += [decimal]$nicehashprofit[0]*0 $nicehashbest += [decimal]$nicehashprofit[1]*0 $nicehashbest += [decimal]$nicehashprofit[2]*0 $nicehashbest += [decimal]$nicehashprofit[3]*5.5 $nicehashbest += [decimal]$nicehashprofit[4]*4 $nicehashbest += [decimal]$nicehashprofit[5]*500 $nicehashbest += [decimal]$nicehashprofit[6]*3.5 $nicehashbest += [decimal]$nicehashprofit[7]*16 #------------------waffle--------------------- $ccc = new-object system.net.webclient $ddd = $ccc.downloadstring(" http://wafflepool.com/api/stats") [System.Reflection.Assembly]::LoadWithPartialName("System.Web.Extensions") >null $waf = New-Object System.Web.Script.Serialization.JavaScriptSerializer $waf1 = $waf.DeserializeObject($ddd) $waffleprofit7=($waf1."values") | foreach-object {$_."earnings"} | foreach-object {$_."permhs"} #------------------add waffle x11 to comparasion --------------------- $nicehashbest += [decimal]$waffleprofit7[14]*5500 $nicehashnormalized = ($nicehashbest | measure -maximum).maximum #------------------make the switch based on price and variance --------------------- if($nicehashbest[0] -eq $nicehashnormalized -and $nicehashbest[0] -gt $switchcontrol*$nicehashbest[$current]) {"switch to scrypt,$nicehashnormalized";$current = 0} elseif($nicehashbest[1] -eq $nicehashnormalized -and $nicehashbest[1] -gt $switchcontrol*$nicehashbest[$current]) {"switch to sha256,$nicehashnormalized";$current = 1} elseif($nicehashbest[2] -eq $nicehashnormalized -and $nicehashbest[2] -gt $switchcontrol*$nicehashbest[$current]) {"switch to scrypt-n,$nicehashnormalized";$current = 2} elseif($nicehashbest[3] -eq $nicehashnormalized -and $nicehashbest[3] -gt $switchcontrol*$nicehashbest[$current]) {if ($current -eq 3 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in X11 @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to X11 @"+ $(get-date);$current =3; start-process powershell "cmd.exe /C sgminer.exe --config 1.conf";$current = 3}} elseif($nicehashbest[4] -eq $nicehashnormalized -and $nicehashbest[4] -gt $switchcontrol*$nicehashbest[$current]) {if ($current -eq 4 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in X13 @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to X13 @"+ $(get-date);$current =4; start-process powershell "cmd.exe /C sgminer.exe --config 2.conf";$current = 4}} elseif($nicehashbest[5] -eq $nicehashnormalized -and $nicehashbest[5] -gt $switchcontrol*$nicehashbest[$current]) {if ($current -eq 5 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in Keccak @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to Keccak @"+ $(get-date);$current =5; start-process powershell "cmd.exe /C sgminer.exe --config 3.conf";$current = 5}} elseif($nicehashbest[6] -eq $nicehashnormalized -and $nicehashbest[6] -gt $switchcontrol*$nicehashbest[$current]) {if ($current -eq 6 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in X15 @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to X15 @"+ $(get-date);$current =6; start-process powershell "cmd.exe /C sgminer.exe --config 4.conf";$current = 6}} elseif ($nicehashbest[7] -eq $nicehashnormalized -and $nicehashbest[7] -gt $switchcontrol*$nicehashbest[$current]) {if ($current -eq 7 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in Nist5 @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to Nist5 @"+ $(get-date);$current =7; start-process powershell "cmd.exe /C sgminer.exe --config 5.conf";$current = 7}} elseif($nicehashbest[8] -eq $nicehashnormalized -and $nicehashbest[8] -gt $switchcontrol*$nicehashbest[$current]){if ($current -eq 8 -and (get-process | Where-Object {$_.name -eq "sgminer" } ).responding){"remain in waffle X11 @"+$(get-date)} else { get-process | where-object {$_.name -like "*sgminer*"} | stop-process;"Switching to waffle X11 @"+ $(get-date);$current =8; start-process powershell "cmd.exe /C sgminer.exe --config 6.conf";$current = 8}} elseif((get-process | Where-Object {$_.name -eq "sgminer" } ).responding -eq $true) {"remian in last algo @ price:$($nicehashbest[$current])"} else{"for some reason sgminer stopped, please check the hardware";start-process powershell "cmd.exe /C sgminer.exe --config 1.conf";$current = 3} sleep $delay }while($true -eq $true)
|
|
|
Using the p=0.40 for scrypt, this way i get payed 0.40 and above yes?
not exactly , in that case if price is lower than 0.40 , nicehash scrypt will show dead. u will switch to failover pool.
|
|
|
set the password as " d=0.008;p=0.17" on nicehash x11 then those paying 0.01 lurkers wont get a shit
|
|
|
anyone heard of yaamp is it another coinking?
|
|
|
the law doesnt apply the only reason the profit went down is because buyers cant refill their orders
|
|
|
ppl paying 0.48 to mine some x11 coin. which one? quidcoin?
|
|
|
wp should point to nicehash if their profit is higher. why not
Because of many reasons. 1) If we point at nicehash, and someone rents from nicehash and points to us, what happens? 2) I'll get nonstop complaints that the reject rate went from a few percent to 10+%. 3) We would have to enforce using a specific miner (sgminer I think) because nicehash relies on extranonce extensions that we don't normally use 4) No one is really buying X13 hashrate on nicehash anymore, since there really isn't anything to mine... 1.ppl will only point to WP. since if WP has better profit , ppl will mine here;if nicehash is better, WP will point to nicehash. 2. i dun have more than average reject rate un nicehash. 3.im not saying we point to multi-algo. if our x11 point to nicehash x11, sgminer is not required. ive been using cg sph sg without problem in nicehash. 4. ppl do not always mine altcoins for bitcoins immediately. some are just paying btc for some whattheybelievewillgettothemoon ones.
|
|
|
wp should point to nicehash if their profit is higher. why not
|
|
|
the app stopped workingafter i enter my btc address
|
|
|
nailed it i was mining x13 here
LOL
|
|
|
im using wafflepool as backup
|
|
|
use intensity instead of pool-intensity in each pool then it works for.me
|
|
|
already sold at 952 after buying at 661. happy with the gain and can sleep without being afraid of a roller-coaster nice
|
|
|
Judgecoin is on the quick rise due to panic buying as PoW nears it's end. Good for us Mine X13 Now! good to know ty
|
|
|
why does it tell me that it wont connect to the pool?
"poolname" : "NiceHash-X13", "url" : "stratum.nicehash.com:3337", "user" : "1D75BgAientKNn8JbvxFifALmEENQK5Ztj", "pass" : "x"
Try "url" : "stratum+tcp://stratum.nicehash.com:3337", oddly, this works: "pools" : [ { "poolname" : "NiceHash-X13", "url" : "stratum.nicehash.com:4337", "user" : "1D75BgAientKNn8JbvxFifALmEENQK5Ztj", "pass" : "x" } BUT I cant get this to work: { "pools" : [ { "poolname" : "NiceHash-X11", "url" : "stratum.nicehash.com:4336", "user" : "1D75BgAientKNn8JbvxFifALmEENQK5Ztj", "pass" : "x", "pool-kernel" : "darkcoin-mod", "pool-intensity" : 17, "pool-thread-concurrency" : "8192" }, { "poolname" : "NiceHash-X13", "url" : "stratum.nicehash.com:4337", "user" : "1D75BgAientKNn8JbvxFifALmEENQK5Ztj", "pass" : "x", "pool-kernel" : "marucoin-mod", "pool-intensity" : "13", "pool-thread-concurrency" : "8192" } without it spitting out all rejects and hashrates of ~13kh I really want to be able to have it switching between x11/x13, but at least the x13 4337 server operates on its own (still no luck on 3337 for whatever reason?) PS: its a quad R9 270X rig try removing all "pool-" i used to have the problem
|
|
|
Here's my quick review of the site: It is the worse ever place to buy hash. I set it up to use 1GH.com pool (a rather stable pool and which works on other sites like betarigs etc) and it showed dead for over 12 hrs. When I canceled, I got a partial refund which ate quite a lot of my initial order by way of fees and what not. Finally I had to ask to withdraw my money back, which again is not instantaneous as the site will have you believe. Takes 24 hrs. So quick in taking money but not letting you withdraw. AVOID!!
just another troll
|
|
|
|