Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`