This script periodically checks the availability of an API endpoint and sends an SMS notification if the endpoint goes down or comes back online.
- Checks the availability of a specified API endpoint.
- Sends SMS notifications using Twilio when the endpoint status changes.
- Uses environment variables for configuration (stored in
.env).
- Python 3.11
- Twilio account (for sending SMS notifications)
python-dotenvpackage (for loading environment variables)
- Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo - Run the project
nix-shell --run "python app.py"