/mochimo-farm-manager-python

Mochimo mining farm manager in python

Primary LanguagePythonMIT LicenseMIT

GitHub license Follow @Ortis95

IMPORTANT: The Mochimo Farm Manager project have been ported to JAVA here. This repository will not be updated.

A command center for Mochimo miners

Mochimo Farm Manager aggregates statistics from your miner in a simple web interface

What is Mochimo ?

Mochimo is a quantum proof, scalable, ASIC-resistant POW cryptocurrency. You can download the Mochimo miner from the official repository.

What is Mochimo Farm Manager ?

The nature of Mochimo blockchain (1 CPU = 1 Vote) requires to setup several miner through virtualization/dockerization in order to fully use the processing power of a multi-core CPU. An alternative solution is to setup multiple low ressource host (usually rented through a cloud provider). Whatever solution you choose, the end result will be multiple independent miners which makes monitoring very tedious.

Mochimo Farm Manager aggregates all mining statistics in a simple web interface (both standard HTML and API) along with remote start/stop capabilities.

Download, Install & Configuration

This software is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by the Mochimo Foundation. All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.

Mochimo Farm Manager installation:

  1. Download the latest release here
  2. Install python3
    • For Ubuntu use sudo apt-get update, sudo apt-get install python3.6, sudo apt-get install python3-pip
  3. Install required module (usepip3 instead of pip in Ubuntu):
    1. pip install pycryptodomex
    2. pip install paramiko
  4. Create a farm configuration file based on the example example_mining_farm.json:
    1. id: unique ID of the miner
    2. host: ip and port for ssh connection. example: 192.168.1.2:22
    3. user: username to use for connection
    4. password or privateKeyPath: authentication can done by through password or private key
    5. startCommand: start command of the miner. It is recommended to use start.sh file (or similar syntax) to run your miner (update MINER_BIN_PATH before running start.sh). All output will be logged into miner.log
    6. stopCommand: stop command of the miner. If not specified, a kill command is send
    7. logCommand: command to retrieve miner's log.
  5. Optional: encrypt your configuration file using encryption_file.py command line tool python encryption_file.py -m e plain_text_mining_farm_config.json encrypted_mining_farm_config.json
  6. Run the miner_farm.py python miner_farm.py ./html mining_farm_config.json
  7. Access the dashboard http://localhost

Mochimo Farm Manager also provides a REST API:

TODO

  • Webservice API
  • Web interface
  • Dashboard
  • Start/Stop command
  • Configuration file encryption
  • Start/Stop task scheduling
  • Email notification

Donation

Like the project ? Consider making a donation :)

ETH & ERC-20: 0xaE247d13763395aD0B2BE574802B2E8B97074946

BTC: 18tJbEM2puwPBhTmbBkqKFzRdpwoq4Ja2a

BCH: 16b8T1LB3ViBUfePCMuRfZhUiZaV7tUxGn

LTC: Lgi89D1AmniNS8cxyQmXJhKm9SCXt8fQWC