Nyzo Manager aggregates statistics from your miners into a simple web interface
Nyzo manager aggregates all mining statistics into a simple web interface (both standard HTML and API) along with remote reload/stop/reboot capabilities. Original code written by Ortis, changes have been made to repurpose it for Nyzo verifiers.
Nyzo Manager installation:
- Clone repository
- Install python3
- For Ubuntu use
sudo apt-get update
,sudo apt-get install python3.6
,sudo apt-get install python3-pip
- For Ubuntu use
- Install required module (use
pip3
instead ofpip
in Ubuntu):pip install pycryptodomex
pip install paramiko
- Create a farm configuration file based on the example
example_mining_farm.json
:id
: unique ID of the minerhost
: ip and port for ssh connection. example:192.168.1.2:22
user
: username to use for connectionpassword
orprivateKeyPath
: authentication can done by through password or private keystartCommand
: start command of the miner. It is recommended to use start.sh file (or similar syntax) to run your miner (updateMINER_BIN_PATH
before running start.sh). All output will be logged into miner.logstopCommand
: stop command of the miner. If not specified, akill
command is sendlogCommand
: command to retrieve miner's log.
- 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
- Run the miner_farm.py
python mining_farm.py ./html example_mining_farm.json
- Access the dashboard http://localhost
Reload command = sudo supervisorctl reload
Stop command = sudo supervisorctl stop all
Reboot command = sudo reboot
- http://localhost/status : farm statistics
- http://localhost/miner?id=minerId : miner statistics
- http://localhost/command?id=minerId&cmd=commandToExecute : execute remote command. At the moment,
cmd=start
,cmd=stop
andcmd=reboot
are supported