Add tags to ntfy

This commit is contained in:
Christopher Cookman 2024-05-07 21:45:36 -06:00
parent 9859815f07
commit 9fdbfd33a9
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -76,7 +76,8 @@ xmpp.on("stanza", (stanza) => {
"topic": config.ntfy.topic, "topic": config.ntfy.topic,
"message": body, "message": body,
"title": "New Alert", "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) { if (stanza.getChild("x").attrs.twitter_media) {
@ -98,7 +99,7 @@ xmpp.on("stanza", (stanza) => {
color: 0x00ff00, color: 0x00ff00,
timestamp: product_id.timestamp, timestamp: product_id.timestamp,
footer: { 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) { if (stanza.getChild("x").attrs.twitter_media) {