https://github.com/fmstrat/page-check
Watches a web page and sends an email when a string is detected (or not).
https://github.com/fmstrat/page-check
Last synced: 11 months ago
JSON representation
Watches a web page and sends an email when a string is detected (or not).
- Host: GitHub
- URL: https://github.com/fmstrat/page-check
- Owner: Fmstrat
- Created: 2018-05-31T14:59:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T20:35:04.000Z (over 4 years ago)
- Last Synced: 2025-07-03T13:05:36.851Z (12 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# page-check
Watches a web page and sends a Pushover notification when a string is detected (or not).
***Please see the `python` branch for the original python version.***
## Usage
Page Check will stop checking a page once an alert has fired.
```yml
page-check:
image: nowsci/page-check:latest
container_name: page-check
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
# CHECKS is an array of page checks
# "url" - The URL to check
# "string" - The string to check for
# "reverse" - To check if the string exists or does not
CHECKS: '[
{
"url": "https://www.mysite.com",
"string": "Alert when this string exists",
"reverse": false
},
{
"url": "https://www.anothersite.com",
"string": "Alert when this string does not exist",
"reverse": true
}
]'
INTERVALMIN: 60 # Interval in minutes between checks
# Either Pushover or SMTP alerts can be used
PUSHOVERAPI: '' # Optional Pushover API key
PUSHOVERUSER: '' # Optional Pushover API user
restart: "always"
```