grayfallstown / Chia-Plot-Status

GUI Tool for beginners and experts to Monitor and Analyse Chia Plotting log files, show health and progress of running plots and estimated time to completion. No setup, configuration or installation of python or whatever required. Just install and enjoy.
https://grayfallstown.github.io/Chia-Plot-Status/
MIT License
183 stars 27 forks source link
chia monitoring plots plotting

GitHub all releases GitHub GitHub release (latest by date including pre-releases) GitHub last commit Donate

Chia Plot Status Log

Chia Plot Status

GUI Tool for beginners and experts to Monitor and Analyse Chia Plotting log files, show health and progress of running plots and estimated time to completion. No setup, configuration or installation of python or whatever required. Just install and enjoy.

Screenshot Screenshot

Features

See Chia Plot Status in action:

On Upside Down Crypto (YouTube):

Watch the video

On Patro TV (YouTube):

Watch the video

How it works

Chia Plot Status observes the log folders you give it to monitor which can be local or connected via network. By this it supports monitoring multiple plotting rigs as you can access them on your desktop even if your plotting rigs are headless. It regulary checks for new Log files in those folders and analyses them.

On basis of finished plots it builds a local statistic (on your machine, no data is send anywhere or pulled from any cloud) and uses them to calculate ETA / time remaining and warning thresholds for the Health of your plotting processes.

Working with many distributed plotting rigs

Recommended way: Use sshfs (with sshfs-win for Windows) to securely mount the log dirs of your plotting rigs on your desktop via highly encrypted network connection, where it is your desktop that initiates the mount. This can be set up so that the desktop can only access the log dirs and only has read access. Even if you use remote plotting rigs that you access over the internet this is the most secure way and you most likely access your remote servers via ssh already.

Other Options: Mount the log folders of all rigs as network shares (via samba on linux) if all your plotting rigs are in the local network or connected via VPN. Another way would be to make a cronjob on your plotting rigs that uses scp or rsync in append mode to copy the log dir to your desktop where you run Chia Plot Status, but if you can manage to set this up you should set up sshfs instead. Last, least preferred option: collect them with cloud apps like Google Drive (Chia Plot Status does not talk to any cloud services for you, you have to install those apps and mount your log folders in them yourself if you want to use them).

Best Practice:

Security / Trustworthiness

See a reddit comment made by the Chia Plot Status Core Developer, summarized in the following:

There are multiple attack vectors to consider:

1. The possibility that the core developer (me) is or becomes malicious

There is a saying: Where is a money trail, there is a way to sue/prosecute someone.

Chia Plot Status has buttons to donate via paypal both in the application itself and on the website.

Should the core developer (me) turn malicious, people could easily sue the core developer (me) and by that get the necessary details as in full name, address and day of birth, IBAN/Bic, everything from paypal.

If the core developer (me) becomes malicious this would be basically a how to get imprisoned speedrun (any %)

Even if you think you would not sue the core developer as he (me) might sit in a different country (germany), someone will as the Chia Plot Status Github Repository has between 2k to 4k visits daily and currently 24k downloads.

This should be more than enough to deter the core developer (me) from doing anything malicious.

2. The core developer (me) merges a pull request (code changes made by someone else) which contains malicious code without noticing

As seen on https://github.com/grayfallstown/Chia-Plot-Status/graphs/contributors there is only one other person who contributed a pull request so far and that wasn't code but a documentation change.

The core developer (me) will check each pull request before merging as he (me) would have to run the code himself to check if the application works properly after merging that pull request and by that he (I) would get attacked by any malicious code that was contained in that pull request.

3. External Dependencies (as in libraries / code written by someone else) the application uses to do certain things (like to create the graphical user interface) become malicious.

Well, this is a tough one as even the core developer (me) has very little means to check external binaries for malicious code. The core developer (me) and every other developer using those libraries will get attacked by any malicious code in those libraries before they (we) distribute a new version of their (our) software containing that library to the users of their (our) softwares, as they (we) generally test their (our) applications before each release.

The core developer (me) takes the following precautions to mitigate that risk:

Installation / Download

GitHub all releases

Windows: Download latest version You will get a blue warning saying this was published by an unknown developer.

Linux: First install dotnet 5.0 SDK, then either the Chia Plot Status deb or rpm package depending on your linux distribution (deb for ubuntu)

For Mac you currently have to build it.

Getting Log Files from PowerShell

$Temp1="D:\PlotTemp"
$Temp2="D:\PlotTemp"
...

chia.exe plots create --tmp_dir "$TEMP1" --tmp2_dir "$TEMP2" [and so on] 2>&1 | % ToString | Tee-Object -FilePath "C:\Users\$USERNAME\.chia\mainnet\plotter\$([GUID]::NewGUID().ToString('D')).log"

The last part with 2>&1 | % ToString | Tee-Object writes the log to the PowerShell and to a file with a unique name for each plotting process.

You can download a full example script with Tee-Object as well.

Getting Log Files from madMAx43v3r/chia-plotter

On Windows without WSL:

Take the same command you are currently using and just add 2>&1 | % ToString | Tee-Object -FilePath "C:\Users\$env:UserName\.chia\mainnet\plotter\$([GUID]::NewGUID().ToString('D')).log" at the end and run it in PowerShell, not CMD. Note: there must be a whitespace between your command and this and there is nothing to be replaced in this line. Just leave it as it is.

On Windows with WSL:

# make sure you have got uuid installed (sudo apt install uuid -y)
# use 'chia keys show' to get this keys:
export POOLKEY="replace-me"; \
export FARMERKEY="replace-me"; \
export WINDOWS_USERNAME="replace-me" \
export THREADS="$(expr $(nproc) / 2)"; \
/home/mk/chia-plotter/build2/chia_plot \
--poolkey=$POOLKEY \
--farmerkey=$FARMERKEY \
--tmpdir2=replace-me \
--tmpdir=replace-me \
--finaldir=replace-me/ \
--count=-1 \
--threads=$THREADS \
--buckets=7 \
 2>&1  | tee /mnt/c/Users/$WINDOWS_USERNAME/.chia/mainnet/plotter/chia-plotter-$(uuid).log

Note: There is nothing to be replaced in the last line. Just leave it as it is.

On Linux directly:

# make sure you have got uuid installed (sudo apt install uuid -y)
# use 'chia keys show' to get this keys:
export POOLKEY="replace-me"; \
export FARMERKEY="replace-me"; \
export THREADS="$(expr $(nproc) / 2)"; \
/home/mk/chia-plotter/build2/chia_plot \
--poolkey=$POOLKEY \
--farmerkey=$FARMERKEY \
--tmpdir2=replace-me \
--tmpdir=replace-me \
--finaldir=replace-me/ \
--count=-1 \
--threads=$THREADS \
--buckets=7 \
 2>&1 | tee /home/$(whoami)/.chia/mainnet/plotter/chia-plotter-$(uuid).log;

Note: There is nothing to be replaced in the last line. Just leave it as it is.

Need the columns in a different order?

See https://github.com/grayfallstown/Chia-Plot-Status/issues/36#issuecomment-843351280

Troubleshooting

If you use Cloud Sync Services, rsync/scp cronjobs or tools like Syncthing to collect your log files you might run into an issue with the files not properly syncing. Sonething like The process cannot access the file because it is being used by another process.. See Issue #40 for how to fix that, or even better, use sshfs instead.

The same works if you use harry plotter as plotting manager.

If Chia Plot Status does no longer start, try renaming ChiaPlotStatu.config.json to ChiaPlotStatu.config.json.backup. The file is located in your home directory at C:\Users\<your username>\ChiaPlotStatu.config.json on windows, /home/<your username>/ChiaPlotStatu.config.json on linux and <your user profile directory>/ChiaPlotStatu.config.json on mac.

Custom tools / Home automation

You can export plot logs to json, yaml or csv both via the gui or the console for automation:

"C:\Program Files (x86)\ChiaPlotStatus\ChiaPlotStatus\ChiaPlotStatusCli.exe" --help
Copyright (C) 2021 grayfallstown

  -o, --outfile            Required. The file to write to

  -f, --format             Required. The format to use while writing the file. Valid values are json, yaml and csv

  -l, --log-folders        The folders where logs can be found, comma separated. Uses default folder when empty

  -s, --sort-property      The property you want the plotlogs sorted by

  -a, --sort-asc           Sort ascending

  --search                 Filter plotlogs by this search terms. You filter for your temp1 folder for example.

  --hide-finished          Hide finished plots

  --hide-possibly-dead     Hide possibly dead plots

  --hide-confirmed-dead    Hide confirmed dead plots

  --hide-healthy           Hide healthy plots

  --keep-updating          Keep updating the file every 10 seconds

  --help                   Display this help screen.

"C:\Program Files (x86)\ChiaPlotStatus\ChiaPlotStatus\ChiaPlotStatusCli.exe" -o test.json -f json
Sorting by Progress
File 'test.json' written

Note: Write your tools or home automation in a way that new fields/properties/columns added to the exported files do not crash it.

Open Source

MIT opensource licence, free to keep or change.

Build it yourself

This should work on x86_64bit, x86_32bit, ARM 64bit and ARM 32 bit Systems. If not, open an Issue to tell me whats wrong.

Download and install dotnet 5.0 SDK and git.

On the console, clone/download this repository:

git clone https://github.com/grayfallstown/Chia-Plot-Status.git

Build it:

cd Chia-Plot-Status

dotnet build --configuration .\ChiaPlotStatus.sln /p:Configuration=Release /p:Platform="Any CPU"

Chia-Plot-Status can now be started with

windows: .\ChiaPlotStatusGUI\bin\Release\net5.0\ChiaPlotStatus.exe

linux: ./ChiaPlotStatusGUI/bin/Release/net5.0/ChiaPlotStatus

macOS: dotnet ./ChiaPlotStatusGUI/bin/Release/net5.0/ChiaPlotStatus.dll (thanks @mahdi-ninja)

alternatively try dotnet run --build.

Donations

PayPal: https://www.paypal.com/donate?hosted_button_id=PDLLVF5XVMJPC

Bitcoin/BTC bc1qy2fvr0js9xunlcgndlz9m9yu2qrydtlnlh4fgm

Etherium/ETH 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Chia/XCH xch15p8swrrdt5ujv0dxy4hwjrvpjseyvuquwtfwnrjhxqt6ws9uf90qzq4axl

Tether/USDT 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Binance Coin/BNB bnb1pes46l2jkw8dd9tw6j7sc4r9muzv5kuepnal0r

Cardano/ADA addr1q86sat0hpuvg5mp85qwke5kk6rjf6yntvr7epaz8j3k2g784p6klwrcc3fkz0gqadnfdd58yn5fxkc8ajr6y09rv53uqzjzv2r

XRP r9Wrpa2JsHh74nKqmcjJduy9GXDgmX44ic

USD Coin/USDC 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Polkadot/DOT 16Mp3siK7qFJ9567R6ynPMNf3W9SYcumgUMXacMkH9UC7817

Uniswap/UNI 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Litecoin/LTC LdbWCtQu7L9J9sYeDcp3M1qTWyA6Acck28

Bitcoin Cash/BCH qrxfzf3dact3crqu8l8uvxdp639scekw9qn20akrdc

Chainlink/LINK 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Stellar/XLM GAIEQ6N7V77WLDYNFBESCGONNURKGCQZ2GS6THEENOWUSBVHQBBFL4XJ

VeChain/VET 0xBf8AC5799333a8B14A51228Be9E02629e034A039

Tron/TRX TKMnrH4P2L4PigJVNijZz9BQiSewrABosc

Dai/DAI 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Neo/NEO ANZiysMZZS3PgzKpqTs8jATRcrpujZTBsB

Tezos/XTZ tz1XhtmaVr6RnqbTGPmPvD1XgsK7kHt8rUuH

Cosmos/ATOM cosmos1mu89q07xv9m8furg06f7tsw3u32da553wh0uv2

NEM/XEM NDM7SU2CVAN6CNOEFRMPPOIZSXQVYHIQ3BVJGH7T

0x/ZRX 0x0e07b5A73F571a98bAf19Fc42EBDE15d6B1664f0

Monero/XMR 43RbqKt37UUgY62ow4N3ptTT263zK1sfC88szAhThihU6bQKeURF3TrYLDumSak5gkX8Bj2FNzeWiduoEcPjLppHHSoBQi5

Etherium Classic/ETC 0x9347727443e8808c14062A7Fb95625B0284F2F8d

Flax/XFX xfx1622u30na4n83rya7nxkn5rpm78f4988e7cscl47ypct7wgnd7wus747nmk

ChainGreen/CGN cgn1zsfna95ju03juzpfcgyrfg4ljj2tq4ydpsdfxaegxx5dd6k3rjlqjgu9rr

Special Thanks

For contributing to Chia Plot Status either by donating or otherwise.