Filters notifications so that each one is only sent once until it is reactivated. Designed for use with Domoticz.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Mark van Renswoude 2c21a13e03 Fixed retry and expire required for Pushover priority 2 2 years ago
.vscode First version of backend 2 years ago
frontend Implemented reminders 2 years ago
src Fixed retry and expire required for Pushover priority 2 2 years ago
.gitignore First version of backend 2 years ago
README.md Updated readme 2 years ago
config.default.js Implemented reminders 2 years ago
ecosystem.config.js Added readme and PM2 configuration 2 years ago
index.js Added request logging 2 years ago
nodemon.json First version of backend 2 years ago
package-lock.json Refactored backend to classes and IoC container 2 years ago
package.json Refactored backend to classes and IoC container 2 years ago

README.md

NotificationLatch

Filters notifications so that each one is only sent once until it is reactivated. Designed for use with Domoticz. At the time of writing only Pushover is supported as a target transport.

Installing

Install Node.js, at least the current LTS version.

Install the dependencies and build the frontend:

npm install
cd frontend
npm install
npm run build
cd ..

Install PM2 and run the backend service:

sudo npm install pm2 -g
pm2 startup
pm2 start ./ecosystem.config.js
pm2 save

Configuring Domoticz

Go to Setup - Settings - Notifications. Enable Custom HTTP/Action and fill in the following information:

Field Value
URL/Action http://localhost:3369/api/notification
POST Data: subject=#SUBJECT&message=#MESSAGE&priority=#PRIORITY
POST Content-Type: application/x-www-form-urlencoded
POST Headers: Authorization: Bearer <authToken from config.js>