add monitor tags to ntfy tags array for automation tools

adds uptime kuma monitor tags to the ntfy notification tags array
alongside status indicators like red_circle/green_circle. this lets
automation tools like Tasker access monitor tags directly.

- adds monitor tag names to tags array when they exist
- non-breaking change, existing tags are preserved
- no user config needed, works automatically
This commit is contained in:
epifeny 2026-01-18 21:58:55 +00:00
parent a86789be6c
commit 406b1ede80

View File

@ -57,6 +57,13 @@ class Ntfy extends NotificationProvider {
status = "Up";
}
}
// Add monitor tags to ntfy tags array for automation tools (e.g., Tasker)
if (monitorJSON && monitorJSON.tags && Array.isArray(monitorJSON.tags)) {
const monitorTagNames = monitorJSON.tags.map((tag) => tag.name);
tags = tags.concat(monitorTagNames);
}
let data = {
topic: notification.ntfytopic,
message: heartbeatJSON.msg,