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.
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.
- Clone the repository
git clone https://github.com/cciollaro/hotplots.git
cd hotplots
- Create a virtual environment and activate it.
python3 -m venv venv
. ./venv/bin/activate
- 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
- Copy the example config file
cp config-example.yaml config.yaml
- Open up
config.yamlin your editor and configure it to your preferences.
To run the tests, first activate the virtual environment, then run the following command:
pytest
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.
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