Skip to content

cciollaro/hotplots

Repository files navigation

Hotplots - Chia Plots Archiving Program

Python CI codecov

Hotplots is an extensible, flexible, and well-tested chia plot archiving program. Whether moving plots to locally attached drives, or to your harvester machine, hotplots will choose which plotfile to move, where to move it to, and whether or not to replace an existing

Hotplots can be used to fill up all of your existing drives, and then if configured to do so, it can start replacing plots, for example replacing non-portable (pool) plots with newer portable plots. It can also replace based on the k-value of your plots, should there ever be a time when you want to or need to upgrade to k=33.

Overview

Hotplots moves your plots from a local source disk to an eligible target disk. targets are either local (attached to the same machine that hotplots is running on) or remote (accesible through ssh from the machine hotplots is running on). You can have many source disks, and each target (local, and all your remotes) can have many disks.

Hotplots waits for completed plot files to appear in a source directory, and then it moves the plot to an eligible target disk.

Installation

  1. Clone the repository
git clone https://github.com/cciollaro/hotplots.git
cd hotplots
  1. Create a virtual environment and activate it.
python3 -m venv venv
. ./venv/bin/activate
  1. Install the project in editable mode.
pip install -e .[dev]

Note: On Debian-based systems, you may need to install some system-level dependencies first:

sudo apt-get update
sudo apt-get install libpython3-dev build-essential -y
  1. Copy the example config file
cp config-example.yaml config.yaml
  1. Open up config.yaml in your editor and configure it to your preferences.

Testing

To run the tests, first activate the virtual environment, then run the following command:

pytest

Running in the background

You can use tmux (or screen if that's your preference, although I don't cover that here) to run hotplots in the background. The way I do this is via tmux new -s hotplots and then run hotplots from inside the virtual terminal. You can detach with Ctrl+b d. You can view active tmux sessions with tmux ls and lastly you can re-attach with tmux a -t hotplots.

Viewing active file transfers

The recommended method for viewing active is the progress command: https://github.com/Xfennec/progress.

This works both on the source (plotting) machine and the destination (harvesting) machine.

progress -w

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages