Hey all, I thought I’d share a novel way to move completed plots to your network drives. I know there are scripts for this but I gave myself the challenge of learning a new tool - Power Automate Desktop! If you’ve used Microsoft Flow (or any “if this then that” type of cloud connector service) then this will be quite natural for you.
The benefits of this flow are as follows:
- The plotter doesn’t have to wait for the network copy operation. It writes to a local destination folder that this flow is watching and then moves on to start the next plot.
- The files are moved ONE AT A TIME to the network destination drives. If you’ve ever watched multiple plotter instances try to move a file across the network at the same time, you know this pain. This flow will move the finished files in serial instead of parallel - this gets plots to your farmer faster. (e.g. Instead of taking 30 minutes to move 2 plots simultaneously, it now takes 15 min to move the first one and start farming it immediately, then 15 min to move the second one.)
- The flow will upload the plot to the drive with the most free space.
This flow assumes you have a target shared network directory that contains a list of subdirectories. Each of these subdirectories should be mapped to your physical storage drives. Here’s my “StoragePool” folder on the server:
Notice that I name each folder with the serial number of the attached drive - this makes it easy to find the physical drive later if needed. Also note that all my drives are full except for the last two at the bottom. Ideally, we’d like our flow to be smart about where it moves our plots. It should always move a new plot to the drive with the most space free. This way the plots are balanced over all drives.
Tip for getting those cool size columns in Windows Explorer
Right-click the column headers in Windows Explorer, choose “More…” and add the Size, Space Free and Space Used columns.
It should also rename the extension of the plot file before moving it, then rename it back to the original name once it has finished moving. This way we avoid any errors in the Chia UI about bad plot files.
So here’s my solution! Unfortunately there isn’t a simple way to share these Flows yet since it is still in “Preview” but it shouldn’t take much time to recreate from this screenshot. Have some fun and learn something new - feel free to ask questions about why I did something a certain way or make suggestions if you have a better way to accomplish the same task!
Download Power Automate Desktop from here: Power Automate Desktop | Microsoft Power Automate