Scripts designed to help notify of important information from a MainWP Dashboard on macOS.
- MainWP Dashboard with REST API turned on
- PHP
- Terminal Notifier
- Copy
config-sample.jsontoconfig.jsonand enter your values from your site's REST API page. - Set up how you will run the desired scripts automatically
The following scripts can be run to check for data on your MainWP dashboard:
check-for-mainwp-updates.php: reports on available updates and notifies if there are anycheck-for-mainwp-health.php: reports on any site health statuses that are not "Good" and notifies if there are anycheck-for-mainwp-security.php: reports on any site security issues and notifies if there are any
More inevitably to come...
The ideal way to run these scripts is via launchd. Example plist files to be installed in ~/Library/LaunchAgents can be found in launchd-examples. Just copy the files and edit the path to the PHP script.