Pages:
Author

Topic: [ANN] NiceHash Control 1.1.1 - Auto profit switching control for NiceHash servic - page 8. (Read 30028 times)

full member
Activity: 146
Merit: 100
full member
Activity: 146
Merit: 100
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
full member
Activity: 182
Merit: 100
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
sr. member
Activity: 401
Merit: 250
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.
full member
Activity: 182
Merit: 100
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 !!
sr. member
Activity: 401
Merit: 250
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.
full member
Activity: 182
Merit: 100
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

sr. member
Activity: 401
Merit: 250
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
full member
Activity: 182
Merit: 100
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?
sr. member
Activity: 401
Merit: 250
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.
full member
Activity: 182
Merit: 100
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?
sr. member
Activity: 401
Merit: 250
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.
full member
Activity: 182
Merit: 100
WOW this looks great

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

sr. member
Activity: 401
Merit: 250
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:
Pages:
Jump to: