Bitcoin Forum
January 24, 2018, 10:04:36 AM *
News: Electrum users must upgrade to 3.0.5 if they haven't already. More info.
 
   Home   Help Search Donate Login Register  
Pages: 1 2 3 4 5 6 7 8 [All]
  Print  
Author Topic: [ANN] NiceHash Control 1.1.1 - Auto profit switching control for NiceHash servic  (Read 29399 times)
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 01:16:45 AM
 #1

I recently discovered NiceHash and quickly moved my mining efforts over to this cloud mining service.  There was one small problem, however.  I use nVIDIA cards and there is no one mining app which works for all NiceHash supported algorithms.  I'm using ccminer for two and cudaminer for three of the algorithms.  The let me to create NiceHashControl which can use the NiceHash API for gather pricing information, combine that with your own settings for hash rate and power consumption per algorithm, and finally launch the correct mining application.  The app checks pricing once a minute and if a new algorithm is more profitable it will kill the existing miner and start the next one.

Behavior is still a bit rough but I've had it running on my computer for several days now.  I plan to tighten things up to handle conditions such as the NiceHash API not responding (which has happened) before.  Currently, I'm only releasing the binary as the code needs to be cleaned up so I wouldn't die of embarrassment when others looks at it.  Once things are cleaned up I'll get the source out there.

Legal disclaimer: This program is not created, supported, or endorsed by NiceHash.  It is my own creation and you use it at your own risk.

Download: http://stuffofinterest.com/NiceHashControl/NiceHashControl-1.1.1.zip

Screen shot:



Configuration file:

Code: (Configuration file)
{
"address":"1PMj3nrVq5CH4TXdJSnHHLPdvcXinjG72y",
        "worker":"pc1",
"power":0.10,
"exchange":600,
        "mintime":5,
        "maxtime":240,
        "switchtime":3,
"algos":[
{ "algo":3, "hashrate":5200, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat x11 _ADDRESS_" },
{ "algo":4, "hashrate":4000, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat x13 _ADDRESS_" },
{ "algo":0, "hashrate":540, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt _ADDRESS_" },
{ "algo":2, "hashrate":270, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n _ADDRESS_" },
{ "algo":5, "hashrate":34000, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat keccak _ADDRESS_" },
{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" },
{ "algo":6, "hashrate":2850, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat x15 _ADDRESS_" },
{ "algo":7, "hashrate":16100, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat nist5 _ADDRESS_" },
]
}

Legend:
  • address - Bitcoin address your miners are sending to, for balance and hash rate monitoring and substituting in command arguments
  • worker - Worker ID to append on end of address in argruments
  • mintime - Minimum time in minutes to mine on new algorithm before auto-switch is allowed
  • maxtime - Maximum time in minutes to mine an algorithm under auto mode before a restart occurs
  • switchtime - Time in minutes that the current algorithm has to no longer be the best before switching to a new one under auto mode
  • power - Rate per KW/hour in your currency units
  • exchange - Bitcoin price in your currency units for calculating power cost in Bitcoin
  • algo - NiceHash algorithm ID
  • hashrate - Your hashrate in kHash/sec
  • power - Watts your GPU pulls when mining an algorithm
  • folder - Folder where mining app is located, blank if same as the NiceHash.exe file
  • command - Command to execute
  • arguments - Arguments to include with the command
  • _ADDRESS_ - Substitutes the above address in arguments with worker if specified

Instructions:
  • Download into a folder on your Windows computer
  • Make sure .NET Framework 4.5 4.0 is installed
  • Modify NiceHash.conf with the settings for your own mining applications
  • Start NiceHashControl.exe
  • Click "Start" for each miner to confirm it launches and does not require confirmation each time it is opened
  • Click "Auto" to change over to auto selection mode
  • Profit!!

Command line arguments:
  • -a | --auto-start Start mining in automatic mode as soon as the application starts.
  • -t | --minimize-to-tray Minimize to the tool tray and hide miner when minimize icon is clicked.

Q & A:
  • Q: How can I start mining automatically when NiceHashControl starts? A: Launch with "NiceHashControl.exe --auto-start".
  • Q: NiceHash Control starts to display, freezes for a second, and then crashes.  What is happening? A: Most likely there is an error in the config file.  NHC is sensitive to the formatting of this file and will crash badly if there is an error.  Make sure your "key":"value" pairs are all correctly named and that any path backslashes are created as double-backslash ("\\").
  • Q: Will NiceHash Control work on Windows XP? A: Yes, as of version 1.0.4 it is compiled against .NET Framework 4.0 which is supported on Windows XP.

I'll add answers to questions on this thread to the Q & A as warranted.  Of course, that also depends on if there are enough (or any) donations to warrant continued support.

Here is the configuration file I'm currently using to show how both ccminer and cudaminer can be invoked.  Note that the "name" parameter is just for information and is not used by the program.  Also, the SHA256 configuration is completely missing as I'm not foolish enough to try and mine this with a GPU.

Code: (Sample configuration)
{
"address":"1PMj3nrVq5CH4TXdJSnHHLPdvcXinjG72y",
        "worker":"1",
"power":0.10,
"exchange":600,
        "mintime":5,
        "maxtime":240,
        "switchtime":3,
"algos":[
{
"name":"x11",
"algo":3,
"hashrate":5200,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\ccminer",
"command":"ccminer.exe",
"arguments":"-a x11 -d 0,1 -q -o stratum+tcp://stratum.nicehash.com:3336 -u _ADDRESS_ -p d=0.08"
},
{
"name":"x13",
"algo":4,
"hashrate":4000,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\ccminer",
"command":"ccminer.exe",
"arguments":"-a x13 -d 0,1 -q -o stratum+tcp://stratum.nicehash.com:3337 -u _ADDRESS_ -p d=0.08"
},
{
"name":"Scrypt",
"algo":0,
"hashrate":540,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\cudaminer",
"command":"cudaminer.exe",
"arguments":"-a scrypt -d 0,1 -i 1,0 -l T5x24,T5x24 -o stratum+tcp://stratum.nicehash.com:3333 -u _ADDRESS_ -p x"
},
{
"name":"Scrypt-N",
"algo":2,
"hashrate":270,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\cudaminer",
"command":"cudaminer.exe",
"arguments":"-a scrypt:2048 -d 0,1 -i 1,0 -o stratum+tcp://stratum.nicehash.com:3335 -u _ADDRESS_ -p x"
},
{
"name":"keccak",
"algo":5,
"hashrate":34000,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\cudaminer",
"command":"cudaminer.exe",
"arguments":"-a keccak -d 0,1 -i 1,0 -l T85x5,T427x1 -o stratum+tcp://stratum.nicehash.com:3338 -u _ADDRESS_ -p x"
},
{
"name":"x15",
"algo":6,
"hashrate":2850,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\ccminer-x15",
"command":"ccminer.exe",
"arguments":"-a x15 -d 0,1 -q -o stratum+tcp://stratum.nicehash.com:3339 -u _ADDRESS_ -p d=0.08"
},
{
"name":"nist5",
"algo":7,
"hashrate":16100,
"power":50,
"folder":"C:\\CryptoMining\\NHC\\ccminer",
"command":"ccminer.exe",
"arguments":"-a nist5 -d 0,1 -q -o stratum+tcp://stratum.nicehash.com:3340 -u _ADDRESS_ -p d=0.08"
}
]
}

Release history:
  • 13-July-2014: Version 1.1.1 to fix killing off child processes for the miner.
  • 12-July-2014: Version 1.1.0 with min time and max time to mine plus timer before switching.
  • 6-July-2014: Version 1.0.4 with minimize to tool tray support.
  • 3-July-2014: Version 1.0.3 with X15 and Nist5 support.
  • 18-June-2014: Version 1.0.2 to fix non-US decimal parsing issue.
  • 16-June-2014: Version 1.0.1 with auto-start capability.
  • 16-June-2014: Version 1.0.0.

Donation addresses:

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1516788276
Hero Member
*
Offline Offline

Posts: 1516788276

View Profile Personal Message (Offline)

Ignore
1516788276
Reply with quote  #2

1516788276
Report to moderator
1516788276
Hero Member
*
Offline Offline

Posts: 1516788276

View Profile Personal Message (Offline)

Ignore
1516788276
Reply with quote  #2

1516788276
Report to moderator
1516788276
Hero Member
*
Offline Offline

Posts: 1516788276

View Profile Personal Message (Offline)

Ignore
1516788276
Reply with quote  #2

1516788276
Report to moderator
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:41:49 AM
 #2

WOW this looks great

this pulls profitability and we just need to input our hashrate right


BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 01:44:14 AM
 #3

WOW this looks great

this pulls profitability and we just need to input our hashrate right

Correct, it uses the hash rates and power consumption from your config file combined with the current earning rate provided by the NiceHash API to figure out which coin to mine.  My machine has been bouncing between X11 and X13 this evening.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:48:44 AM
 #4

is there a min amount of time a algo runs?

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 01:50:40 AM
 #5

how quick does it switch? is there a min amount of time a algo runs?
Currently checks and switches once per minute.  One feature I'm thinking of adding is a minimum run time between switches but with a low diff setting I'm seeing new blocks come through almost immediately after the switch so I'm not sure this is needed.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:51:33 AM
 #6

how quick does it switch? is there a min amount of time a algo runs?
Currently checks and switches once per minute.  One feature I'm thinking of adding is a minimum run time between switches but with a low diff setting I'm seeing new blocks come through almost immediately after the switch so I'm not sure this is needed.

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 01:53:19 AM
 #7

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?
No, not currently.  That would be an easy enough feature to have as a command line option.  I'll try and get it in soon.  Guess that starts the version 1.1 wish list. Smiley

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:55:12 AM
 #8

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?
No, not currently.  That would be an easy enough feature to have as a command line option.  I'll try and get it in soon.  Guess that starts the version 1.1 wish list. Smiley

oh darn i wanted to run it tonight :p


BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 01:56:35 AM
 #9

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?
No, not currently.  That would be an easy enough feature to have as a command line option.  I'll try and get it in soon.  Guess that starts the version 1.1 wish list. Smiley

oh darn i wanted to run it tonight :p
Sorry, too late for me to get it in tonight.  Need to get to bed so I'll be ready for the day job.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:57:38 AM
 #10

i have a older system that i run with and its set to reboot every 6 hours. will the program start itself?
No, not currently.  That would be an easy enough feature to have as a command line option.  I'll try and get it in soon.  Guess that starts the version 1.1 wish list. Smiley

oh darn i wanted to run it tonight :p
Sorry, too late for me to get it in tonight.  Need to get to bed so I'll be ready for the day job.

ill be waiting for the update !!

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 02:09:38 AM
 #11

Heck, who needs sleep anyway.

Download: http://stuffofinterest.com/NiceHashControl/NiceHashControl-1.0.1.zip

Launch with "NiceHashControl.exe --auto-start".

OK, now off to bed.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 03:22:31 AM
 #12

Heck, who needs sleep anyway.

Download: http://stuffofinterest.com/NiceHashControl/NiceHashControl-1.0.1.zip

Launch with "NiceHashControl.exe --auto-start".

OK, now off to bed.


took a while to get my conf together for god knows what reason but its works now yay

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 17, 2014, 06:15:53 AM
 #13

Hey man, I tried out your program, but sadly, when I try to open it, nothing happens for a few seconds, and then I get a message that it has stopped responding. I use 64-bit windows 7 and I am trying to use the V1.01 version.

Here's the conf file:
Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11" "algo":3, "hashrate":2900, "power":0, "folder":"", "command":"ccminer.exe", "-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x11" },

{ "name":"x13" "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x13" },

{ "name":"scrypt" "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat scrypt" },

{ "name":"scrypt-N" "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },

{ "name":"keccak" "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat keccak" },

{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

And here's a dropbox link to the files the error message thought important, hope it helps: https://www.dropbox.com/sh/d3dposw4p8oq203/AAANF5mW2y6mIB9GzP-9gmz9a

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 10:00:31 AM
 #14

Hey man, I tried out your program, but sadly, when I try to open it, nothing happens for a few seconds, and then I get a message that it has stopped responding. I use 64-bit windows 7 and I am trying to use the V1.01 version.

Here's the conf file:
Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11" "algo":3, "hashrate":2900, "power":0, "folder":"", "command":"ccminer.exe", "-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x11" },

{ "name":"x13" "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x13" },

{ "name":"scrypt" "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat scrypt" },

{ "name":"scrypt-N" "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },

{ "name":"keccak" "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat keccak" },

{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

And here's a dropbox link to the files the error message thought important, hope it helps: https://www.dropbox.com/sh/d3dposw4p8oq203/AAANF5mW2y6mIB9GzP-9gmz9a

Looks like you messed up the config file a bit where you are passing arguments for the command.  Try this instead:

Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11", "algo":3, "hashrate":2900, "power":0, "folder":"", "command":"ccminer.exe", "arguments":"-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01" },
{ "name":"x13", "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "arguments":"-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01" },
{ "name":"scrypt", "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "arguments":"-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x" },
{ "name":"scrypt-N", "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },
{ "name":"keccak", "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "arguments":"-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x" },
{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

Parsing the JSON config file is the most fragile piece of the program right now.  If something is not right it will die badly.  Another area I need to make some improvement.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 17, 2014, 10:59:11 AM
 #15

Hey man, I tried out your program, but sadly, when I try to open it, nothing happens for a few seconds, and then I get a message that it has stopped responding. I use 64-bit windows 7 and I am trying to use the V1.01 version.

Here's the conf file:
Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11" "algo":3, "hashrate":2900, "power":0, "folder":"", "command":"ccminer.exe", "-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x11" },

{ "name":"x13" "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x13" },

{ "name":"scrypt" "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat scrypt" },

{ "name":"scrypt-N" "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },

{ "name":"keccak" "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat keccak" },

{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

And here's a dropbox link to the files the error message thought important, hope it helps: https://www.dropbox.com/sh/d3dposw4p8oq203/AAANF5mW2y6mIB9GzP-9gmz9a

Looks like you messed up the config file a bit where you are passing arguments for the command.  Try this instead:

Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11" "algo":3, "hashrate":2900, "power":0, "folder":"", "command":"ccminer.exe", "arguments":"-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01" },
{ "name":"x13" "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "arguments":"-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01" },
{ "name":"scrypt" "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "arguments":"-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x" },
{ "name":"scrypt-N" "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },
{ "name":"keccak" "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "arguments":"-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x" },
{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

Parsing the JSON config file is the most fragile piece of the program right now.  If something is not right it will die badly.  Another area I need to make some improvement.

I tried your sugestion, and the program, sadly, still does not work. When I now try to open it, my mouse displays a loading icon, and after a few seconds the process shows up in my task manager [0 processing power, roughly 10.000 kb ram), and then disappears again after a few seconds more. No error message or anything. If you need more info, don't hesitate to ask.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 11:26:44 AM
 #16

I tried your sugestion, and the program, sadly, still does not work. When I now try to open it, my mouse displays a loading icon, and after a few seconds the process shows up in my task manager [0 processing power, roughly 10.000 kb ram), and then disappears again after a few seconds more. No error message or anything. If you need more info, don't hesitate to ask.

I think I just spotted it.  You don't have a comma after the '"name":"x11"' key value pair, or any of the other name keys.  I'll correct my previous post to show what it should be.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 17, 2014, 01:17:12 PM
 #17

worked all night Cheesy

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 17, 2014, 03:01:24 PM
 #18

It works now, though I get 0xc000007b error with cudaminer algos, but since those aren't likely to profitable any time soon, I doubt that will be a problem.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 17, 2014, 08:05:07 PM
 #19

Can't believe I just noticed this, but the price it takes are a factor 1000 too big. For instance, it gives the price for X11 as 7445. It still picks the most profitable one (my power is free, so that doesn't affect it, and it applies the error to all of them), but it just makes the projected profit rather optimistic.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 17, 2014, 09:42:27 PM
 #20

Could you please send me the hash rates you have in the configuration file?  The numbers have been right on for me so I'm curious if you put the rate in as hash/sec vs khash/sec. Also, keep in mind that the earning numbers are in BTC/day.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 18, 2014, 05:41:09 AM
 #21

Could you please send me the hash rates you have in the configuration file?  The numbers have been right on for me so I'm curious if you put the rate in as hash/sec vs khash/sec. Also, keep in mind that the earning numbers are in BTC/day.

The hashrates are in Khash, but that would not affect the price shown in the GUI, would it?

Code:
{
"address":"13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx",
"power":0.10,
"exchange":600,
"algos":[
{ "name":"x11" "algo":3, "hashrate":2980, "power":0, "folder":"", "command":"ccminer.exe", "-a x11  -o stratum+tcp://stratum.nicehash.com:3336 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x11" },

{ "name":"x13" "algo":4, "hashrate":2100, "power":0, "folder":"", "command":"ccminer.exe", "-a x13  -o stratum+tcp://stratum.nicehash.com:3337 -u 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx -p d=0.01":"/c test-run.bat x13" },

{ "name":"scrypt" "algo":0, "hashrate":410, "power":50, "folder":"", "command":"cudaminer.exe", "-l K8x32 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3333 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat scrypt" },

{ "name":"scrypt-N" "algo":2, "hashrate":0, "power":0, "folder":"", "command":"cmd.exe", "arguments":"/c test-run.bat scrypt-n" },

{ "name":"keccak" "algo":5, "hashrate":2500, "power":0, "folder":"", "command":"cudaminer.exe", "-a keccak -l K21x20 -i 0 -H 1 -o stratum+tcp://stratum.nicehash.com:3338 -O 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx:x":"/c test-run.bat keccak" },

{ "algo":1, "hashrate":0, "power":0, "folder":"", "command":"", "arguments":"" }
]
}

And a screenshot

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 18, 2014, 10:44:51 AM
 #22

Wow, I wish I had earnings like that!

OK, looks like I make a solipsistic American mistake.  I'm guessing you are in a country which writes numbers as "1.234,56" vs the American way of "1,234.56".  When I parsed the numbers out of the configuration and the API return results I didn't override the nationalization.  This is causing "0.6332" return by the API to be treated as "6332" since the "." is a position separator instead of a decimal separator.

Hopefully I'll have some time tonight to fix this.  Fortunately, all the numbers are shifted by the same amount so the relative calculations are still valid.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 18, 2014, 11:02:50 AM
 #23

Wow, I wish I had earnings like that!

OK, looks like I make a solipsistic American mistake.  I'm guessing you are in a country which writes numbers as "1.234,56" vs the American way of "1,234.56".  When I parsed the numbers out of the configuration and the API return results I didn't override the nationalization.  This is causing "0.6332" return by the API to be treated as "6332" since the "." is a position separator instead of a decimal separator.

Hopefully I'll have some time tonight to fix this.  Fortunately, all the numbers are shifted by the same amount so the relative calculations are still valid.

Yeah, it's pretty much only a visual problem for me. It looks wrong, but it acts good, so there's no fundamental problem. Anyway, good job on the program.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 18, 2014, 11:19:10 AM
 #24

Wow, I wish I had earnings like that!

OK, looks like I make a solipsistic American mistake.  I'm guessing you are in a country which writes numbers as "1.234,56" vs the American way of "1,234.56".  When I parsed the numbers out of the configuration and the API return results I didn't override the nationalization.  This is causing "0.6332" return by the API to be treated as "6332" since the "." is a position separator instead of a decimal separator.

Hopefully I'll have some time tonight to fix this.  Fortunately, all the numbers are shifted by the same amount so the relative calculations are still valid.

Yeah, it's pretty much only a visual problem for me. It looks wrong, but it acts good, so there's no fundamental problem. Anyway, good job on the program.

Glad you like it, and thanks for the donation!

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 19, 2014, 01:09:28 AM
 #25

OK, new version to fix the parsing for non US decimal notation.

http://stuffofinterest.com/NiceHashControl/NiceHashControl-1.0.2.zip

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 19, 2014, 05:58:02 AM
 #26

OK, new version to fix the parsing for non US decimal notation.

http://stuffofinterest.com/NiceHashControl/NiceHashControl-1.0.2.zip

That fixed it, thanks.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
June 20, 2014, 04:52:33 AM
 #27

Request

min amount of time it mines an algo before it switches.

my old system drops a lot of shares when it keeps switching algos.

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
nomad1109
Full Member
***
Offline Offline

Activity: 238



View Profile
June 21, 2014, 03:31:22 AM
 #28

would there be a way to allow the config to have another batch file run before the actual coin fires up?

i.e. when it decided to move from x11 to Scrypt have it stop x11 mining, execute scrypt.bat, start up scrypt miner.

This would allow the config to have all kinds of flexibility to do things like write out a timestamp to a log file, apply different OC settings, etc...

Just a suggestion! Great program already.

StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 21, 2014, 11:00:54 AM
 #29

Request

min amount of time it mines an algo before it switches.

my old system drops a lot of shares when it keeps switching algos.

That was already on my wish list. I was bouncing between X11 and X13 quite a bit a couple of days ago as well.  Even bounced up to Scrypt for just a moment.  Fortunately, things seem to have stabilized back on X11 for a while.

I'm also planning to add in timers so you know how long it mines on each coin.

would there be a way to allow the config to have another batch file run before the actual coin fires up?

i.e. when it decided to move from x11 to Scrypt have it stop x11 mining, execute scrypt.bat, start up scrypt miner.

This would allow the config to have all kinds of flexibility to do things like write out a timestamp to a log file, apply different OC settings, etc...

Just a suggestion! Great program already.

Interesting idea.  Should be pretty easy to implement.  Only issue will be how long to let the stop command run.  Otherwise it would be possible to hang the switcher if that command gets stuck.

Hope to get to these in the next few days.  I'm still catching up around the house from having the rest of the family sick (nasty bug that I've fortunately avoided so far).  I've also seen some suggestions on other threads where I originally announced (with a link here) the program.  One I'm interested in trying is an auto-donate feature where a user can donate a percentage of their time mining to the donation address.  I've got some ideas of how to do it, and it will be optional, that may make it in when I have a few hours to dedicate to work on this.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
nomad1109
Full Member
***
Offline Offline

Activity: 238



View Profile
June 21, 2014, 03:32:56 PM
 #30

Interesting idea.  Should be pretty easy to implement.  Only issue will be how long to run the stop command run.  Otherwise it would be possible to hang the switcher if that command gets stuck.

Hope to get to these in the next few days.  I'm still catching up around the house from having the rest of the family sick (nasty bug that I've fortunately avoided so far).  I've also seen some suggestions on other threads where I originally announced (with a link here) the program.  One I'm interested in trying is an auto-donate feature where a user can donate a percentage of their time mining to the donation address.  I've got some ideas of how to do it, and it will be optional, that may make it in when I have a few hours to dedicate to work on this.

Another idea that I thought more of the programmers should give a try to is a 'tip calculator'.

If you let them enter a number, and have it estimate their BTC earnings, giving them a specific idea of a number.

I do like the idea of the auto-mining to your address for a percentage as well, and if you allow the user to change that number as well I know I would use it.

Now if we can get you and Bombadil's profit calculator together so you can profit switch between any coin, on any pool the user configures you would be on to something amazing.

Smiley

5w00p
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 22, 2014, 01:17:02 AM
 #31

This app looks very useful.  I will try it out with my 750Ti and if it works well, I will even donate some BTC.

Especially because you correctly used "so·lip·sis·tic."
 Shocked
5w00p
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 22, 2014, 07:53:58 PM
 #32

I really like the app so I just sent a couple mBTC your way, StuffOfInterest.  Not much, but better than nada!

Thanks for developing it and sharing the app.
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 22, 2014, 09:26:27 PM
 #33

I now have hopes of this app, combined with Bombadils profit calc app, and some CUDAmanager functions. Perhaps I should set up a bounty for it...

Edit: I know it is probably a lot of work, but what about some GUI work in the program itself to edit/set-up the .conf file? It would be nice.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 23, 2014, 01:18:09 AM
 #34

I really like the app so I just sent a couple mBTC your way, StuffOfInterest.  Not much, but better than nada!

Thanks for developing it and sharing the app.

Much appreciated.  It will certainly pay for a glass of wine (I'm not much of a beer drinker).

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
June 23, 2014, 01:26:56 AM
 #35

I now have hopes of this app, combined with Bombadils profit calc app, and some CUDAmanager functions. Perhaps I should set up a bounty for it...

Edit: I know it is probably a lot of work, but what about some GUI work in the program itself to edit/set-up the .conf file? It would be nice.

It shouldn't be too hard for Bombadil to add the launching capability into his app.  That part is actually pretty easy compared to downloading the various API results and displaying relevant information. 

What CUDAmanager functions are you interested in?  I looked at that program a few months back but haven't thought too much of it since.  Once thing I did like about it is how it could display the miner output in a section of the CUDAmanager interface (by intercepting the output of the program).  Not essential to have but nice to not have a separate window launcher for the miner.

As for adding a graphical conf builder, you can add that to the long term wish list.  It is not really that difficult, just a bit tedious doing all of the GUI setup.

Right now, top priority is getting a minimum mine time and/or must be top for so long before switching function into the program.  I've been bouncing back and forth between X11 and X13 all day and sometimes it only spends a couple of minutes on one algorithm which is probably not very efficient.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
June 23, 2014, 07:01:56 AM
 #36

I now have hopes of this app, combined with Bombadils profit calc app, and some CUDAmanager functions. Perhaps I should set up a bounty for it...

Edit: I know it is probably a lot of work, but what about some GUI work in the program itself to edit/set-up the .conf file? It would be nice.

It shouldn't be too hard for Bombadil to add the launching capability into his app.  That part is actually pretty easy compared to downloading the various API results and displaying relevant information. 

What CUDAmanager functions are you interested in?  I looked at that program a few months back but haven't thought too much of it since.  Once thing I did like about it is how it could display the miner output in a section of the CUDAmanager interface (by intercepting the output of the program).  Not essential to have but nice to not have a separate window launcher for the miner.

As for adding a graphical conf builder, you can add that to the long term wish list.  It is not really that difficult, just a bit tedious doing all of the GUI setup.

Right now, top priority is getting a minimum mine time and/or must be top for so long before switching function into the program.  I've been bouncing back and forth between X11 and X13 all day and sometimes it only spends a couple of minutes on one algorithm which is probably not very efficient.

I like the readouts CUDAmanager gives, such as Yays/minute, average Khash, etc. It's also easy to manage fan settings from the same window, but that's less important than the previous two to me. And take your time, I'm not in a hurry.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
rsx19
Full Member
***
Offline Offline

Activity: 182


View Profile
July 01, 2014, 01:14:54 PM
 #37

x15 support!

BlackCoin For poor Shibe - BMobXjx9TN96a1qmZA9pSSzJur6UH9PWgU
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 04, 2014, 01:46:15 AM
 #38

x15 support!

Done.  Just uploaded version 1.0.3 with X15 and Nist5 support.



Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
int3ractivodular
Sr. Member
****
Offline Offline

Activity: 280

TECHNOLOGY, BABY!


View Profile
July 04, 2014, 05:03:34 AM
 #39

This is an answer to my prayers! Awesome, can't wait to see it progress further.

EDIT: x14 Support! Since apparently xX is the new fad for algos these days  Roll Eyes
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 04, 2014, 10:30:49 AM
 #40

This is an answer to my prayers! Awesome, can't wait to see it progress further.

EDIT: x14 Support! Since apparently xX is the new fad for algos these days  Roll Eyes

If/when NiceHash adds X14 then I'll add it to the program.

Another wishlist item I have for the program is to make it handle the new algorithms without a code release.  That will probably be a version 2 feature as it will require gutting out the entire UI.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
crazycoin
Newbie
*
Offline Offline

Activity: 26


View Profile
July 05, 2014, 07:58:56 PM
 #41

Hi, is there any chance to get Linux version of the program?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 12:38:06 AM
 #42

Hi, is there any chance to get Linux version of the program?

Sorry, but unless someone can point me to a good Linux implementation of .NET Framework Windows Forms it isn't going to happen.

The application is written in C# for Windows Forms.  The meat and potatoes part of the application is only about 450 lines right now, so it could probably be wrapped into some sort of console application.  Over half of that 450 lines is related to user interface for showing numbers and controlling the start/stop buttons.  Not sure how you would handle the UI under that scenario as currently a separate window pops up with the miner.

Unrelated, there was a nice mention of NiceHash control over at Crypto Mining Blog.  Have to admit, it gave me a bit of a rush when I saw my own work pop up on my Feedly list. Smiley

Also, a big thanks to whoever made the donation today.  Always very much appreciated.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
guitarplinker
Legendary
*
Offline Offline

Activity: 1568



View Profile WWW
July 06, 2014, 12:45:31 AM
 #43

Do you plan to ever open-source this program?

If it was programmed in Basic .NET then I would like to take a look at how you set up the API/JSON in the program. I just started programming in Basic a few months ago so I know a little bit, but I'd like to figure out how to set up API and JSON to work in my programs.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 01:30:09 AM
 #44

Do you plan to ever open-source this program?

If it was programmed in Basic .NET then I would like to take a look at how you set up the API/JSON in the program. I just started programming in Basic a few months ago so I know a little bit, but I'd like to figure out how to set up API and JSON to work in my programs.

Definitely plan to release the source.  That is, once I've cleaned it up enough to avoid dropping dead of embarrassment from the bad coding practices currently in there.

Regarding JSON, I did this using the .NET built in JSON serializer vs. any 3rd party libraries such as JSON.NET.  The built in serializer is pretty crippled, but can be made to work with a little help here and there.  For your reading enjoyment, here is the code I'm using to retrieve balances via the NiceHash API:

Code: (C#)
       private void CheckBalances()
        {
            try
            {
                byte[] pageData;
                using (var client = new WebClient())
                {
                    var url = string.Format("https://www.nicehash.com/api?method=stats.provider&addr={0}", _address);
                    pageData = client.DownloadData(url);
                }
                var pageString = System.Text.Encoding.Default.GetString(pageData);
                var serializer = new JavaScriptSerializer();
                var data = serializer.DeserializeObject(pageString) as Dictionary<string, object>;
                var result = data["result"] as Dictionary<string, object>;
                var stats = result["stats"] as object[];
                foreach (var stat in stats)
                {
                    var item = stat as Dictionary<string, object>;
                    var algo = int.Parse(item["algo"].ToString());
                    var entry = _priceEntries.FirstOrDefault(o => (int)o.Id == algo);
                    if (entry == null) continue;

                    entry.Balance = ExtractDecimal(item["balance"]);
                    entry.AcceptSpeed = ExtractDecimal(item["accepted_speed"]) * 1000;
                    entry.RejectSpeed = ExtractDecimal(item["rejected_speed"]) * 1000;
                }
            }
            catch
            {
            }
        }

        private decimal ExtractDecimal(object raw)
        {
            var decimalValue = raw as decimal?;
            if (decimalValue.HasValue) return decimalValue.Value;

            var doubleValue = raw as double?;
            if (doubleValue.HasValue) return (decimal)doubleValue.Value;

            var floatValue = raw as float?;
            if (floatValue.HasValue) return (decimal)floatValue.Value;

            var longValue = raw as long?;
            if (longValue.HasValue) return (decimal)longValue.Value;

            var intValue = raw as int?;
            if (intValue.HasValue) return (decimal)intValue.Value;

            decimal parseValue;
            var style = NumberStyles.AllowDecimalPoint;
            var culture = CultureInfo.CreateSpecificCulture("en-US");

            if (decimal.TryParse(raw.ToString(), style, culture, out parseValue)) return parseValue;

            return 0;
        }

Note the empty catch statement, which is bad practice.  Also, I had to do the long winded decimal extraction method to work around issues with number representation in the parsed JSON.  Current version is overkill but at least you know it will get the job done.

If you plan on going into programming as a career, I highly recommend concentrating more on C# than Visual Basic.NET.  More opportunities out there.  Also, C# is closely related to other C derived languages (such as Java) so it will be easier to pickup some of these as you progress.  Good luck.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
guitarplinker
Legendary
*
Offline Offline

Activity: 1568



View Profile WWW
July 06, 2014, 03:19:47 AM
 #45

Alright thanks for all the advice!

I can sort of follow your coding, but it's mostly way over my current coding level.

I'll also have to look into learning C#, I know it's a highly used language much more so than VB .NET.
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 06, 2014, 10:04:09 AM
 #46

Just what I was looking for. But lot's of my miners are still on Win XP 32 bit, can you make the app compatible without rewriting the whole code?

Thanks for all you're work!
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 11:53:19 AM
 #47

Just what I was looking for. But lot's of my miners are still on Win XP 32 bit, can you make the app compatible without rewriting the whole code?

Thanks for all you're work!

Let's give this a try.

NiceHashControl-1.0.3-xp.zip

I lowered the .NET version to 4.0, which can be run on Windows XP.  As long as you have .NET Framework 4.0 installed this should work.  Nothing in the application was using 4.5 yet so it doesn't hurt.  Be warned, at some point if I get creative and start using .NET 4.5 features there may be a freeze of the application which supports .NET 4.0.

If this version works I'll do all application targeting towards .NET 4.0 for the main version releases.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
CZSpitfire
Newbie
*
Offline Offline

Activity: 13


View Profile
July 06, 2014, 03:05:48 PM
 #48

ATI remake
https://twitter.com/CryptoAlgoX/status/485789392729305088

▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀ Icebergcoin | FIRST NIST
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 03:53:03 PM
 #49


Umm, no remake is necessary.  NiceHash Control can launch any miner (or a batch file which launches a miner).  It is just a matter of setting everything up in the NiceHashControl.conf file.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 06, 2014, 04:33:56 PM
 #50

OMG, you're amazing! it's working on win xp with no issues. Do you have a ltc adress so I can donate for you're work?

Is it possible to roll the app to system tray? There should be a silent mode perhaps for those of us who can run miners on a campus Wink
This is sgminer 5.0 with auto algo switching for nvidia users Wink
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 04:48:54 PM
 #51

OMG, you're amazing! it's working on win xp with no issues. Do you have a ltc adress so I can donate for you're work?

Is it possible to roll the app to system tray? There should be a silent mode perhaps for those of us who can run miners on a campus Wink
This is sgminer 5.0 with auto algo switching for nvidia users Wink

LTC: LPwhwy6edinDh6gN4ZKaAVgNkArZp6qfeu
LTC: LSKw8y56gwKUpfcEtGwXph7eVyyUfFrSvt

Glad it worked for you. Guess I'll stick with .NET 4 for the builds.

Minimize to tray can go on the "to do" list.

EDIT: If anyone else wants to send LTC, please don't use the first address I provided (now struck out).  That one was to an exchange which had a far too high withdrawl fee.  Now pointed to someplace friendlier to the wallet.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 06, 2014, 07:18:19 PM
 #52

I've sent you some coins, for a beer or two Wink
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 06, 2014, 07:55:41 PM
 #53

I've sent you some coins, for a beer or two Wink

Wow, thanks!  That will actually cover a couple of bottles of wine!  Grin

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 07, 2014, 02:26:21 AM
 #54

Based on a generous donation, I've gone ahead and added in a minimize to tray capability.

NiceHashControl-1.0.4.zip

Launch with a command line parameter of "-t" and then when you minimize the app it will drop into the tool tray.  Double click the tool tray icon to restore.  Also, if a miner is running, the window will be hidden while the control app is minimized.  The miner is restored once the control app is displayed.

There is one current side effect with hiding the miner.  If the mining algorithm switches while the application is minimized the control program is not able to bring it back on screen as it starts with no user interface.  I'll work on a fix for this but it is not too high of priority right now.  The easiest workaround I know for it would be to start the miner on screen and then hide it.  This would cause a flicker in the taskbar that a user might now like if they are running in stealth mode.  Fortunately, you can still stop the miner if it is hidden so if you need to see what is happening just hit the stop button and then the auto button again.

This version is now 32-bit and Windows XP friendly by default.

Happy, hidden mining.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 07, 2014, 07:27:35 AM
 #55

Wow, that was fast! I'll give it a good test  Smiley to see how it works
Tamis
Sr. Member
****
Offline Offline

Activity: 476



View Profile
July 07, 2014, 10:55:09 AM
 #56

I'm not sure the hidden mining option is a smart move as I can only see negative reasons to use it...
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 07, 2014, 11:21:44 AM
 #57

I'm not sure the hidden mining option is a smart move as I can only see negative reasons to use it...

It's an option you don't need to use it  Smiley in my case it's essential before I was running a GPU farm on a campus now I've moved all the cards to our office (yes I'm the owner - so it's not illegal anymore Wink)

Today I was testing it, but unfortunately there was not a lot of switching done today, but when I was running it yesterday I remember there were quite a lot of switching happening for 1/2 min back and forth,...so I think you should consider implementing a "5 min buffer", where it would keep track of the new price and it won't switch immediately as of now, but after 5 min if the new price is still better then current,...this would avoid the constant switching if you're specs are very similar for different algos like x11 and x13. Yes when you minimize it you cannot bring up the miner window and you can only manually stop and start in order to see what's going on well it's not an elegant solution. IMO the next step would be to include the miner window on Control Form right next to Activity tab, and print out the last few lines of what's happening, so in this case you would avoid the previous issue and have an elegant overview of what's happening with the miner. Some people would like to see the gpu temp fan speed and all the neat stuff that cuda manager has, but I don't think it's necessary because it's meant to be used with newer generation nvidia cards and those suckers are running cool and quiet  Roll Eyes

More important feature for "todo list" would be to the lack of backup pools in ccminer/cudaminer so to detect if there's a problem with hashing and miner starts running on a backup pool. When situation goes to normal tries to switch back to the most profitable nicehash algo.

Will continue to test and report back.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 07, 2014, 11:29:24 AM
 #58

I'm not sure the hidden mining option is a smart move as I can only see negative reasons to use it...

I actually started using the option for myself as I run the miner on my main PC and putting it in the tool tray helps to unclutter the task bar.  Yes, it could be used for more nefarious reasons but hopefully people will use their own discretion.  Good way to get kicked off of a network like the fool who used a university supercomputer to mine Bitcoins.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 07, 2014, 11:41:34 AM
 #59

Today I was testing it, but unfortunately there was not a lot of switching done today, but when I was running it yesterday I remember there were quite a lot of switching happening for 1/2 min back and forth,...so I think you should consider implementing a "5 min buffer", where it would keep track of the new price and it won't switch immediately as of now, but after 5 min if the new price is still better then current,...this would avoid the constant switching if you're specs are very similar for different algos like x11 and x13. Yes when you minimize it you cannot bring up the miner window and you can only manually stop and start in order to see what's going on well it's not an elegant solution. IMO the next step would be to include the miner window on Control Form right next to Activity tab, and print out the last few lines of what's happening, so in this case you would avoid the previous issue and have an elegant overview of what's happening with the miner. Some people would like to see the gpu temp fan speed and all the neat stuff that cuda manager has, but I don't think it's necessary because it's meant to be used with newer generation nvidia cards and those suckers are running cool and quiet  Roll Eyes

The time buffer is definitely moving up on my priority list as I was getting hit by the same flickering between x11 and x13 yesterday.  A couple of days ago I actually had it go between x11, x13, x15, and Nist5 all in the span of a couple of hours.

My plan is to implement a pre-buffer and a post-buffer for the switching.  The pre-buffer will prevent switching for an amount of time in case the algorithm switches and switches back over just a minute or two.  The post-buffer will act as a minimum amount of time to mine so that once a switch does occur it won't switch again for that amount of time.  If the kid goes to bed early enough the next couple of nights I might have time to work on it during my 9:00 PM to 10:30 PM "me time" window.

Regarding showing a section of the output in the control program, I've thought about that.  CUDA Manager does exactly that.  This wouldn't be too difficult with cudaMiner and ccminer as they use basic output which can be captured and shown elsewhere.  The problem comes in with programs like sgminer or the ccminer-splitscreen branch which has a more interactive display.  I have no idea how bad this would interact with a straight dump.

More important feature for "todo list" would be to the lack of backup pools in ccminer/cudaminer so to detect if there's a problem with hashing and miner starts running on a backup pool. When situation goes to normal tries to switch back to the most profitable nicehash algo.

Nothing I can do there.  I could be wrong but cudaMiner may support backup pools already.  I know ccminer doesn't but from what I've been reading on the appropriate thread there are a couple of people interested in implementing it.

I've thought about trying to do something from the NiceHash control program to handle switching but there are so many issues it just hasn't been worth looking too deep into so far.  Fortunately, the down time for NiceHash has been infrequent enough that it hasn't been a major issue for me.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 07, 2014, 12:03:37 PM
 #60

I don't think cudaminer nor ccminer have backup functionality at this moment, someone correct me if I'm wrong. But I've seen this: https://github.com/KBomba/failover-ccminer-bat but didn't have the time to test it out.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 07, 2014, 12:58:35 PM
 #61

Fun fact.

Just closing in on one month of mining full time on NiceHash.  I've been using 2 x GTX 750 Ti with part time help from a GTX 650 Ti BOOST in another computer.  For three weeks I've been auto-switching using NiceHash Control.  In that time I've made about 0.08BTC or $50 equivalent.  Not a lot, but if the rates hold up at all then the cards should at least pay for themselves eventually.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 07, 2014, 08:47:26 PM
 #62

There appears to be a bug: it happened that the NHC was "working" visually as it should but the miner died for some reason, and NHC continued "working",... i've caught it only once because I've noticed sudden hash drop and went to manually inspect every miner

Any debug options so I can help to hunt it down?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 07, 2014, 11:51:30 PM
 #63

There appears to be a bug: it happened that the NHC was "working" visually as it should but the miner died for some reason, and NHC continued "working",... i've caught it only once because I've noticed sudden hash drop and went to manually inspect every miner

Any debug options so I can help to hunt it down?

Unfortunately, without Visual Studio connected to the app when this occurs it will be hard to track.

Each minute, after updating prices, I check that the process has not gone into a "HasExited" state.   If it has, then I restart the miner.  When your miner crashed, did it exit out or was it sitting at some sort of error display?  If the miner window went away completely then it should have restarted on the next minute.

Any info on the state things were in will be helpful.

One workaround I can think of adding is a max time to mine.  Set a time of one or two hours after which the miner will be killed and restarted, same as if there was an algo switch.  If the miner is hung then this should get it back in a running state.  When I get the time based event code in I'll make that one more feature to include.

I really wish NiceHash would implement a worker ID (appended on the address) so you could see what each miner is doing from the NiceHash website.  I've had a similar problem (before using NHC) on my second machine which I don't look at very often.  Unfortunately, its hash rate is low enough to be lost in the noise of the main machine.

Question.  Are all of your machines on the same network?  I'm thinking about trying to create a monitor app that could get redirected output from all mining rigs on one network.  Will probably use multicast for simplicity, which means it would not cross a router.  Just curious if there is any demand for something like this.

PS: Dang flicker!  I really need to get the minimum time hooks in. I'm bouncing between X11 and X13 again tonight.  Spent one whole minute on X13 before switching back.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
basilisk
Member
**
Offline Offline

Activity: 79


View Profile
July 08, 2014, 02:01:33 AM
 #64

Is possible mix the NiceHash Control with this Mod by aznboy84? excellent for some extra hashrate. Thank
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 08, 2014, 07:01:03 AM
 #65

Is possible mix the NiceHash Control with this Mod by aznboy84? excellent for some extra hashrate. Thank

You can use it with NHC, but it won't do you any good because it relies on new algorithm that is not supported by NiceHash yet.
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 08, 2014, 05:42:14 PM
 #66

Nice tool Smiley

2 things you can try to add:

1) Possibility to set a failover pool not related to nicehash in case nicehash is down, or point 2) not meet
2) Set our minimum price at wich one we want to mine to nicehash to each algo with p=x.xx and if all price lower than our, mine to the failover Smiley

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 08, 2014, 06:22:18 PM
 #67

Nice tool Smiley

2 things you can try to add:

1) Possibility to set a failover pool not related to nicehash in case nicehash is down, or point 2) not meet
2) Set our minimum price at wich one we want to mine to nicehash to each algo with p=x.xx and if all price lower than our, mine to the failover Smiley

Definitely interesting ideas.  Item 2 is fairly easy to implement but item 1 could be more difficult as I don't have a way of detecting if the pool is down.  If the miner is configured to exit if the pool is not available then how do I determine if it failed because of the pool being down or because of a problem with the miner?  Also, what condition do we use to switch back. 

Currently, NHC doesn't talk to the stratum at all, just launches miners and makes sure they keep running.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 08, 2014, 06:39:46 PM
 #68

Perhaps it would be worth investigating how to check the GPU load. If you have that info then "backup pools" are piece of cake. Some knowledge of CUDA or better DirectX are needed. If used with DirectX it can be used on any sort of miner.
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 08, 2014, 06:43:40 PM
 #69

Something like that can't work?
Try 10x, then move to next line and if pool goes down while mining, he try the next line, and loop.

Bad thing is we can't go back to main pool if he's coming back online, only way is to kill process and restart like every hours

But will need to set a failover for each algo when mining with nvidia Smiley

:loop
ccminer -r 10 -R 30 --algo=x11 -o stratum+tcp://stratum.nicehash.com:3336 -u btc-add -p d=0.04
ccminer -r 10 -R 30 --algo=x11 -o stratum+tcp://yourfailover -u user.worker -p workerpass
goto loop

Hope a day cudaminer/ccminer will buil failover inside miner like cgminer/sgminer have Smiley

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 08, 2014, 07:13:53 PM
 #70

Perhaps it would be worth investigating how to check the GPU load. If you have that info then "backup pools" are piece of cake. Some knowledge of CUDA or better DirectX are needed. If used with DirectX it can be used on any sort of miner.

I've been looking around for a managed code library which can access the NVIDIA API.  I think I may have found one but I haven't had time to play with it yet.  If I could use that to see if the GPU is under load that would be one way to see that the miner is sitting idle.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 10, 2014, 06:27:46 PM
 #71

Didn't noticed that you've answered on my question. Yes I'm running on same subnet.

It happened only once, and I couldn't see the miner's situation, because it was minimized Wink but there was no ccminer process running, so had to launch it manually.

It appears that nicehash implemented the workers names, like you've requested Wink

"Providers: You can name your rigs. Append . (dot) and up to seven alphanumeric characters to Bitcoin address."
basilisk
Member
**
Offline Offline

Activity: 79


View Profile
July 11, 2014, 02:02:32 PM
 #72

Hi my guys, I'm having problems. Yesterday I connected a new card (one xfx 280x, I have installed 2xGigabyte 280x), at the beginning everything was working fine, but when the change to x11 to x15 appears this:



I use trixx with this configuration. gpu 1060, memory 1500, v1.275 in the xfx and the two gigabyte gpu 1060, memory 1500, v1.094. The temperatures is normal.

I have not changed anything in the NiceHash Control.


It is a error of my cards or the server of nicehash?

thanks
int3ractivodular
Sr. Member
****
Offline Offline

Activity: 280

TECHNOLOGY, BABY!


View Profile
July 11, 2014, 10:43:11 PM
 #73

Thanks for your continued work on this, love the utility! Just a minor note regarding UI conventions, the tabindex is a bit out of order on the buttons. Obviously, nothing that's a major issue just figured you'd want to know Smiley
int3ractivodular
Sr. Member
****
Offline Offline

Activity: 280

TECHNOLOGY, BABY!


View Profile
July 11, 2014, 10:45:43 PM
 #74


Question.  Are all of your machines on the same network?  I'm thinking about trying to create a monitor app that could get redirected output from all mining rigs on one network.  Will probably use multicast for simplicity, which means it would not cross a router.  Just curious if there is any demand for something like this.

PS: Dang flicker!  I really need to get the minimum time hooks in. I'm bouncing between X11 and X13 again tonight.  Spent one whole minute on X13 before switching back.

I'd be very interested in a monitoring app that is networked! Please do Smiley

Also, yeah the bouncing back and forth between algos seems to happen too frequently.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 11, 2014, 11:46:07 PM
 #75

Thanks for your continued work on this, love the utility! Just a minor note regarding UI conventions, the tabindex is a bit out of order on the buttons. Obviously, nothing that's a major issue just figured you'd want to know Smiley

I cleaned up the order once but it probably got out of order again when I added the newer algorithms.  Thanks for bringing it up.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 11, 2014, 11:47:42 PM
 #76

Hi my guys, I'm having problems. Yesterday I connected a new card (one xfx 280x, I have installed 2xGigabyte 280x), at the beginning everything was working fine, but when the change to x11 to x15 appears this:

I use trixx with this configuration. gpu 1060, memory 1500, v1.275 in the xfx and the two gigabyte gpu 1060, memory 1500, v1.094. The temperatures is normal.

I have not changed anything in the NiceHash Control.


It is a error of my cards or the server of nicehash?

thanks

NiceHash has been having issues today with DDOS attacks making it hard to connect.  It wouldn't surprise me if you had trouble getting a connection to work right after a switch.  I was offline for around an hour this morning (as were many other people) due to an attack.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
basilisk
Member
**
Offline Offline

Activity: 79


View Profile
July 12, 2014, 12:37:10 AM
 #77

Hi my guys, I'm having problems. Yesterday I connected a new card (one xfx 280x, I have installed 2xGigabyte 280x), at the beginning everything was working fine, but when the change to x11 to x15 appears this:

I use trixx with this configuration. gpu 1060, memory 1500, v1.275 in the xfx and the two gigabyte gpu 1060, memory 1500, v1.094. The temperatures is normal.

I have not changed anything in the NiceHash Control.


It is a error of my cards or the server of nicehash?

thanks

NiceHash has been having issues today with DDOS attacks making it hard to connect.  It wouldn't surprise me if you had trouble getting a connection to work right after a switch.  I was offline for around an hour this morning (as were many other people) due to an attack.

Thanks for you response. I was crazy thinking it was my cards, for a bad combination (for different brand).
Arachnid
Jr. Member
*
Offline Offline

Activity: 36


View Profile
July 12, 2014, 06:39:57 AM
 #78

This tool is great! Getting a better hashrate than ever with the version that I downloaded from cryptomining blog http://cryptomining-blog.com/3013-nicehash-control-tool-with-amd-radeon-280x-support/

Of course you'll want to update the Control tool to 1.0.4. Actually making a small amount of money now at nicehash. Up 'til now, this was just an expensive hobby! Thanks!
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 12, 2014, 01:01:36 PM
 #79

http://cryptomining-blog.com/3073-nicehash-control-1-0-4-tool-pack-for-geforce-gtx-750-ti

improved version of NHC with backup pool included
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 12, 2014, 01:24:57 PM
 #80


 Grin

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 12, 2014, 02:24:57 PM
 #81

Yea, CryptoMining Blog has been doing some interesting things with NHC.  They've written about it three times now.

I'm actively working on the anti-flicker management now.  If I can get another spare hour or two I should be able to wrap it up and get it out the door this weekend.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 12, 2014, 03:20:43 PM
 #82

Hmm something not working for me, can't find what  Undecided

this .conf is working:
Code:
{
"address":"1G5BiEDSaEmoHHDFqG2EhbpJvhdx8JvSYW",
"power":0.15,
"exchange":630,
"algos":[
{
"name":"x11",
"algo":3,
"hashrate":2650,
"power":50,
"folder":"",
"command":"ccminer.exe",
"arguments":"-a x11 -o stratum+tcp://stratum.nicehash.com:3336 -u _ADDRESS_ -p d=0.04"
},
{
"name":"x13",
"algo":4,
"hashrate":2100,
"power":50,
"folder":"",
"command":"ccminer.exe",
"arguments":"-a x13 -o stratum+tcp://stratum.nicehash.com:3337 -u _ADDRESS_ -p d=0.04"
},
{
"name":"x15",
"algo":6,
"hashrate":1600,
"power":50,
"folder":"",
"command":"ccminer.exe",
"arguments":"-a x15 -o stratum+tcp://stratum.nicehash.com:3339 -u _ADDRESS_ -p d=0.04"
},
{
"name":"nist5",
"algo":7,
"hashrate":8600,
"power":50,
"folder":"",
"command":"ccminer.exe",
"arguments":"-a nist5 -o stratum+tcp://stratum.nicehash.com:3340 -u _ADDRESS_ -p d=0.04"
}
]
}

But this one not, NHC don't even open and no error

Code:
{
"address":"1G5BiEDSaEmoHHDFqG2EhbpJvhdx8JvSYW",
"power":0.10,
"exchange":620,
"algos":[
{
"name":"x11",
"algo":3,
"hashrate":2650,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat x11 _ADDRESS_"
},
{
"name":"x13",
"algo":4,
"hashrate":2100,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"arguments":"/c MINERS.bat x13 _ADDRESS_"
},
{
"name":"x15",
"algo":6,
"hashrate":1600,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat x15 _ADDRESS_"
},
{
"name":"nist5",
"algo":7,
"hashrate":8600,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat nist5 _ADDRESS_"
}
]
}

Anything wrong or missing on the 2nd?
Same behavior with NHC 1.03 or 1.04  Huh

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 12, 2014, 03:47:59 PM
 #83

Hmm something not working for me, can't find what  Undecided

this .conf is working:
<snip>

But this one not, NHC don't even open and no error

Code:
{
"address":"1G5BiEDSaEmoHHDFqG2EhbpJvhdx8JvSYW",
"power":0.10,
"exchange":620,
"algos":[
{
"name":"x11",
"algo":3,
"hashrate":2650,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat x11 _ADDRESS_"
},
{
"name":"x13",
"algo":4,
"hashrate":2100,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"arguments":"/c MINERS.bat x13 _ADDRESS_"
},
{
"name":"x15",
"algo":6,
"hashrate":1600,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat x15 _ADDRESS_"
},
{
"name":"nist5",
"algo":7,
"hashrate":8600,
"power":50,
"folder":"",
"command":"cmd.exe",
"arguments":"/c MINERS.bat nist5 _ADDRESS_"
}
]
}

Anything wrong or missing on the 2nd?
Same behavior with NHC 1.03 or 1.04  Huh

Yup, you have ' "arguments":"arguments" ' in your X13 config.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 12, 2014, 03:53:51 PM
 #84

Oh! Crap I'm soo stupid  Grin

Working fine now.
Tip for future, don't update AMD rig and Nvidia rig on the same time when half asleep ^^

Thanx for the quick reply Smiley

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 12, 2014, 11:49:59 PM
 #85

notice: if you’re running NHC in minimized mode and using improved code from cryptomining-blog, you have to manually kill the ccminer process with command like “taskkill /im ccminer.exe /f”, cause there’s a bug that NHC cannot always bring back the process from minimized mode, if you don’t, you end up with multiple processes and eventually graphic driver crash,…learned this the hard way  now successfully switching between additional 2 backup pools
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 01:25:07 AM
 #86

notice: if you’re running NHC in minimized mode and using improved code from cryptomining-blog, you have to manually kill the ccminer process with command like “taskkill /im ccminer.exe /f”, cause there’s a bug that NHC cannot always bring back the process from minimized mode, if you don’t, you end up with multiple processes and eventually graphic driver crash,…learned this the hard way  now successfully switching between additional 2 backup pools

Yuck, I'm going to have fun recreating that one.


Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 02:09:55 AM
 #87

Just uploaded version 1.1.0 with anti-flicker control.  This version brings three new config parameters to help control flickering between algorithms and getting stuck on a backup pool (if you use that feature from CryptoMining Blog).

mintime - Minimum time in minutes that an algorithm will be mined before being allowed to switch to a new algorithm that is better paying.  This can be left left out or set to 0 if you don't want any minimum.

maxtime - Maximum time in minutes to mine an algorithm in auto mode before forcing a restarting.

switchtime - Time in minutes that the current algorithm should no longer be the best paying before switching to a new algorithm in auto mode.  This is the important one to prevent flickering.  If a new algorithm becomes the best paying but the one currently being mined returns to being the best paying within this time then no switching will occur.

Finally, you can also now specify a worker which will be appended on the address for the "_ADDRESS_" substitution value.


Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 13, 2014, 10:22:47 AM
 #88

U rock man! Testing it out right now  Grin
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 11:51:47 AM
 #89

notice: if you’re running NHC in minimized mode and using improved code from cryptomining-blog, you have to manually kill the ccminer process with command like “taskkill /im ccminer.exe /f”, cause there’s a bug that NHC cannot always bring back the process from minimized mode, if you don’t, you end up with multiple processes and eventually graphic driver crash,…learned this the hard way  now successfully switching between additional 2 backup pools

OK, just put out version 1.1.1.  This uses a different technique for killing off the miner that may handle child processes better.  I think the problem with the CryptoMining Blog implementation was that the batch file was launching the miner and the kill signal wouldn't pass down when the UI is hidden.  The new technique I'm using walks the tree of processes and tries to kill them all off.

I've tested it by having the test-run.bat file spin off a couple of executables at the same time.  When I hit the stop button, everything went away.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 13, 2014, 12:09:30 PM
 #90

OK, I'll test it with one miner to see if it works. But as I've said was not a huge problem, I've just put an extra command into the bat file and it worked flawlessly. It only cost me a few hours of hashing before i've noticed it. The new switching is working perfectly, because I reboot the machines anyway in the morning so I've set maxtime to 0. Other two parameters are also working great.

The next awesome feature would be to implement TradeMyBit support, they also have an API (https://pool.trademybit.com/api/)  Grin Sometimes their prices are over the roof, because they add the latest coins to their multipool collection  Cool Although then we also need a new name for the app Wink
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 12:14:24 PM
 #91

OK, I'll test it with one miner to see if it works. But as I've said was not a huge problem, I've just put an extra command into the bat file and it worked flawlessly. It only cost me a few hours of hashing before i've noticed it.

The next awesome feature would be to implement an TradeMyBit support, they also have an API (https://pool.trademybit.com/api/Grin Sometimes their prices are over the roof  Cool

I'll have to look into it but this will require changing out most of the guts to support a second service.  Would be interesting to switch between services based on whichever is paying best.

Before moving on to something like that I have three major goals.  1) Capture the miner output into a window in the control program so the miner can always be hidden from the task bar. 2) Based on the first items capture, send a copy of the output to another machine for remote monitoring.  3) Rework the UI to use a grid display and make it easier for adding new algorithms.  Once 3 is implemented that will make it easier to add services such as TradeMyBit.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 13, 2014, 12:55:25 PM
 #92

The first two points for me personally are not so critical, i've made my own logging utility from the blogs code i've only modify it for my own perferences, i'm writing log files on my samba server for each worker:
SET "worker1=%2"
set nice=%date:~4,2%.%date:~7,2%.%date:~10,4%   %time:~0,2%:%time:~3,2%   %1.nicehash
and inside each loop
echo %nice% >> x:\cuda\logs\%worker1%.txt

i'ts very basic with EU timezone (13.7.2014   14:15   x11.nicehash), separated with tabs so you can open it also with excel to analyse it furthure more, but you can see when stratum connection was lost or if it was changed because of the price...

If you could implement all that,
that would be really epic!
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 13, 2014, 01:36:11 PM
 #93

test-run.bat & TestMiner.exe  Huh

You didn't forgot to put the real mining batch ? Smiley)

Took batch from 1.04, everything looks working fine, nice work ^^

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 01:39:51 PM
 #94

test-run.bat & TestMiner.exe  Huh

You didn't forgot to put the real mining batch ? Smiley)

Took batch from 1.04, everything looks working fine, nice work ^^

I've never distributed it with a real mining batch file as that would have to be customized for your own environment.  The test-run.bat file has been there since the beginning to show launching a file.  Latest version now includes the TestMiner.exe just to show that an executable inside of a batch file can run without issue.  It is nothing more than a nine line console program which prints a line of text every second.  Once you have your own mining config setup you can throw those two files away.  You may have been using the distribution that CryptoMining Blog put together.  They've created sample configs for both nVIDIA and AMD mining.  Most likely they'll update those at some point to include the restart and flicker control from the latest version.

OK, time to get off the computer and start on the "honeydo" list for today.  Nothing like spreading two cubic yards of mulch in 90F weather.  Undecided

Code: (TestMiner)
            var x = 1;
            Console.WriteLine("I'm pretending to mine.");
            while (!Console.KeyAvailable)
            {
                Thread.Sleep(1000);
                Console.WriteLine(string.Format("Found block {0}!", x));
                x++;
            }
            Console.ReadKey(true);

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 13, 2014, 02:02:54 PM
 #95

Oh true, found your release first on cryptomining Smiley

Wanted to mine on nicehash with your BTC addresses to earn you some btc as donation but looks like your using another one or not mining ^^
Will need to wait to get some payout on my wallet Smiley

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 03:31:31 PM
 #96

Oh true, found your release first on cryptomining Smiley

Wanted to mine on nicehash with your BTC addresses to earn you some btc as donation but looks like your using another one or not mining ^^
Will need to wait to get some payout on my wallet Smiley

You can always mine against the donation address on the program.  Always, greatly appreciated.

One future feature that has been suggested is to let NHC mine for a percentage of time to my address as a donation.  Might consider adding that eventually.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 13, 2014, 08:15:57 PM
 #97

The new technique I'm using walks the tree of processes and tries to kill them all off.

Can confirm, that it's working properly.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 09:54:53 PM
 #98

The new technique I'm using walks the tree of processes and tries to kill them all off.

Can confirm, that it's working properly.

Good news.  Nothing like a bit of recursive programming.

Also, I've seen the flicker protections kick in several times today, so that appears to be working properly as well.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 13, 2014, 11:25:20 PM
 #99

The first two points for me personally are not so critical, i've made my own logging utility from the blogs code i've only modify it for my own perferences, i'm writing log files on my samba server for each worker:
SET "worker1=%2"
set nice=%date:~4,2%.%date:~7,2%.%date:~10,4%   %time:~0,2%:%time:~3,2%   %1.nicehash
and inside each loop
echo %nice% >> x:\cuda\logs\%worker1%.txt

I have to say, I haven't seen a batch file like that in a few years.   Nice to see that the art of complex logic in batch files is not completely dead!

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 14, 2014, 07:42:27 AM
 #100

Then you should see some of my unix code Wink Love the batches also to get the easy tasks going on multiple versions of Windows.
thquan819
Member
**
Offline Offline

Activity: 70


View Profile
July 14, 2014, 09:16:27 AM
 #101

Please add 2FA Security
Zels
Full Member
***
Offline Offline

Activity: 198



View Profile WWW
July 14, 2014, 09:30:43 AM
 #102

Please add 2FA Security

 Shocked Huh Huh Huh

HBN: ErmqaiunrcguMEhpDP5uqEQhRKmn3oViWv
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 14, 2014, 09:56:44 AM
 #103

Please add 2FA Security

Not sure if you read the thread but this program is not part of NiceHash itself.   It has nothing to do with the security on that service.  NiceHash Control is just a tool to help miners and it doesn't make a lot of sense to add more security for miners.  What is the worse that someone could do, mine on your behalf?

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 14, 2014, 11:27:32 AM
 #104

Hmm, right now NH site is down and also their API interface, so NHC can't launch even the backups that I've put in place, you have to manually run a instance.
So -a command is useless in this case  Huh need to add this exception if all the prices are 0 Wink
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 14, 2014, 11:43:45 AM
 #105

Hmm, right now NH site is down and also their API interface, so NHC can't launch even the backups that I've put in place, you have to manually run a instance.
So -a command is useless in this case  Huh need to add this exception if all the prices are 0 Wink

That is a problem the program has.  Also stalls really bad if the program is running and then the API stops responding.  I need to make the API checks happen asynchronously to avoid this.

For all prices zero, I have checks in place now that won't mine an algorithm with negative return.  If the price is zero and power usage is defined this would cause all of them to show as negative.  Will have to think of a good way to handle that scenario.  Bigger headache is figuring out which algorithm to mine if everything is zero.  I've been hesitant to add logic for persisting information from the program back to disk but this may be necessary to leave some breadcrumbs in case of an issue.

Bigger issue is NiceHash being down so much.  I wish there was a better way to track who keeps launching DDOS attacks on them so that person or group can be slapped properly.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 14, 2014, 12:48:45 PM
 #106

Bigger issue is NiceHash being down so much.  I wish there was a better way to track who keeps launching DDOS attacks on them so that person or group can be slapped properly.

 Grin
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
July 14, 2014, 05:18:31 PM
 #107

Just wondering, but what Min time, Max time and switchtime do you guys recommend?

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 14, 2014, 07:14:57 PM
 #108

Just wondering, but what Min time, Max time and switchtime do you guys recommend?

Right now I'm using 5, 240, and 3.  I think three minutes may be a bit low for the switch time as I'm still seeing it move over for just a few minutes and then switch back.  It really comes down to how fast the miner can load up on a new algorithm.

If the switch time is more than the min time then min time doesn't really mean anything.

I'm not running a backup pool right now so that is why I have max time set to four hours.  With all of the DDOS issues NiceHash has been dealing with lately I'm going to try and set something up soon (using CryptoMining Blog's technique) and then drop the max time back to about two hours so I won't spend too long on the backup pool when the primary comes back to active.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
July 14, 2014, 07:37:46 PM
 #109

I just wondered, when you said that NiceHash gets DOSed, the API fails as well. Does it give something specific, and if so, could this specific thing be used as a marker of the pools being down, and thus make the program switch over to a configurable back-up pool, and it would then check back as the settings dictate if the NicheHash gets back up.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 14, 2014, 07:53:36 PM
 #110

I just wondered, when you said that NiceHash gets DOSed, the API fails as well. Does it give something specific, and if so, could this specific thing be used as a marker of the pools being down, and thus make the program switch over to a configurable back-up pool, and it would then check back as the settings dictate if the NicheHash gets back up.

From what I've been able to glean from the NiceHash thread, different attacks have different characteristics.  Some go against the website, which takes down the API.  Others go against the proxy, which stop new miners connecting but leaves the API intact.  Unfortunately, I don't think there is much we can take from it.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
miner256
Newbie
*
Offline Offline

Activity: 23


View Profile
July 15, 2014, 08:10:05 AM
 #111

Hi,
Nice work on this.

I moved off NiceHash last week after all their issues and am using TradeMyBit for the moment. I am a Linux user so can't try your tool :-(
I have written a similar tool in python for use on my linux rig (4 x GTX 750 Ti). No graphics of course :-)

I am interested in the logic on how often to switch or not. When will switching cause you to lose any work done before being paid? I guess it is down to the details of the pool but have you looked into this for NiceHash? Some pools will calculate the earnings once a block is found and if you are not mining at the time you get nothing? Thoughts?

Just for fun here is the output from my tool on linux running against TradeMyBit. First value is profit reported from them, second value is my actual profit, normalised for hash rate and power consumption.

Code:
nist5       0.00022 0.00589
x13         0.00072 0.00532
x11         0.00051 0.00481
nscrypt     0.00269 0.00129
scrypt      0.00068 0.00068
x15         0.00007 0.00034
2014-07-15 08:54:34 Best Rate: nist5 0.00589 switch
x13         0.00102 0.00754
nist5       0.00016 0.00431
x11         0.00039 0.00372
nscrypt     0.00248 0.00119
scrypt      0.00080 0.00080
x15         0.00007 0.00034
2014-07-15 08:59:35 Best Rate: x13 0.00754 switch

I would like to work out some logic on when to switch and when to wait....any ideas?

anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
July 16, 2014, 10:04:53 PM
 #112

Nice tool. Good work.

Just one little feature request: Auto-tuning for hash rate.

Pseudo-code:

Code:
@startup (all algos):
speed = read_cache_file()
if (speed.remember != configfile.speed) {
  speed.remember = configfile.speed
  speed.current = configfile.speed
  speed.max = 0
}
// to reset the speed just change the value in the config file

@every 5 minutes (active algo):
if (activity.accept > 0) {
  speed.current = (speed.current*95 + activity.accept*5) / 100
}
if (speed.current < configfile.speed and speed.current > speed.max) {
  speed.max = speed.current
}

@every 5 minutes (inactive algos) (optional):
if (speed.max > 0) {
  if (speed.max > speed.current) {
    speed.current = (speed.current*99 + speed.max*0.9) / 100
    // need to test if 0.9 or 0.95 or 0.85 works better
  }
} else {
  speed.current = (speed.current*99 + configfile.speed*1) / 100
}

@every 5 minutes:
save_cache_file()


I chose 5 minutes and 5% because I like the reaction that gives. It isn't too jumpy but still follows reasonable fast. A "half change" is an hour and a "full change" takes 12 hours. However, to avoid flickering when two algos are very close, a >10 minutes switchtime may be advisable.

The optional block is to recover deteriorated values. That way a "bad" pool won't kill an algo for good. With this enabled algos might flicker somewhat if the configfile speeds are (much) too high, or not recover if they are too low, so the user should have an eye on the auto-tuned values for a while and adapt the config file if that happens.
darius510
Newbie
*
Offline Offline

Activity: 5


View Profile
July 17, 2014, 03:54:20 AM
 #113

Neat utility!

What's NHC's behavior when all algos are negative? As far as I can tell, it won't start a new miner if everything is neg, but if a miner is already running, it'll stay running?  I'm teetering on the edge of profitability most of the time, it'd be really useful if the user could define this behavior themselves. Rather than a yes/no, perhaps setting a lower limit? If it's just short of profitable I'd rather still let it churn away.

Does NHC take nicehash's fee into account when doing the calculation? Again, with certain nvidia cards teetering on the edge of profitability, this can be crucial.

And along the same vein...how about pulling the current BTC/USD, or any other exchange rate off of bitstamp? Not to sound like a broken record, but I'm barely breaking even here, and a wide enough fluctuation can completely change whether its worth it to mine or not.

Also, it would be really helpful if the units were defined.

Overall, the functionality is superb, and while I can handle it, the UI isn't very user friendly. I'd prefer it if everything was listed in USD rather than BTC (like multibit wallet), so I can more easily interpret what I'm seeing. Ideally everything should be configurable from the interface itself so I wouldn't have to dig into the interface to update stuff like the BTC exchange rate, but I understand that's a significant amount of UI work.

And this is totally a low priority personal request, but my setup is a GTX 770 and a GTX 750.  The 750 is there for mining and occasional physx, but I generally want to turn mining off on the 770 while I'm using the PC, and obviously when I'm gaming.  Would it be possible to set it such that individual GPUs can be toggled on off?  That might be a bit of a pain to code considering that the cards have different power profiles and hashing rates, but it would be so, so awesome. Hell, I'd code it myself if I had the source. Smiley

StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 17, 2014, 01:10:53 PM
 #114

What's NHC's behavior when all algos are negative? As far as I can tell, it won't start a new miner if everything is neg, but if a miner is already running, it'll stay running?  I'm teetering on the edge of profitability most of the time, it'd be really useful if the user could define this behavior themselves. Rather than a yes/no, perhaps setting a lower limit? If it's just short of profitable I'd rather still let it churn away.

Current behavior is to not mine on negative net earning.  Easiest way to override this would be to lower your power cost or power consumption.  You could just set the power values to zero which means you won't use power consumption in the calculation.  If you lower the power consumption value by the same amount on all algorithms it will keep the relative power in mind which calculating but give you a better chance of having at least one still profitable.

Quote
Does NHC take nicehash's fee into account when doing the calculation? Again, with certain nvidia cards teetering on the edge of profitability, this can be crucial.

And along the same vein...how about pulling the current BTC/USD, or any other exchange rate off of bitstamp? Not to sound like a broken record, but I'm barely breaking even here, and a wide enough fluctuation can completely change whether its worth it to mine or not.

Also, it would be really helpful if the units were defined.

Fee is not taken into account.  Probably should be as that could cause the net to go negative.  Something for the todo list.

I may add auto-pulling exchange rate at some point but it isn't a high priority for me.  This would add other complications.  The exchange rate and power cost are currency type neutral so you can use whatever currency you work in and still get usable numbers.  If I start monitoring specific currency exchange rates then the user will have to convert their power cost to one of those currencies to get good calculations.

Quote
Overall, the functionality is superb, and while I can handle it, the UI isn't very user friendly. I'd prefer it if everything was listed in USD rather than BTC (like multibit wallet), so I can more easily interpret what I'm seeing. Ideally everything should be configurable from the interface itself so I wouldn't have to dig into the interface to update stuff like the BTC exchange rate, but I understand that's a significant amount of UI work.

Not all of the users are in the US.  I've already had to fix one bug dealing with a country which swaps the usage of commas and periods when writing numbers.  I keep everything in BTC because this program's purpose is to mine whichever pays the best, not generate reports.

Quote
And this is totally a low priority personal request, but my setup is a GTX 770 and a GTX 750.  The 750 is there for mining and occasional physx, but I generally want to turn mining off on the 770 while I'm using the PC, and obviously when I'm gaming.  Would it be possible to set it such that individual GPUs can be toggled on off?  That might be a bit of a pain to code considering that the cards have different power profiles and hashing rates, but it would be so, so awesome. Hell, I'd code it myself if I had the source. Smiley

Run two instances of NHC in different folders.  Set each one up for a single card.  There is some real logic in doing this when using mixed cards.  Each card will have different relative hashing rate on different algorithms.  Running both on the same algorithm may not be as profitable as running the two on separate algorithms.  This will also let you stop one card from mining without affecting the other.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 17, 2014, 01:15:00 PM
 #115

Nice tool. Good work.

Just one little feature request: Auto-tuning for hash rate.

Pseudo-code:

Code:
@startup (all algos):
speed = read_cache_file()
if (speed.remember != configfile.speed) {
  speed.remember = configfile.speed
  speed.current = configfile.speed
  speed.max = 0
}
// to reset the speed just change the value in the config file

@every 5 minutes (active algo):
if (activity.accept > 0) {
  speed.current = (speed.current*95 + activity.accept*5) / 100
}
if (speed.current < configfile.speed and speed.current > speed.max) {
  speed.max = speed.current
}

@every 5 minutes (inactive algos) (optional):
if (speed.max > 0) {
  if (speed.max > speed.current) {
    speed.current = (speed.current*99 + speed.max*0.9) / 100
    // need to test if 0.9 or 0.95 or 0.85 works better
  }
} else {
  speed.current = (speed.current*99 + configfile.speed*1) / 100
}

@every 5 minutes:
save_cache_file()


I chose 5 minutes and 5% because I like the reaction that gives. It isn't too jumpy but still follows reasonable fast. A "half change" is an hour and a "full change" takes 12 hours. However, to avoid flickering when two algos are very close, a >10 minutes switchtime may be advisable.

The optional block is to recover deteriorated values. That way a "bad" pool won't kill an algo for good. With this enabled algos might flicker somewhat if the configfile speeds are (much) too high, or not recover if they are too low, so the user should have an eye on the auto-tuned values for a while and adapt the config file if that happens.

Two problems with doing this.

You can't get the hash values from NiceHash because if you have more than one miner running you are seeing cumulative values rather than for one miner.  Also, the accept/reject rates jump around a lot and are not reliable gauges of actual speed.

You can't get the number from the miner itself as there is no communication between NHC and the miner.  NHC can start and stop the miner but can't see what is happening inside as it is a separate program with no IPC mechanism to communicate out.

It would be nice to auto-tune hash rates but I just haven't seen a good way to do it, which is why the program can start/stop a single algorithm for doing this type of testing.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
July 17, 2014, 07:31:19 PM
 #116

You can't get the hash values from NiceHash because if you have more than one miner running you are seeing cumulative values rather than for one miner.  Also, the accept/reject rates jump around a lot and are not reliable gauges of actual speed.

The hash rate Nicehash reports is the important one, as that is what generates the payment. Yes, it jumps around a lot, but that is what the running average is for. Also, nowadays Nicehash supports workers and reports their hashrate.

Edit: I'm running a script to test the averaging at the moment. Give me a couple of hours to get some results.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 17, 2014, 08:32:40 PM
 #117

You can't get the hash values from NiceHash because if you have more than one miner running you are seeing cumulative values rather than for one miner.  Also, the accept/reject rates jump around a lot and are not reliable gauges of actual speed.

The hash rate Nicehash reports is the important one, as that is what generates the payment. Yes, it jumps around a lot, but that is what the running average is for. Also, nowadays Nicehash supports workers and reports their hashrate.

Edit: I'm running a script to test the averaging at the moment. Give me a couple of hours to get some results.

I'll be curious to see your results.

I haven't checked lately, but I don't think the NiceHash API has a method for getting per worker stats yet.  That will be needed in order to bring it into NHC.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
July 18, 2014, 06:28:21 AM
 #118

I'll be curious to see your results.

http://jacob.j-e-b.net/nicehash.png

http://jacob.j-e-b.net/nicehash.ods

This was taken using a 1 minute counter and a 1% averaging. No compensation for ramp up/ramp down (integrated solution would have that) and no hashrate recovery.

The lower two are X11 and X13 on "nicehash control", the upper two are scrypt and sha256 on "p=xx", with the initial hashrate for scrypt misconfigured.

Looks good to me (looks better when the graph is not that compressed), more after work...
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 18, 2014, 10:51:51 AM
 #119

I'll be curious to see your results.



http://jacob.j-e-b.net/nicehash.ods

This was taken using a 1 minute counter and a 1% averaging. No compensation for ramp up/ramp down (integrated solution would have that) and no hashrate recovery.

The lower two are X11 and X13 on "nicehash control", the upper two are scrypt and sha256 on "p=xx", with the initial hashrate for scrypt misconfigured.

Looks good to me (looks better when the graph is not that compressed), more after work...

How does this compare to the numbers coming out of the miner?  If the red line is close to what the miner reports then you really have something here.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
July 18, 2014, 06:42:13 PM
 #120

How does this compare to the numbers coming out of the miner?  If the red line is close to what the miner reports then you really have something here.

Near enough to be believable. And remember that the speed Nicehash "sees" is more important than what your miner reports. Nicehash does the payouts, not your miner Wink

Update with data up till now: http://jacob.j-e-b.net/nicehash2.ods

It also contains the raw readings (columns are in pairs, algo0-raw, algo0-calc, algo1-...), so you can try out other formulas. Mine was just "speed = (speed*99+new_value)/100" with a check of "new_value > 0".

Note: Real implementation would need to make sure to not take readings in the 5-minute ramping up phase. You can see the negative effects in my graphs above after each blue spike. It also should use some recover logic, e.g. what I outlined above, so a bad phase does not disable an algo forever.


RavenXBR
Full Member
***
Offline Offline

Activity: 140


View Profile
July 19, 2014, 03:03:23 PM
 #121

Awesome software...  Wink

Does the hash and power values configured for each algo at CONF file affect the algo switching, or it uses some other info?
DemosMirak
Full Member
***
Offline Offline

Activity: 146


View Profile
July 19, 2014, 03:45:22 PM
 #122

Awesome software...  Wink

Does the hash and power values configured for each algo at CONF file affect the algo switching, or it uses some other info?

The values affecting price switching in terms of worth are power, hash and the price. Also affecting switching are min, max and switch time.

BTC: 13enECLM3M3gjQDoBKouXuYFG4zXaDdDPx
LTC: LRTbQNQcRjZV51PivQdhK7zpMtJYPouqR9
RavenXBR
Full Member
***
Offline Offline

Activity: 140


View Profile
July 19, 2014, 03:49:04 PM
 #123

Awesome software...  Wink

Does the hash and power values configured for each algo at CONF file affect the algo switching, or it uses some other info?

The values affecting price switching in terms of worth are power, hash and the price. Also affecting switching are min, max and switch time.
Thank you...

So far its doing perfectly.

 Wink
maelstrom987
Newbie
*
Offline Offline

Activity: 5


View Profile
July 20, 2014, 09:23:05 PM
 #124

For some reason when I use this, if I switch from any algo, to another, and back to original algo (doesn't matter which), the original algorithm will not mine. It winds up in benchmark mode for some reason (generates shares, but none are submitted). This is fixed if it closes the window and restarts (maxtime reached).

Anyone else experience this issue? Don't like missing 30 minutes of hashing everytime I switch an algo
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 21, 2014, 10:20:05 AM
 #125

For some reason when I use this, if I switch from any algo, to another, and back to original algo (doesn't matter which), the original algorithm will not mine. It winds up in benchmark mode for some reason (generates shares, but none are submitted). This is fixed if it closes the window and restarts (maxtime reached).

Anyone else experience this issue? Don't like missing 30 minutes of hashing everytime I switch an algo

Which miner are you using?  I wonder if there could be an issue with the new miner instance re-initializing the video card before the previous instance has fully spun down.

Please see if you can recreate this behavior using the start buttons on the individual algorithms.  If you hit the start button for an algorithm and another one is already running it will do a stop on that existing one and start the new one immediately, just like when an algorithm switch occurs.  If you can trigger the behavior, then try doing a stop, wait for a second, and then hit the start button for another algorithm.  If the first test triggers the problem and the second doesn't then it is likely a re-initialization issue.

A workaround I can suggest for this is to find one of the sleep utilities on the Internet.  Do a search on "sleep.exe" and you'll find a ton of them.  Run your miner from a batch file and put a sleep in front of starting the miner for however long is required based on your tests above.  This will let the card calm down before the new miner hits it again.

Hope this helps.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
maelstrom987
Newbie
*
Offline Offline

Activity: 5


View Profile
July 21, 2014, 10:43:48 AM
 #126

It appears to be an issue with nicehash control -- I have this issue with any CCminer 1.1, 1.2, and the latest NVMiner build.

Behavior only present on auto-switching.

The behavior is present across multiple rigs (780 rigs, 750ti rigs). Running the miner with a built in pause command does not change the behavior either.

Again, it still generates shares, but they are either not submitted to my deposit address, or it is running in benchmark mode.


anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
July 23, 2014, 06:32:32 PM
 #127

It appears to be an issue with nicehash control -- I have this issue with any CCminer 1.1, 1.2, and the latest NVMiner build.

Behavior only present on auto-switching.

The behavior is present across multiple rigs (780 rigs, 750ti rigs). Running the miner with a built in pause command does not change the behavior either.

Again, it still generates shares, but they are either not submitted to my deposit address, or it is running in benchmark mode.

I tried to diagnose a bit what might be happening here, but with no luck. NiceHash Control only starts a process and later kills it. There seem to be no other IPC, no OpenCl/Gl calls, or such things.

The only thing I can think of is that maybe ccminer leaves the GPU in a bad state when it is being killed. Do you start ccminer directly from NiceHash Control or do you use a batch file? How current are your GPU's drivers? Have you tried NiceHash Control 1.1? (That version uses a different way to kill the miner.)

Also, have a look at ccminer's window. Any messages there? (Both at startup and while it is running.) Does it go "yay!!!"? Does it say "benchmark mode"?

If that doesn't help, please post your nicehashcontrol.conf and batch files (remove your passwords!!! and user names).
Bombadil
Hero Member
*****
Offline Offline

Activity: 644



View Profile
July 23, 2014, 06:41:37 PM
 #128

It appears to be an issue with nicehash control -- I have this issue with any CCminer 1.1, 1.2, and the latest NVMiner build.

Behavior only present on auto-switching.

The behavior is present across multiple rigs (780 rigs, 750ti rigs). Running the miner with a built in pause command does not change the behavior either.

Again, it still generates shares, but they are either not submitted to my deposit address, or it is running in benchmark mode.


It's typical fast-ccminer-switching behavior. There might be a need of a certain pause before it launches a new miner. Something like 10-30 seconds would be fine (and would make  a nice .conf setting).
I've noticed it before while playing with different algo's ^^" Running 10-20 yay's and quickly switching to another algo was a bad idea Cheesy
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 23, 2014, 07:46:13 PM
 #129

It appears to be an issue with nicehash control -- I have this issue with any CCminer 1.1, 1.2, and the latest NVMiner build.

Behavior only present on auto-switching.

The behavior is present across multiple rigs (780 rigs, 750ti rigs). Running the miner with a built in pause command does not change the behavior either.

Again, it still generates shares, but they are either not submitted to my deposit address, or it is running in benchmark mode.


It's typical fast-ccminer-switching behavior. There might be a need of a certain pause before it launches a new miner. Something like 10-30 seconds would be fine (and would make  a nice .conf setting).
I've noticed it before while playing with different algo's ^^" Running 10-20 yay's and quickly switching to another algo was a bad idea Cheesy

I'll add that as a config option, eventually.  Until then, my earlier suggestion of having a "sleep" command in a batch file before launching the miner is the best workaround.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 28, 2014, 06:19:28 PM
 #130

Hey any new progress on NHC? It would be really nice if you could implement at least a partial TMB support, even thought you don't have a functioning API yet Smiley The NC prices are really low atm, so a second switching option would be awesome.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
July 29, 2014, 12:39:40 PM
 #131

Hey any new progress on NHC? It would be really nice if you could implement at least a partial TMB support, even thought you don't have a functioning API yet Smiley The NC prices are really low atm, so a second switching option would be awesome.

Unfortunately, too much with the home life right now.  At least it looks like TMB did extend their API for real pay rates rather than just normalized values.  That will make it easier.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 29, 2014, 12:58:23 PM
 #132

You know family first Wink
ltc_bilic
Member
**
Offline Offline

Activity: 107


View Profile
July 30, 2014, 10:59:33 AM
 #133

Meanwhile take a look at: http://algox.eu/stats.html, most of the time the data is accurate, but unfortunately it cannot capture nicehash really well,...but those prices we know already Wink
ghotiphry
Newbie
*
Offline Offline

Activity: 28


View Profile
August 01, 2014, 01:40:45 PM
 #134

Uh oh, now what about WestHash?
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
August 01, 2014, 01:56:28 PM
 #135

Uh oh, now what about WestHash?
Yea, I'm not happy about that.

I may have to put a base URL parameter in to allow users to select which site to go to.  Haven't decided yet.  If this turns into too much of a debacle I may start looking at other options for mining instead.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
August 01, 2014, 07:56:40 PM
 #136

I may have to put a base URL parameter in to allow users to select which site to go to.  Haven't decided yet.  If this turns into too much of a debacle I may start looking at other options for mining instead.

maybe just do a bit like bfgminer does. Lose the fixed binding "slot to coin" and add a parameter for name and provider to the config. e.g.

Code:
{ "slot":0, "provider":"nicehash:0", "name":"Scrypt", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS.bat scrypt _ADDRESS_" },
{ "slot":1, "provider":"westhash:0", "name":"Scrypt, too", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS_w.bat scrypt _ADDRESS_" },
{ "slot":2, "provider":"fixprice:0.68965", "name":"Scrypt, three", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c mypool.cmd" },

With time you could add more providers.
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
August 01, 2014, 08:32:26 PM
 #137

I may have to put a base URL parameter in to allow users to select which site to go to.  Haven't decided yet.  If this turns into too much of a debacle I may start looking at other options for mining instead.

maybe just do a bit like bfgminer does. Lose the fixed binding "slot to coin" and add a parameter for name and provider to the config. e.g.

Code:
{ "slot":0, "provider":"nicehash:0", "name":"Scrypt", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS.bat scrypt _ADDRESS_" },
{ "slot":1, "provider":"westhash:0", "name":"Scrypt, too", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS_w.bat scrypt _ADDRESS_" },
{ "slot":2, "provider":"fixprice:0.68965", "name":"Scrypt, three", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c mypool.cmd" },

With time you could add more providers.

That's actually along the lines of what I was thinking for my "version 2" which will support TradeMyBit.  Still, I'll have to wire in more support for getting pay rates to monitor both (or all three) NiceHash sites.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
int3ractivodular
Sr. Member
****
Offline Offline

Activity: 280

TECHNOLOGY, BABY!


View Profile
August 02, 2014, 12:45:12 AM
 #138

I may have to put a base URL parameter in to allow users to select which site to go to.  Haven't decided yet.  If this turns into too much of a debacle I may start looking at other options for mining instead.

maybe just do a bit like bfgminer does. Lose the fixed binding "slot to coin" and add a parameter for name and provider to the config. e.g.

Code:
{ "slot":0, "provider":"nicehash:0", "name":"Scrypt", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS.bat scrypt _ADDRESS_" },
{ "slot":1, "provider":"westhash:0", "name":"Scrypt, too", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS_w.bat scrypt _ADDRESS_" },
{ "slot":2, "provider":"fixprice:0.68965", "name":"Scrypt, three", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c mypool.cmd" },

With time you could add more providers.

That's actually along the lines of what I was thinking for my "version 2" which will support TradeMyBit.  Still, I'll have to wire in more support for getting pay rates to monitor both (or all three) NiceHash sites.

This would be freaking awesome, keep up the great dev
DonQuijote
Legendary
*
Offline Offline

Activity: 1447


♠ ♥ ♣ ♦ < ♛♚&#


View Profile
August 02, 2014, 05:16:07 PM
 #139

Thanks to share, its awesome

THE INGENIOUS GENTLEMAN DON QUIXOTE OF LA MANCHA
♠ ♥ ♣ ♦ < ♛♚♝♞♜ BTC tip: 18vHV7TsnAfj16PfR5VVtCu9BiYuSidaeb
generalt
Legendary
*
Offline Offline

Activity: 928


View Profile
August 03, 2014, 02:28:49 AM
 #140

Yep totally awesome work.  I'm looking forward to seeing support for westhash and other sites!

BTC: 1GENERALrtBAjEv2Ps5cmEW1FADnXh1bCZ
griffga
Member
**
Offline Offline

Activity: 76


View Profile
August 04, 2014, 03:50:38 AM
 #141

Great software and a good addition to the Nicehash set of tools. One thing with multi-algo mining: do you think you guys might put up some sample intensity and thread concurrency settings for all of the popular video cards? This would really help new users get up and running without having to spend hours configuring and testing.
ghotiphry
Newbie
*
Offline Offline

Activity: 28


View Profile
August 04, 2014, 01:22:50 PM
 #142

I may have to put a base URL parameter in to allow users to select which site to go to.  Haven't decided yet.  If this turns into too much of a debacle I may start looking at other options for mining instead.

maybe just do a bit like bfgminer does. Lose the fixed binding "slot to coin" and add a parameter for name and provider to the config. e.g.

Code:
{ "slot":0, "provider":"nicehash:0", "name":"Scrypt", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS.bat scrypt _ADDRESS_" },
{ "slot":1, "provider":"westhash:0", "name":"Scrypt, too", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c MINERS_w.bat scrypt _ADDRESS_" },
{ "slot":2, "provider":"fixprice:0.68965", "name":"Scrypt, three", "hashrate":350, "power":50, "folder":"", "command":"cmd.exe", "arguments":"/c mypool.cmd" },

With time you could add more providers.

That's actually along the lines of what I was thinking for my "version 2" which will support TradeMyBit.  Still, I'll have to wire in more support for getting pay rates to monitor both (or all three) NiceHash sites.

This would be freaking awesome, keep up the great dev
I could see where that could cause almost a total rewrite of the JSON profit retrieval stuff.  You'd want it configurable to pull profit data for different coins/algos for different sites to differnt slots.  Could be messy.
anon42
Newbie
*
Offline Offline

Activity: 9


View Profile
August 05, 2014, 04:58:14 AM
 #143

You'd want it configurable to pull profit data for different coins/algos for different sites to differnt slots.  Could be messy.

Could be. But luckily modern programming languages make that easy. Some OO pseudo code:

Code:
before parsing:
  nicehash_parent = nil
  westhash_parent = nil
=> These are the object to do the actual pulling work. We don't yet know if we need them.

while parsing:
  if cfg.currentslot.provider <startswith> 'nicehash'
    if nicehash_parent == nil
      nicehash_parent = new nicehash_main()
    slot[cfg.currentslot.slotnumber] = new nicehash_accesss(nicehash_parent, afterthecolon(cfg.currentslot.provider))

done

DrSnAzZy
Member
**
Offline Offline

Activity: 112

VootCoin PR/IRC Admin


View Profile
August 15, 2014, 06:00:31 PM
 #144

I have a few questions. I just setup my Nicehash Control yesterday on 3 computers that are mining.

PC #1 Is my Dedicated 6 750ti card mining rig (MSI cards)

PC#2 has 3 evga 750 ti's on it

and pc #3 has 2 750 ti's (MSI)



I currently have it setup like this :


All the configs for the computers are exactly the same. For example My total x11 hash rate is roughly 26mhs - 27 mhs. I have all the configs with "26000" in the X11 hash rate field, and so on for the other algos according to my hash rate.

They are all pointed to Multiminingrigrent.com as i like that website because i can remotely control where the rigs are pointed from there by changing 1 address rather than changing each rig (if i wanted to go off westhash pool.) They are all pointed at the according west hash stratum. Im set up for NIST5, x15, x11, and x13.

My question is should i have all the rigs hash rates PER rig individually in the config? My mining rig does roughly 15.5 mh/s , should that be the number in the config file? or am i correct by putting my total hash rate including all my Pc's running as the rate used for calculation in the config file. Smiley just trying to get the best profit.


1 more question, is the POWER field per card? or for the whole rig/mining operation?

Vootcoin!
Travis9x
Full Member
***
Offline Offline

Activity: 170


View Profile WWW
August 23, 2014, 05:47:06 PM
 #145

I would just like to give huge thanks to StuffOfInterest for such an incredibly useful multi-algo mining tool!  My only suggestion would be something that has already been suggested, which is the support for multiple multi-algo pools (such as WestHash, YAAMP, TradeMyBit, etc).  I know this is already planned (possibly) for ver 2.0, but I just wanted to throw in my support for this and further development.  I chipped in some mBTC to show that support.   Smiley

Also, to answer DrSnazzy -
I have a few questions. I just setup my Nicehash Control yesterday on 3 computers that are mining.

PC #1 Is my Dedicated 6 750ti card mining rig (MSI cards)

PC#2 has 3 evga 750 ti's on it

and pc #3 has 2 750 ti's (MSI)



I currently have it setup like this :


All the configs for the computers are exactly the same. For example My total x11 hash rate is roughly 26mhs - 27 mhs. I have all the configs with "26000" in the X11 hash rate field, and so on for the other algos according to my hash rate.

They are all pointed to Multiminingrigrent.com as i like that website because i can remotely control where the rigs are pointed from there by changing 1 address rather than changing each rig (if i wanted to go off westhash pool.) They are all pointed at the according west hash stratum. Im set up for NIST5, x15, x11, and x13.

My question is should i have all the rigs hash rates PER rig individually in the config? My mining rig does roughly 15.5 mh/s , should that be the number in the config file? or am i correct by putting my total hash rate including all my Pc's running as the rate used for calculation in the config file. Smiley just trying to get the best profit.


1 more question, is the POWER field per card? or for the whole rig/mining operation?
My opinion is that you should have each rig configured for its own hashpower output and power consumption.  I believe NHC is set up to be configured this way, as a per-rig basis.
So in detail:  yes, input each rig's own hashrate into each separate config file.  Similarly, input each rig's own power consumption into each separate config file.  You want every config file and every NHC monitor/control panel to show true statistics for the rig that it is running on.  Otherwise, you may end up with false profitability rates.

StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
September 04, 2014, 01:08:06 PM
 #146

ANNOUNCEMENT

NiceHash Control is Dead!

Long live MinerControl!


Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Akiam
Newbie
*
Offline Offline

Activity: 6


View Profile
September 04, 2014, 02:23:03 PM
 #147

Tell something about it, please Smiley
StuffOfInterest
Sr. Member
****
Offline Offline

Activity: 380


View Profile
September 04, 2014, 02:30:19 PM
 #148

ANNOUNCEMENT

NiceHash Control is Dead!

Long live MinerControl! <=====

Tell something about it, please Smiley

Just follow the link.

Miner Control to get auto algorithm switching for multiple mining services. (please donate if you like)
Could Proof of Blockchain (PoBC) help secure a coin and avoid runaway ASIC mining?
Akiam
Newbie
*
Offline Offline

Activity: 6


View Profile
September 27, 2014, 04:46:44 PM
 #149

ANNOUNCEMENT

NiceHash Control is Dead!

Long live MinerControl! <=====

Tell something about it, please Smiley

Just follow the link.
I didnt read it, Thanks!
bugger
Newbie
*
Offline Offline

Activity: 1


View Profile
January 13, 2018, 09:40:43 AM
 #150

NiceHash Control is Dead!
NiceHash was hacked on 06.12.2017 it's dangerous to work with them
Mike011
Full Member
***
Offline Offline

Activity: 199


View Profile
January 13, 2018, 12:46:03 PM
 #151

Absolutely agree with above post. Nicehash will NEVER see me again. Bloody thieves!
Pages: 1 2 3 4 5 6 7 8 [All]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!