From 9fdbfd33a976c19ff5e693c9844f2cf8f3b13d69 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 7 May 2024 21:45:36 -0600 Subject: [PATCH] Add tags to ntfy --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6adfaf9..507456d 100644 --- a/index.js +++ b/index.js @@ -76,7 +76,8 @@ xmpp.on("stanza", (stanza) => { "topic": config.ntfy.topic, "message": body, "title": "New Alert", - "priority": config.ntfy.priority + "priority": config.ntfy.priority, + "tags": [`Station:${product_id.station}`, `WMO:${product_id.wmo}`, `PIL:${product_id.pil}`, `Channel:${channel}`], } if (stanza.getChild("x").attrs.twitter_media) { @@ -98,7 +99,7 @@ xmpp.on("stanza", (stanza) => { color: 0x00ff00, timestamp: product_id.timestamp, footer: { - text: `Station: ${product_id.station} WMO: ${product_id.wmo} PIL: ${product_id.pil}` + text: `Station: ${product_id.station} WMO: ${product_id.wmo} PIL: ${product_id.pil} Channel: ${channel}` } } if (stanza.getChild("x").attrs.twitter_media) {