add NOTIFY_TITLE - Optional title for notifications, e.g. Pushover, #69
This commit is contained in:
parent
e73d3d47d7
commit
114631da4d
3 changed files with 4 additions and 1 deletions
3
util.js
3
util.js
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue