This script is intend to use on the same machine's rig, but you can launch on another* machine with a small functionallity loss. Tested with python 3.11.1
*Right now it only support non-linux as "another" machine
- Go to WhatToMine, setup all algos and parameters, calculate it, press JSON button on top right page and then copy URL from the page that you got redirected. Paste it somewhere as we will use it later on installation phase
- On hiveos, create every flight sheet you want and nameit exactly how the coin is named on WhatToMine i.e EthereumClassic
- Still on hiveos, setup all overclock settings and toggle on Auto Select Algo option
Preferable on the rig machine. You can either start a remote access hive shell or by local console
-
Go to home directory
cd ~
-
Clone this repo
git clone https://github.com/rotepfau/gpumining-profitswitcher.git
-
Copy example.config.toml, rename it to config.toml and replace all items to yours configuration ie:
HIVE_API_KEY = "eyMANYLETTERS..." FARM_NAME = "Joe's Farm" WORKER_NAME = "RIG01" COINS = ["Aeternity","Aion","Alephium","Beam","BitcoinGold","Ergo","EthereumClassic","Flux","Kaspa","Ravencoin","Zano"] WHATTOMINE_JSON = "https://whattomine.com/coins.json?eth=true&factor%5Beth_hr%5D=116.0&factor%5Beth_p%5D=360.0&e4g=true&factor%5Be4g_hr%5D=132.0&factor%5Be4g_p%5D=360.0&zh=true&factor%5Bzh_hr%5D=132.0&factor%5Bzh_p%5D=320.0&cnh=true&factor%5Bcnh_hr%5D=2600.0&factor%5Bcnh_p%5D=360.0&cng=true&factor%5Bcng_hr%5D=4600.0&factor%5Bcng_p%5D=360.0&s5r=true&factor%5Bs5r_hr%5D=1.12&factor%5Bs5r_p%5D=240.0&factor%5Bcx_hr%5D=0.0&factor%5Bcx_p%5D=0.0&eqa=true&factor%5Beqa_hr%5D=624.0&factor%5Beqa_p%5D=320.0&cc=true&factor%5Bcc_hr%5D=17.2&factor%5Bcc_p%5D=320.0&cr29=true&factor%5Bcr29_hr%5D=17.2&factor%5Bcr29_p%5D=360.0&hh=true&factor%5Bhh_hr%5D=1180.0&factor%5Bhh_p%5D=320.0&ct32=true&factor%5Bct32_hr%5D=1.0&factor%5Bct32_p%5D=320.0&eqb=true&factor%5Beqb_hr%5D=44.0&factor%5Beqb_p%5D=320.0&b3=true&factor%5Bb3_hr%5D=2.56&factor%5Bb3_p%5D=320.0&factor%5Bns_hr%5D=0.0&factor%5Bns_p%5D=0.0&al=true&factor%5Bal_hr%5D=230.0&factor%5Bal_p%5D=360.0&factor%5Bops_hr%5D=0.0&factor%5Bops_p%5D=0.0&eqz=true&factor%5Beqz_hr%5D=78.0&factor%5Beqz_p%5D=360.0&zlh=true&factor%5Bzlh_hr%5D=104.0&factor%5Bzlh_p%5D=320.0&kpw=true&factor%5Bkpw_hr%5D=42.4&factor%5Bkpw_p%5D=320.0&ppw=true&factor%5Bppw_hr%5D=42.4&factor%5Bppw_p%5D=320.0&x25x=true&factor%5Bx25x_hr%5D=11.6&factor%5Bx25x_p%5D=360.0&fpw=true&factor%5Bfpw_hr%5D=40.0&factor%5Bfpw_p%5D=360.0&vh=true&factor%5Bvh_hr%5D=1.84&factor%5Bvh_p%5D=360.0&factor%5Bcost%5D=0.0&factor%5Bcost_currency%5D=USD&sort=Revenue&volume=0&revenue=24h&factor%5Bexchanges%5D%5B%5D=&factor%5Bexchanges%5D%5B%5D=binance&factor%5Bexchanges%5D%5B%5D=bitfinex&factor%5Bexchanges%5D%5B%5D=bitforex&factor%5Bexchanges%5D%5B%5D=bittrex&factor%5Bexchanges%5D%5B%5D=coinex&factor%5Bexchanges%5D%5B%5D=exmo&factor%5Bexchanges%5D%5B%5D=gate&factor%5Bexchanges%5D%5B%5D=graviex&factor%5Bexchanges%5D%5B%5D=hitbtc&factor%5Bexchanges%5D%5B%5D=ogre&factor%5Bexchanges%5D%5B%5D=poloniex&factor%5Bexchanges%5D%5B%5D=stex&dataset=Main"
*Hive api key can be generated on accounts/sessions
**WHATTOMINE_JSON is the WhatToMine url that you side noted on pre-installation phase -
Create python virtual environment and activate it
-
Install dependencies
pip install -r requirements.txt
-
Edit crontab file to keep script running every hour
vi /hive/etc/crontab.root
or
nano /hive/etc/crontab.root
-
Add this to the end of file
6-59/15 * * * * cd /home/user/gpumining-profitswitcher && .venv/bin/python core.py >> crontab-profitswitcher.log 2>&1
*Keep blank line on very last line of the file or will not work
**If you wanna to change script interval take a look on crontab-generator -
Reboot to crontab change take effect
USE AT YOUR OWN RISK
DON'T THRUST. ALWAYS VERIFY
I develop just as a hobby, wondering if that could change on upcoming days. Contributions are very welcome, specially on this README (feel free to correct my BAD english).
- Take some screenshots
- Add some comments to be easier to new collaborators
- Video tutorial