PlotoFy Status Summary Reports
Added
- Status Summary Reports in PlotoFy
Setup Discord Alerts for periodical summary of jobs completed and in progress
To configure the behaviour of periodical summary reports in discord, we also use the PlotoAlertConfig.json stored in C:\Users\YourUserName.chia\mainnet\config.
- Edit PlotoAlertConfig.json
- Set WebhookURL (Your Discord Servers Webhook). You may use the same or a different WebhookURL than what PlotoSpawner Alerts uses. This allows you to separate channels in Discord for various alerts. I use this separate for each plotter I have:
- Set the intervall upon which you would like to receive the summary. This also affects the period PlotoFy uses to check for events. For example: If 1 is specified (1hr), PlotoFy will each hour lookup jobs that were copleted in the last hours, and all active jobs in progress and wrap this in a notification.
If there are no jobs completed within the period, PlotoFy will only send the notification for the jobs in progress. If there are no completed and no jobs in progress, PlotoFy tells you with a notification, that Ploto seems not running. - Set the Path to Ploto Module (where its stored right now)
- Make sure you copy/move the edited .json to the folder: C:\Users\YourUserName.chia\mainnet\config. If its not there, it wont work.
- Open a new PowerShell Session.
- Import-Module "C:\Users\me\desktop\Ploto\Ploto.psm1" (make sure you change the path to Ploto.psm1 to reflect your situation)
- Launch PlotoFy using the cmd below:
Start-PlotoFy
As PlotoFy launched a backgroundJob that continously calls "Request-PlotoFySummaryReport", for almost infinity, you may wont to stop that job at some point. To do this, you can use the following commands:
- Get-Job to get the current running PowerShell Jobs:
Get-Job
Id Name PSJobTypeName State HasMoreData Location Command
-- ---- ------------- ----- ----------- -------- -------
1 Job1 BackgroundJob Running True localhost ...
- Stop the Job, using Stop-Job
Stop-Job -Id 1
- And to clean up, we need to deleted the stopped job.
Get-Job | where-object {$_.State -eq "Stopped"} | Remove-Job