Skip to content

Monitor for Verium miners. Others possible if they have an api

License

Notifications You must be signed in to change notification settings

derricke/MinerMonitor

Repository files navigation

MinerMonitor v1.1

This is a very basic monitor for your miners. (see AUTHORS for a list of contributors)

Table of contents

Dependencies

  • Tested on Raspberry Pi Stretch Lite. If you need to setup the Verium wallet on Rasbian Stretch
sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove libssl-dev
sudo nano /etc/apt/sources.list
edit the line below change stretch to jessie
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
ctrl x then Y to save
sudo apt-get update
sudo apt-get install libssl-dev
sudo apt-mark hold libssl-dev
sudo nano /etc/apt/sources.list
edit the line below change jessie to stretch
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
ctrl x then Y to save

wget https://raw.githubusercontent.com/DJoeDt/verium/master/install_Verium_Wallet.sh
chmod +x install_Verium_Wallet.sh
./install_Verium_Wallet.sh
Verium Wallet install script credit to https://vrm.mining-pool.ovh/
  • PHP enabled web server
  • fsock enabled for PHP
  • You can run a built in PHP server from your PC instead of a full server

Docker

Edit the config.ini and minerHosts files

# config.ini
walletuser = YourSoloMiningName
walletpassword = YourSoloMiningPassword
walletaddress = 127.0.0.1

# minerHosts
1.2.3.4
1.2.3.5
1.2.3.6

Build the image

docker build -t minermonitor .

Run the container

docker run -d --net=host --name minermonitor minermonitor

Download

Usage instructions

On miner machines:

  • Run cpuminer with the command line option: --api-bind 0.0.0.0:4048
  • Open firewall incoming port tcp:4048 (might not be needed)
  • For Odroids it is suggested to run Fireworm's latest version for correct CPU frequency and Temperature reporting
  • For Odroids soloing or make adjustments for the stratum pool
./cpuminer -o walletIP:33987 -O walletuser:walletpassword -t 2 -1 6 --cpu-affinity-stride 1 --cpu-affinity-default-index 6 --cpu-affinity-oneway-index 0 --api-bind 0.0.0.0:4048

Install Web Server

sudo apt-get install -y lighttpd php7.0-cgi
sudo lighty-enable-mod fastcgi
sudo lighty-enable-mod fastcgi-php
sudo nano /etc/lighttpd/lighttpd.conf

change = "/var/www/html" to = "/home/pi/MinerMonitor" or to where ever you cloned the repository to above.

sudo service lighttpd force-reload

On Web Server Machine

  • Download or clone repo
  • Modify minerHosts file with a list of your miners to monitor. (IP address or hostname)
  • Modify minerHosts path in config.ini
    • By default it will be in the same folder, but you can place it anywhere as long as you correctly set the path
  • Modify config.ini for solo = TRUE (Default) or solo = FALSE for pool mining
  • Modify config.ini for wallet user, password and address. (Solo mining only)
  • Open firewall outgoing port tcp:4048 (not needed on the Pi)

Finish

  • Point your browser to your webserver

TODOS

  • Add additional data for pool mining
  • Add SQL Support for managing miners

Donations

  • VRM Address: VNkzLTz9CpedmmFirXzAJriQmBWFFuZSpk
  • VRC Address: VZLvKjHLqHWbdKPZk5st1t22oPXzfNW5z1

Credits

MinerMonitor is based on Birty's original version.

wienerdogracing

  • Docker Support added
  • wallet integration for solo mining, better odroid support and added reporting.

License

GPLv3. See LICENSE for details.

About

Monitor for Verium miners. Others possible if they have an api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published