A script I made for monitoring my own website. If the response is anything but 200 then an email will be sent to me. The intention was to run this script periodically on a Raspberry PI.
- Note: uses gmail for smtp *
- Setup a extraneous gmail account to use for sending message.
- Enable "Less Secure Apps" for your gmail account: link
- Fill in the params in "_config.yaml" and rename it to "config.yaml".
- Run the script (if you want to have it run periodically, you'll have to do that yourself).