Author

Topic: cgminer config from URL (Read 1869 times)

legendary
Activity: 2702
Merit: 1468
July 02, 2013, 12:05:12 PM
#17
Or better yet, put config file on mounted drive.  Let all the cgminers read it from one location.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 12:06:33 PM
#15
Or better yet, put config file on mounted drive.  Let all the cgminers read it from one location.

Yeah something like that but i got all different gpus so its a bit more tricky ^^
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 12:03:40 PM
#14
Put cgminer.conf on the network, run remote script (php, cgi or whatever) to wget that script to the machine cgminer is running.  Use akbash to recycle cgminer process remotely (which will load your new config file).
Problem solved. 

Same workaround as posted by me before, not what i asked...

Create start bat file to download the config file, save it locally and start cgminer.

If you want it right in the cgminer,  just put your wget call to cgminer main(), save the file, let the cgminer read it and do its
thing.  Kill the process remotely (with whatever method you fancy) if you need to reload the config.

You'd have to compile your version of cgminer as I don't think Con would allow this change.  Ask him directly.

Yeah i didn't think about the easy bot control issue, i thought it to be a great addition Cheesy
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
July 02, 2013, 11:30:47 AM
#13
Yes, it does, which is what CGWatcher does and why it needs full API access.

Kay and you don't need cgwatcher for this, i've been doing this with php...i'll think of something Smiley

Well, I dont have the coding skills to pull that off  Wink
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 11:20:55 AM
#12
Yes, it does, which is what CGWatcher does and why it needs full API access.

Kay and you don't need cgwatcher for this, i've been doing this with php...i'll think of something Smiley
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
July 02, 2013, 11:20:04 AM
#11
Yes, it does, which is what CGWatcher does and why it needs full API access.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 11:16:46 AM
#10
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-

Have you checked out the CGRemote option that will be coming to CGWatcher?

https://bitcointalksearch.org/topic/m.2616311

Put cgminer.conf on the network, run remote script (php, cgi or whatever) to wget that script to the machine cgminer is running.  Use akbash to recycle cgminer process remotely (which will load your new config file).
Problem solved. 

Same workaround as posted by me before, not what i asked...

The biggest issue I see you having is getting your miner to restart.  The way programs are set now, they dont keep checking for settings once loaded. If you want to enter a new set up settings, you have to stop the miner, change them, and then restart your session.

You can either centrally network a config file, or even Dropbox it and be able to access it from anywhere, but, you are still going to have to tell the miner to restart in order for it to load the new settings.

Doesn't a cgminer restart via API reload the config? If not, yes - this will be a problem. It's just an idea to centralize all the management...
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
July 02, 2013, 11:15:25 AM
#9
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-

Have you checked out the CGRemote option that will be coming to CGWatcher?

https://bitcointalksearch.org/topic/m.2616311

Put cgminer.conf on the network, run remote script (php, cgi or whatever) to wget that script to the machine cgminer is running.  Use akbash to recycle cgminer process remotely (which will load your new config file).
Problem solved. 

Same workaround as posted by me before, not what i asked...

The biggest issue I see you having is getting your miner to restart.  The way programs are set now, they dont keep checking for settings once loaded. If you want to enter a new set up settings, you have to stop the miner, change them, and then restart your session.

You can either centrally network a config file, or even Dropbox it and be able to access it from anywhere, but, you are still going to have to tell the miner to restart in order for it to load the new settings.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 10:42:36 AM
#8
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-

Have you checked out the CGRemote option that will be coming to CGWatcher?

https://bitcointalksearch.org/topic/m.2616311

Put cgminer.conf on the network, run remote script (php, cgi or whatever) to wget that script to the machine cgminer is running.  Use akbash to recycle cgminer process remotely (which will load your new config file).
Problem solved. 

Same workaround as posted by me before, not what i asked...
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 10:38:42 AM
#7
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-

Have you checked out the CGRemote option that will be coming to CGWatcher?

https://bitcointalksearch.org/topic/m.2616311

Nothing special about that software, using api calls aswell so no, won't work.
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
July 02, 2013, 09:58:19 AM
#6
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-

Have you checked out the CGRemote option that will be coming to CGWatcher?

https://bitcointalksearch.org/topic/m.2616311
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 09:49:52 AM
#5
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.

I got a mining proxy, i also got api write access, there are still certain values in the config you cant change (scan-time, worksize, vectors etc) which can affect accepted on fast coins. This would be solved if i could use a url as config input Smiley

I can work around that with a simple wget before i start the miner to replace the cgminer.conf BUT i dislike workarounds plus it won't run if i restart the miner by api which is much easier than running remote scripts -.-
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
July 02, 2013, 08:51:17 AM
#4
Messing with the individual tweaks may not be possible, but using a proxy to control things certainly can.  Changing settings/pools from a miner proxy to all of your rigs is a reality.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 06:52:01 AM
#3
Such as, controlling your miner from a central config file and making mass switching way easier, IF i had a botnet of notable size i would program such trivial task myself...
legendary
Activity: 3583
Merit: 1094
Think for yourself
July 02, 2013, 06:16:53 AM
#2
This would open up some nice dynamic configuration options Smiley

Such as, making it easier to control botnets?
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
July 02, 2013, 06:01:18 AM
#1
As topic says, cgminer can't use an URL as config file BUT is it alot of work to change that? This would open up some nice dynamic configuration options Smiley
Jump to: