Checks for internet connectivity and restarts router after a grace period to restore connectivity.
git clone https://github.com/alexanderglueck/internet-check.git
cd internet-check
composer install
npm install
Also make sure you have the chromium-browser installed.
Adjust the constants in src/InternetCheck.php
and src/restart.js
to change your credentials / settings.
Either set up a cronjob to run the init script every minute or manually call the script when your internet is down.
php check.php
If you discover a security vulnerability within this application, please send an e-mail to Alexander Glück at security@alexanderglueck.at. All security vulnerabilities will be promptly addressed.
Please do not open an issue describing the vulnerability.
Feel free to dive in! Open an issue or submit PRs.