Giter Club home page Giter Club logo

auto-switch-miners's Introduction

auto-switch-miners for Linux

I noticed there wasn't an easy way to use a auto miner switching like that done by NiceHash on Windows. Most of the utilities are available only for Windows. So created this script that can be used to switch miners on Linux.

For Linux (and should work with windows, though not tested)

This program is intended to be used as an auto switching utility to decide and chose the right miner based on 24h profitability report as suggested by whattomine.

By allowing users to specify and configure the coin-algorithm pair, or algorithms to be matched to your own custom scripts, it provides flexibility in choosing any specific miner you desire for a specific coin-algorithm pair.

All the configurations for this program utility are done in the input.cfg file -

Section A] To customize and mimic input parameters to what you typically input on the whattomine.com page.

Section B] To specify the choice of miners to be used based on 'coin-algorithm'=start_miner_script or 'algorithm'=start_miner_script format. start_miner_script should typically point to a miner initialization script. E.g. I have a sub directory for ethminer and have the miner trigger script file named 'nicehash.sh'. So my entry would be "Nicehash-ethash=ethminer/nicehash.sh"

Dependencies & Prerequisites:

  1. python 3.5 or above (if you are mining on Ubuntu 16.04 or above, you likely have python3 pre-installed)
  2. .sh files to start desired miners (this program is a miner switching utility that uses your existing miners that are configured to be started using customized .sh scripts)

Usage:

Step 1) Download the auto-pilot.py, input.cfg and start-auto-pilot.sh to your local folders. The specifis miners that you have specified in the input.cfg file have a relative path to this folder. So these program files should be located in the same folder (base folder) where you have all your miners. e.g. the sample input.cfg file assumes there are 3 folders: zm_0.6.1, ethminer and bminer, respectively in the base directory where the auto-pilot.py file is located. The path for the sh files is specified relative to the current directory

Step 2) Update the input.cfg file for your setup and miners.

Step 3) Use following commands: $chmod +x start-auto-pilot.sh $./start-auto-pilot.sh

License: You are free to use this script for your personal rigs/custom gaming pc based miners.

Encourage donations to following address:

BTC: 3HoBJWxN9HWGmNU4FTfAthqnj1j52Y9ZyX

ETH: 0xBb8DaaaFA18B01DF169e197988Ed708e868508D5

LTC: MXC6KNMr75mruK3Bsv62hMaJ9UBeEaNXn8

auto-switch-miners's People

Contributors

dbapa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-switch-miners's Issues

Not working...Archlinux rolling realease!

File "auto-pilot.py", line 256
global current_algo, miner_proc
^
SyntaxError: name 'current_algo' is assigned to before global declaration

input.cfg:

**### # Copyright https://github.com/dbapa

The config file to configure the auto-pilot to switch miners based on

profitability as suggested by whattomine configuration in the gpu's section

Section A

This section will be used to configure the whattomine query

Used as input to whattomine query

[gpus]
280x=0
380=0
fury=0
470=0
480=0
570=0
580=1
vega56=0
vega64=0
10606=0
1070=0
1070Ti=0
1080=0
1080Ti=0

This selection is to select the algo's on the whattomine page

Used as input to whattomine query

[algorithms]
CryptoNightR=1
CryptoNightHaven=1
CryptoNightHeavy=1
CryptoNightSaber=1
CryptoNightConceal=1
CryptoNightFastV2=1
CryptoNightGPU=1
CNReverseWaltz=1

Below section for configuring thru put of each algorithms for your case.

Used as input to whattomine query

[CryptoNightR]
hash-rate=250
power=75

[CryptoNightHaven]
hash-rate=20
power=90

[CryptoNightHeavy]
hash-rate=19
power=75

[CryptoNightSaber]
hash-rate=20000
power=75

[CryptoNightFastV2]
hash-rate=20
power=90

[CNReverseWaltz]
hash-rate=20
power=75

[CryptoNightGPU]
hash-rate=20
power=75

Section B

This section will be used to configure your local miner script files

You can specify the .sh file to be used either for a particular algorithm

like 'equihash' or specify different algorithms based on coin-algorithm pair,

e.g. 'nicehash-equihash' or 'zcash-equihash' in case you have

specified specific coin in your script file.

E.g. Using different ports with Miningpoolhub for specific coin mining

The switcher will first search for "coin-miner" pair, and fall back to

only "miner", else use the "default-miner"

[miners]
CryptoNightR=meta-miner.sh
CryptoNightHaven=meta-miner.sh
CryptoNightHeavy=meta-miner.sh
CryptoNightSaber=meta-miner.sh
CryptoNightFastV2=meta-miner.sh
CryptoNightGPU=meta-miner.sh
CNReverseWaltz=meta-miner.sh

[general]
polling_frequency=900
#polling_frequency in seconds
power_cost_per_kwh=0.13
threshold=0.05

threshold will be the difference in performance which will trigger changing

the algorithm 0.1 = 10%, 0.05 = 5%**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.