Skip to content

Checks from time to time for water supply failure and sends an email to notify the changes.

License

Notifications You must be signed in to change notification settings

hugomcm/water-failure

Repository files navigation

Water Failure

Checks from time to time for water supply failure and sends an email to notify the changes.

The application will search for a certain keyword and notifies only new messages with that keyword.

Note: by default the search will be on http://www.simar-louresodivelas.pt/ index page and will search for a certain passed keyword.

Install

$ git clone https://github.com/hugomcm/water-failure.git
$ cd water-failure
$ npm i

Config (see .env.default file)

$ export WF_URI=http://www.simar-louresodivelas.pt/
$ export WF_ELEM_SELECTOR=".tab-content #home"
$ export WF_CHECK_PERIOD_IN_SECS=1800
$ export WF_SEARCH_KEYWORD=odivelas
$ export [email protected]
$ export [email protected],[email protected]
$ export WF_SENDGRID_API_KEY=SG.????

Run

$ npm start

About

Checks from time to time for water supply failure and sends an email to notify the changes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published