From 3320c1b38d477ad0736a5db639f96b28f1be79a2 Mon Sep 17 00:00:00 2001 From: Taclane Date: Sun, 25 Oct 2026 16:30:20 -0400 Subject: [PATCH 1/2] The tone_pattern topic (Trunk Recorder Pro 0.2.10) --- tools/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/registry.py b/tools/registry.py index ab36b7d..ff87f1e 100755 --- a/tools/registry.py +++ b/tools/registry.py @@ -45,7 +45,7 @@ TIERS = {"official", "community"} # Only plugins in this GitHub organization can be official. OFFICIAL_OWNER = "TrunkRecorder" -TOPICS = {"call.start", "call.end", "call.concluded", "unit", "audio", "status"} +TOPICS = {"call.start", "call.end", "call.concluded", "unit", "audio", "status", "tone_pattern"} FORMATS = {"m4a"} # An entry's fields, in the order they're written. homepage is optional. From 2fe9ede1b03ffe772fdee3e30310faa71e3b2cc8 Mon Sep 17 00:00:00 2001 From: Taclane Date: Sun, 25 Oct 2026 16:35:38 -0400 Subject: [PATCH 2/2] Notifications 0.2.1 (official) --- README.md | 1 + index.json | 30 ++++++++++++++++++++++++++++++ plugins/notify.json | 30 ++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 plugins/notify.json diff --git a/README.md b/README.md index f955e45..869fb16 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ users get is what was reviewed. | [simplestream](https://github.com/TrunkRecorder/trunk-plugin-simplestream) | official | Streams the audio of calls as they're recorded, over UDP or TCP | | [Upload script](https://github.com/TrunkRecorder/trunk-plugin-upload-script) | official | Runs a script of yours on each recorded call, as Trunk Recorder's uploadScript does | | [MQTT](https://github.com/TrunkRecorder/trunk-plugin-mqtt) | official | Publishes calls, unit activity and system status to an MQTT broker, in the format of Trunk Recorder's MQTT Status plugin | +| [Notifications](https://github.com/TrunkRecorder/trunk-plugin-notify) | official | Sends a notification when it hears a signal or tone, an emergency, or a new talkgroup or radio: to Discord, Slack, ntfy, a webhook or a command | To write a plugin, start from the [plugin template](https://github.com/TrunkRecorder/trunk-plugin-template). diff --git a/index.json b/index.json index ad30853..6c04800 100644 --- a/index.json +++ b/index.json @@ -92,6 +92,36 @@ } } }, + { + "id": "notify", + "name": "Notifications", + "description": "Notifications: rules over what the recorder hears (signals, tones, emergencies, new talkgroups and radios), sent to webhooks (Discord, Slack, ntfy, JSON) and commands.", + "repository": "https://github.com/TrunkRecorder/trunk-plugin-notify", + "license": "GPL-3.0-or-later", + "tier": "official", + "version": "0.2.1", + "api": 1, + "tag": "v0.2.1", + "commit": "d28db17cf0e0c6f474f83a9bc92606979a1684e8", + "assets": { + "x86_64-unknown-linux-gnu": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-x86_64-unknown-linux-gnu.tar.gz", + "sha256": "56e835313755487082d1717ee24f68e6bff24f90915c2d220a173a9aa0c4c584" + }, + "aarch64-unknown-linux-gnu": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-aarch64-unknown-linux-gnu.tar.gz", + "sha256": "351569eba0fd832ebdf796657d031102bc130622820701e6ffa0cae5ff1c1a19" + }, + "universal-apple-darwin": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-universal-apple-darwin.tar.gz", + "sha256": "6ca8286bdc2a25b2f94f1eb638b72276d4437434f61327d80524f88d1d168bf6" + }, + "x86_64-pc-windows-msvc": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-x86_64-pc-windows-msvc.zip", + "sha256": "e8b5fb2bacb93d667a9e2a5c4d433c9bd0e77987dfb9efd6b19ca71b055eec09" + } + } + }, { "id": "openmhz", "name": "OpenMHz", diff --git a/plugins/notify.json b/plugins/notify.json new file mode 100644 index 0000000..e504ba0 --- /dev/null +++ b/plugins/notify.json @@ -0,0 +1,30 @@ +{ + "id": "notify", + "name": "Notifications", + "description": "Notifications: rules over what the recorder hears (signals, tones, emergencies, new talkgroups and radios), sent to webhooks (Discord, Slack, ntfy, JSON) and commands.", + "repository": "https://github.com/TrunkRecorder/trunk-plugin-notify", + "license": "GPL-3.0-or-later", + "tier": "official", + "version": "0.2.1", + "api": 1, + "tag": "v0.2.1", + "commit": "d28db17cf0e0c6f474f83a9bc92606979a1684e8", + "assets": { + "x86_64-unknown-linux-gnu": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-x86_64-unknown-linux-gnu.tar.gz", + "sha256": "56e835313755487082d1717ee24f68e6bff24f90915c2d220a173a9aa0c4c584" + }, + "aarch64-unknown-linux-gnu": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-aarch64-unknown-linux-gnu.tar.gz", + "sha256": "351569eba0fd832ebdf796657d031102bc130622820701e6ffa0cae5ff1c1a19" + }, + "universal-apple-darwin": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-universal-apple-darwin.tar.gz", + "sha256": "6ca8286bdc2a25b2f94f1eb638b72276d4437434f61327d80524f88d1d168bf6" + }, + "x86_64-pc-windows-msvc": { + "url": "https://github.com/TrunkRecorder/trunk-plugin-notify/releases/download/v0.2.1/notify-0.2.1-x86_64-pc-windows-msvc.zip", + "sha256": "e8b5fb2bacb93d667a9e2a5c4d433c9bd0e77987dfb9efd6b19ca71b055eec09" + } + } +}