local-regexp-notifier is a simple library which can be hosted in docker to notify you via telegram when something appears/disappears from the page (local in your network or world wide web).
- Clone the repository
git clone git@github.com:armata007/local-regexp-notifier.git
- cd into the repository
cd local-regexp-notifier
- Copy
.env.example
file to.env
cp .env.example .env
- Change values in
.env
TELEGRAM_TOKEN
- Create a bot at @botfather in Telegram with/newbot
command and put generated token hereTELEGRAM_USER_ID
- This is your user id in telegramCRON_TIME
- crontab string (how often you want the checks to run)TIMEZONE
- set to your timezoneALL_GOOD_CRON_TIME
- crontab string which sends telegram messageAll good - local notifier is working in background
. If you want it disabled set it to empty string, for exampleALL_GOOD_CRON_TIME=""
.
- Copy
config.ts.example
toconfig.ts
cp config.ts.example config.ts
- Change values in
config.ts
. Config is an array of items. Each item consists of:url
- url which should be checkedregexps
- array of items to check against page. Each item consists of:regexp
- regexp which will trigger Telegram message. If regexp find something it is considered an error.message
- user friendly message which will be sent to Telegram
To start this run:
docker-compose up --build