All Projects → ajpsp5 → ethos-auto-miner

ajpsp5 / ethos-auto-miner

Licence: MIT license
Automatically switch miner to the most profitable algorithm for Ethos.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to ethos-auto-miner

SWARM
Profit Switching Mining Administrator For HiveOS/Linux & Windows: HiveOS Integrated
Stars: ✭ 66 (+371.43%)
Mutual labels:  amd, nicehash
xrig
High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.
Stars: ✭ 23 (+64.29%)
Mutual labels:  amd, nicehash
Rainbowminer
GPU/CPU Mining script with intelligent profit-switching between miningpools, algorithms, miners, using all possible combinations of devices (NVIDIA, AMD, CPU). Features: actively maintained, uses the top actual miner programs (Bminer, Ccminer, Claymore, Dstm, EnemyZ, Sgminer, T-rex and more) easy setup wizard, webinterface, auto update.
Stars: ✭ 158 (+1028.57%)
Mutual labels:  amd
ZenStates-Linux
Dynamically edit AMD Ryzen processor P-States
Stars: ✭ 52 (+271.43%)
Mutual labels:  amd
radeon-scripts
Scripts to manage various aspects of the AMD line of cards in Linux
Stars: ✭ 39 (+178.57%)
Mutual labels:  amd
Awesome Vulkan
Awesome Vulkan ecosystem
Stars: ✭ 2,322 (+16485.71%)
Mutual labels:  amd
CryptoProfitSwitcher
Extensible profit switcher for crypto coins and algorithms
Stars: ✭ 49 (+250%)
Mutual labels:  nicehash
Simplesvm
A minimalistic educational hypervisor for Windows on AMD processors.
Stars: ✭ 152 (+985.71%)
Mutual labels:  amd
MM.Hash
Profit Switching Miner For HiveOS/Linux- OLD VERSION: Project Moved To SWARM! https://github.com/MaynardMiner/SWARM
Stars: ✭ 17 (+21.43%)
Mutual labels:  nicehash
TypeScript-AMD-Boilerplate
A TypeScript AMD Grunt Boilerplate with RequireJS
Stars: ✭ 46 (+228.57%)
Mutual labels:  amd
Coyote
Framework providing operating system abstractions and a range of shared networking (RDMA, TCP/IP) and memory services to common modern heterogeneous platforms.
Stars: ✭ 80 (+471.43%)
Mutual labels:  amd
Webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Stars: ✭ 60,034 (+428714.29%)
Mutual labels:  amd
Srmd Ncnn Vulkan
SRMD super resolution implemented with ncnn library
Stars: ✭ 186 (+1228.57%)
Mutual labels:  amd
realcaffe2
The repo is obsolete. Use at your own risk.
Stars: ✭ 12 (-14.29%)
Mutual labels:  amd
Requirejs Demo
《RequreJS学习笔记》
Stars: ✭ 164 (+1071.43%)
Mutual labels:  amd
nix-install-vendor-gl
Ensure that a system-compatible OpenGL driver is available for `nix-shell`-encapsulated programs.
Stars: ✭ 22 (+57.14%)
Mutual labels:  amd
Simplesvmhook
SimpleSvmHook is a research purpose hypervisor for Windows on AMD processors.
Stars: ✭ 159 (+1035.71%)
Mutual labels:  amd
Zenpower
Zenpower is Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs.
Stars: ✭ 237 (+1592.86%)
Mutual labels:  amd
ryzen smu
A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors. Read only mirror of https://gitlab.com/leogx9r/ryzen_smu
Stars: ✭ 57 (+307.14%)
Mutual labels:  amd
RET
ROCm Machine Learning and HPC Stack installer
Stars: ✭ 28 (+100%)
Mutual labels:  amd

ethos-auto-miner

Automatically switch miner to the most profitable algorithm for Ethos.

Setup

Clone the repository to your ethos home directory /home/ethos.

$ git clone https://github.com/ajpsp5/ethos-auto-miner

Navigate into the /home/ethos/ethos-auto-miner directory and run the installer

$ cd /home/ethos/ethos-auto-miner && php install.php

The installer will clear any remote or local config files so make sure you save a copy of your configs.

After the install script finishes, set the cronjob. Run command:

$ crontab -e

Cron Schedule:

*/50 * * * * /usr/bin/php /home/ethos/ethos-auto-miner/ethos-auto-miner.php > /home/ethos/ethos-auto-miner/output.log 2>&1

It is possible that ethos may throw the common error gpu clocks too low or gpu clock problem. If this happen, perform a hard reboot of your rig.

Default Configs and Settings

There are two default settings added for either AMD or Nivida rigs. If you have an AMD rig, you simple start with the AMD defaults

$ mv /home/ethos/ethos-auto-miner/_amd_algo-miners.json algo-miners.json && mv /home/ethos/ethos-auto-miner/_amd_config.json conf.json

Config Usage

This is where you will set your wallet address and your rig name from ethos. Be sure to set your what-to-mine json address.

To generate the correct what-to-mine address, select GPU types, click calculate, then add .json to the url. Here's an example of a rig with 6 RX580 GPUs:

http://whattomine.com/coins.json?utf8=%E2%9C%93&adapt_q_280x=0&adapt_q_380=0&adapt_q_fury=0&adapt_q_470=0&adapt_q_480=0&adapt_q_570=0&adapt_q_580=6&adapt_580=true&adapt_q_vega56=0&adapt_q_vega64=0&adapt_q_750Ti=0&adapt_q_1050Ti=0&adapt_q_10606=0&adapt_q_1070=0&adapt_q_1070Ti=0&adapt_q_1080=0&adapt_q_1080Ti=0&eth=true&factor%5Beth_hr%5D=181.2&factor%5Beth_p%5D=810.0&grof=true&factor%5Bgro_hr%5D=111.0&factor%5Bgro_p%5D=690.0&x11gf=true&factor%5Bx11g_hr%5D=41.4&factor%5Bx11g_p%5D=660.0&cn=true&factor%5Bcn_hr%5D=4140.0&factor%5Bcn_p%5D=690.0&cn7=true&factor%5Bcn7_hr%5D=4140.0&factor%5Bcn7_p%5D=690.0&eq=true&factor%5Beq_hr%5D=1740.0&factor%5Beq_p%5D=720.0&lre=true&factor%5Blrev2_hr%5D=34200.0&factor%5Blrev2_p%5D=720.0&ns=true&factor%5Bns_hr%5D=4920.0&factor%5Bns_p%5D=900.0&bk14=true&factor%5Bbk14_hr%5D=8100.0&factor%5Bbk14_p%5D=780.0&pas=true&factor%5Bpas_hr%5D=4140.0&factor%5Bpas_p%5D=870.0&skh=true&factor%5Bskh_hr%5D=111.0&factor%5Bskh_p%5D=690.0&n5=true&factor%5Bn5_hr%5D=120.0&factor%5Bn5_p%5D=690.0&factor%5Bl2z_hr%5D=420.0&factor%5Bl2z_p%5D=300.0&xn=true&factor%5Bxn_hr%5D=9.6&factor%5Bxn_p%5D=720.0&factor%5Bcost%5D=0.12&sort=Profitability24&volume=0&revenue=24h&factor%5Bexchanges%5D%5B%5D=&factor%5Bexchanges%5D%5B%5D=abucoins&factor%5Bexchanges%5D%5B%5D=bitfinex&factor%5Bexchanges%5D%5B%5D=bittrex&factor%5Bexchanges%5D%5B%5D=binance&factor%5Bexchanges%5D%5B%5D=cryptopia&factor%5Bexchanges%5D%5B%5D=hitbtc&factor%5Bexchanges%5D%5B%5D=poloniex&factor%5Bexchanges%5D%5B%5D=yobit&dataset=Main&commit=Calculate

Config Example: /home/ethos/ethos-auto-miner/conf.json

{
    "rigname"           : "0edcb9",
    "proxywallet"       : "16kcdsWD2h7YAdv9YGMyP9KCpcNEHE9zFM.Rig2",
    "whattomineurl"     : "http://whattomine.com/coins.json?utf8=%E2%9C%93&adapt_q_280x=0&adapt_q_380=0&adapt_q_fury=0&adapt_q_470=0&adapt_q_480=0&adapt_q_570=0&adapt_q_580=0&adapt_q_vega56=0&adapt_q_vega64=0&adapt_q_750Ti=0&adapt_q_1050Ti=0&adapt_q_10606=0&adapt_q_1070=4&adapt_1070=true&adapt_q_1070Ti=0&adapt_q_1080=1&adapt_1080=true&adapt_q_1080Ti=0&eth=true&factor%5Beth_hr%5D=143.3&factor%5Beth_p%5D=620.0&grof=true&factor%5Bgro_hr%5D=178.5&factor%5Bgro_p%5D=670.0&x11gf=true&factor%5Bx11g_hr%5D=59.5&factor%5Bx11g_p%5D=625.0&cn=true&factor%5Bcn_hr%5D=3100.0&factor%5Bcn_p%5D=500.0&cn7=true&factor%5Bcn7_hr%5D=3100.0&factor%5Bcn7_p%5D=500.0&eq=true&factor%5Beq_hr%5D=2270.0&factor%5Beq_p%5D=610.0&lre=true&factor%5Blrev2_hr%5D=188500.0&factor%5Blrev2_p%5D=670.0&ns=true&factor%5Bns_hr%5D=5060.0&factor%5Bns_p%5D=670.0&bk14=true&factor%5Bbk14_hr%5D=12900.0&factor%5Bbk14_p%5D=650.0&pas=true&factor%5Bpas_hr%5D=5050.0&factor%5Bpas_p%5D=630.0&skh=true&factor%5Bskh_hr%5D=146.5&factor%5Bskh_p%5D=630.0&n5=true&factor%5Bn5_hr%5D=234.0&factor%5Bn5_p%5D=670.0&factor%5Bl2z_hr%5D=420.0&factor%5Bl2z_p%5D=300.0&xn=true&factor%5Bxn_hr%5D=15.8&factor%5Bxn_p%5D=610.0&factor%5Bcost%5D=0.12&sort=Profitability24&volume=0&revenue=24h&factor%5Bexchanges%5D%5B%5D=&factor%5Bexchanges%5D%5B%5D=abucoins&factor%5Bexchanges%5D%5B%5D=bitfinex&factor%5Bexchanges%5D%5B%5D=bittrex&factor%5Bexchanges%5D%5B%5D=binance&factor%5Bexchanges%5D%5B%5D=cryptopia&factor%5Bexchanges%5D%5B%5D=hitbtc&factor%5Bexchanges%5D%5B%5D=poloniex&factor%5Bexchanges%5D%5B%5D=yobit&dataset=&commit=Calculate",
    "statsfilepath"     : "/var/run/ethos/stats.file",
    "localconfigpath"   : "/home/ethos/local.conf",
    "default"       : { // Default Algorithm and Settings
        "algorithm"     : "equihash",
        "flags"         : "",
        "pool"          : "stratum+tcp://equihash.usa.nicehash.com:3357",
        "autoreboot"    : "10",
        "stratumproxy"  : "nicehash",
        "attributes"    : {
            "cor"   : "+125 +125 +125 +125 +85",
            "mem"   : "+275 +275 +275 +275 +375",
            "pwr"   : "130 120 120 130 170",
            "fan"   : "50 50 50 50 75"
        }
    },
    "pools"         : { // Pools for each Algorithm Type
        "ethash"        : "stratum+tcp://daggerhashimoto.usa.nicehash.com:3353",
        "equihash"      : "stratum+tcp://equihash.usa.nicehash.com:3357",
        "lyra2rev2"     : "stratum+tcp://lyra2rev2.usa.nicehash.com:3347",
        "neoscrypt"     : "stratum+tcp://neoscrypt.usa.nicehash.com:3341",
        "cryptonight"   : "stratum+tcp://cryptonight.usa.nicehash.com:3355",
        "cryptonightv7" : "stratum+tcp://cryptonightv7.usa.nicehash.com:3363"
    },
    "notifications" : {
        "email"         : "[email protected]", // Email to be notified
        "thresholds"    : {
            "core" : {
                "min" : "1000"
            },
            "hash": {
                "min" : "100"
            },
            "temp": {
                "max" : "80"
            },
            "voltage": {
                "min" : "1",
                "max" : "3"
            }
        }
    }
}

Make sure you update the notification section email to the email that needs to be notified when your rig is down or meets an threshold. IMPORTANT rigname must match your rig's information.

Algorithm Settings

This where you can overclock settings based on the Algorithm type.

File Example: /home/ethos/ethos-auto-miner/algo-miners.json

{
    "cryptonightv7" : {
        "miner"         : "claymore-xmr",
        "flags"         : "-pow7 1",
        "attributes"    : {

        }
    },
    "cryptonight" : {
        "miner"         : "claymore-xmr",
        "flags"         : "-pow7 1"
    },
    "ethash"        : {
        "miner"         : "claymore",
        "flags"         : "--cl-global-work 8192 --farm-recheck 200",
        "attributes"    : { // Attributes can use any rig specific Ethos Config setting
            "cor"   : "2000 2000 1200 1200 1200 1200",
            "mem"   : "2200 2250 2250 2000 2250 2000",
            "pwr"   : "5 5 5 5 5 5"
        }
    },
    "equihash"      : {
        "miner" : "ewbf-zcash",
        "flags" : ""
    },
    "lyra2rev2"     : {
        "miner" : "ccminer",
        "flags" : "-a lyra2v2"
    },
    "neoscrypt"     : {
        "miner" : "ccminer",
        "flags" : "-a neoscrypt"
    }
}

Notifications

You can also recieve notifications based on thresholds set in your config file. Simple add the notifications section to your config and set your min and max thresholds.

{
    "notifications" : {
        "email"         : "[email protected]", // You can set multiple emails here by using comma separators
        "thresholds"    : {
            "core" : {
                "min" : "1000" // Rule states notify me when the core reaches below "1000"
            },
            "hash": {
                "min" : "100" // Rule states notify me when the overall hashrate reaches below "100"
            },
            "temp": {
                "max" : "80" // Rule states notify me when the overall temperature reache above "80C"
            },
            "voltage": { // Rule states notify me when voltage is below "1" or above "3"
                "min" : "1",
                "max" : "3"
            }
        }
    }
}

Possible threshold attributes

version      - Version of Ethos Rig is running 
hash         - Overall Hashrate of Rig
uptime       - Rig uptime in seconds 
cpu_temp     - Temperature of Rig CPU
temp         - Overall temperature of Rig
gpus         - Number of GPUs Rig has
fanrpm       - Each GPU Fan RPM
fanpercent   - Each GPU Fan Speed Percentage
miner_hashes - Each GPU Hashrate
core         - Each GPU Core Speed 
mem          - Each GPU Memory 
voltage      - Each GPU Voltage
powertune    - Each GPU Powertune

Once notifications is set, the system will also notify you up to 3 times if your rig has been down for over an hour.

Common Mistakes

  • Why isn't ethos-auto-miner mining?
    • Make sure to change the rigname (f72a8a) attribute in the config to the rigname displayed in your ethos panel.
  • Why am I not recieving any notification emails?

Support

If you should find any bugs or need any enhancements please open a Github issue. I will try to get to it as soon as I can. Happy Mining Guys!

Donations

Your rig will donate one hour a day of mining time, roughly $0.15/day, towards improving the program and towards a free mobile app project under way for monintoring your Ethos rig. If you have any questions, feedback or suggestions please submit a Github issue.

Here's my wallet, Buy me a Beer 😊

BTC: 16kcdsWD2h7YAdv9YGMyP9KCpcNEHE9zFM

ETH: 0xF1fEf7f9E5bD3386F04ae0De1546a8f16690F0c4

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].