Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nkalupahana/updetector
A cron script that detects when a URL goes online, and texts you when it does
https://github.com/nkalupahana/updetector
Last synced: 5 days ago
JSON representation
A cron script that detects when a URL goes online, and texts you when it does
- Host: GitHub
- URL: https://github.com/nkalupahana/updetector
- Owner: nkalupahana
- License: gpl-3.0
- Created: 2020-05-03T22:11:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T22:16:13.000Z (almost 3 years ago)
- Last Synced: 2023-03-03T23:20:50.188Z (over 1 year ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UpDetector
Are you waiting for a URL to come online? Well, instead of just refereshing forever, this script can be installed in `cron` to text you when the URL comes up!
## Requirements
* AWS IAM account with SNS write policy
* `node` (tested on > v8), `npm`, `cron`
* `curl`## Setup
* `npm install` to get necessary packages
* Create `.env` file with all the necessary data (based on `sample.env` file)
* Install the script into crontab with a line like this (checks every 5 minutes):`*/5 * * * * /absolute/path/to/node /absolute/path/to/check_website.js 2>&1 | tee -a /tmp/check_website.log`