add NOTIFY_TITLE - Optional title for notifications, e.g. Pushover, #69

This commit is contained in:
Ralf Vogler 2023-02-23 23:34:27 +01:00
parent e73d3d47d7
commit 114631da4d
3 changed files with 4 additions and 1 deletions

View file

@ -101,7 +101,8 @@ import { cfg } from './config.js';
export const notify = (html) => {
if (!cfg.notify) return;
exec(`apprise ${cfg.notify} -i html -b '${html}'`, (error, stdout, stderr) => {
const title = cfg.notify_title ? `-t ${cfg.notify_title}` : '';
exec(`apprise ${cfg.notify} -i html ${title} -b '${html}'`, (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
if (error.message.includes('command not found')) {