Coder Social home page Coder Social logo

amravyan / ethmon Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 4.0 74 KB

Python script for monitoring Claymore's Dual Ethereum miner

Python 100.00%
mining python python-3 python-script claymore mining-pools monitoring-scripts monitoring ethereum ethereum-blockchain

ethmon's Introduction

ethmon

Very simple python script for monitoring Claymore's Dual Ethereum miner running on Windows machine. Sure it's not the best solution to control a huge amount of rigs, but if you have a few and don't need complicated event analyzing and autorecover features - feel free to use it.
The script will notify you via email if:

  1. Average hashrate during 5 minutes is less than a configured limit
  2. GPU temperature is higher than a configured limit
  3. GPU fan speed is less than a configured limit (possibly fan is broken)
  4. Number of invalid shares increasing
  5. Number of active cards(GPUs) is less than a configured limit
  6. Miner was restarted
  7. System was rebooted
  8. Pool is unreachable

The script will:

  1. Start miner if there's no such process
  2. Restart miner if there's more then 1 miner running
  3. Restart miner if it's unreachable via API
  4. Restart miner if invalid shares increasing
  5. Restart miner if number of active cards (GPUs) is less than a configured limit
  6. Restart system if average hashrate during 5 mins is less than a limit two times in a row

Dependencies:

Python uptime package. Installation:
pip install uptime

Setup:

Just set all necessary parameters at config section & add miner to Windows startup

Screenshot

Alt text

All comments and additions are welcome.

ethmon's People

Contributors

amravyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ethmon's Issues

uptime module not found

Has the module for Uptime been removed?

Traceback (most recent call last):
File "C:\Users\miner\Desktop\test.py", line 8, in
import uptime
ModuleNotFoundError: No module named 'uptime'

Could you help resolve the error?

Hello, I have the error message

Checking if miner is running... Traceback (most recent call last): File "C:\claymore\ethmon.py", line 331, in <module> main() File "C:\claymore\ethmon.py", line 179, in main pids = get_pid(process_name) NameError: name 'process_name' is not defined

My settings are:

miner

miner_ip = '127.0.0.1'
miner_port = 3333
miner_password = 'password'
pools = ['eth-eu1.nanopool.org', 'eth-eu2.nanopool.org']
pool_port = 9999
miner_path = 'C:\claymore\EthDcrMiner64.exe'
epool = 'eth-eu1.nanopool.org:9999'
ewal = '0x8a5045a0159418340397.4_0001/[email protected]'
epsw = 'x'
dcoin = 'sia'
dpool = 'stratum+tcp://sia-eu1.nanopool.org:7777'
dwal = 'wallet/worker1/[email protected]'
dpsw = 'x'
ftime = '10'
mpsw = 'password'

Windows 10

May you add to readme.txt this.
After installing Python on Windows
python -m pip install --upgrade pip setuptools wheel
python -m pip install uptime

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.