ajpierce / minerapi

RPC API to cgminer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minerapi

Gather and display statistics for one or more rigs and GPUs that run cgminer to mine cryptocurrencies.

Installation

Step 1: Enable RPC

Every instance of cgminer you wish to monitor must be running the RPC API. To enable it, append the following to cgminer's command line invocation (or the config file / shell script you run):

--api-listen --api-allow W:192.168.1.0/24 --api-mcast

In the above example, we allow connections from any IP address containing the first three octets (192.168.1.xxx). For more information on security and the --api-allow command, visit the API-README on the cgminer repository.

Step 2: Configure minerapi

Download this repository, and edit the minerstat file, configuring the RIGS variable to list the machines you are monitoring. Separate each machine with a newline, like so:

RIGS = """
    192.168.1.14
    192.168.1.15
"""

Usage

Simply invoke minerstat from the command line once you have completed the installation steps outlined above.

Donations

If you found this utility helpful, please consider donating to the author:

  • BTC: 1AxT6VUuVZrVHAiv6geAd4kgqsEYQGoJAm
  • LTC: Ld2negemWZur6BqJiwoRzWkKzSHfa1f6wg
  • GLD: E8ExQSG25PdDygjGrFWTUGjCfek1nBP7yw

Thank you!

About

RPC API to cgminer


Languages

Language:Python 100.0%