Problem: I have multiple rigs and I often switch different cgminers to be able to mine coins based on various algorithms (regular scrypt, scrypt-adaptive-nfactor, keccak sha-3, etc). I also lease my rigs on LeaseRig and customers often requests to switch a particular rig or all of them to a particular algorithm.
Solution: Make a simple back-end script and a simple web interface to be able to do all this with a single button click. Oh yeah, let the dreams come true!
---
So, basically I made a simple web page, actually a web wrapper to control my Linux based multi-mode rigs. This solution is only for Linux rigs (I guess the majority of serious rig providers are running some sort of Linux on the rigs anyway) and requires some Linux knowledge to properly set-up the environment. With this solution rig provider can control his rig's "mode" remotely solely with web browser.
The system consist of one shell script that handles cgminer "mode" via screen sessions and one php web page to control rig's "mode" - this php web page basically just calls the underlying shell script. Apache or some other webserver must be running on the rig (just basic install of apache is good out of the box with defaults). To be able to support Windows rigs one would have to write some kind of whatever script/app to be able to start/stop different cgminers (different forks of cgminers) in windows - I have no idea how to do this; but one could re-use the php web app on Windows rigs as well.
See demo video. This video shows how this script is stopping one cgminer and switches to another cgminer or vertminer or whatever. Keep in mind that this script switches cgminer and also (optionally) changes all the needed config at LeaseRig (see also the other demo below):
Video DEMO: http://files.kobal.org/caveminers/cgminer_switcher_demo.m4vFurther more, I made another php wrapper that enables me to switch mode for all my rigs at once, just with a single button ... this one actually just submits proper POST data to each rig's php web wrapper, see the demo here (this demo doesn't show cgminer, but cgminer is switching in the background just as it is on the previous demo):
Video DEMO: http://files.kobal.org/caveminers/cgminer_multi_switcher_demo.m4v---
Things to keep in mind:
-
currently only Linux rigs are supported-
this let's you change rig's cgminer instance as well as LeaseRig rig's configuration (type, speed, description, pools)---
These scripts are in beta development. I'm not responsible for any kind of issues due to cgminer failures or errors! USE AT YOUR OWN RISK!But if you like it, consider dropping a few mBTC to 1LfFJV321RKeUmhRAf9T5VXKreX7Zdm4y7 ... Thanks!
---
Quick (and dirty) how to (repeat this steps on each of your rigs):
http://files.kobal.org/caveminers/cgminer_switcher_README.txtget the shell script here:
http://files.kobal.org/caveminers/cgminer_switcher.sh.tar.gzget the web scripts here:
http://files.kobal.org/caveminers/cgminer_switcher_php.tar.gz---
btw: here you can grab some Linux compiled versions of cgminer (and it's forks):
http://files.kobal.org/cgminer/cgminer-3.7.2-kalroth-20140204-LINUX.tar.gzhttp://files.kobal.org/cgminer/cgminer-3.7.3-kalroth-keccak-LINUX.tar.gzhttp://files.kobal.org/cgminer/cgminer-vertminer-gpu-LINUX.tar.gz