Dokumentation vollständig auf Deutsch übersetzt und Fork-Hinweis ergänzt
All checks were successful
Build Maubot Plugin / build (push) Successful in 18s
Build Maubot Plugin / release (push) Has been skipped

This commit is contained in:
2026-04-15 23:21:54 +02:00
parent 9620326fec
commit 102a39030e

View File

@@ -1,11 +1,81 @@
# maubot-ntfy
This is a [maubot](https://maubot.xyz/) plugin to subscribe to [ntfy](https://ntfy.sh/) topics and send messages to a matrix room.
Ein [maubot](https://maubot.xyz/)-Plugin, um [ntfy](https://ntfy.sh/)-Topics zu abonnieren und deren Nachrichten in einen Matrix-Raum weiterzuleiten.
## Usage
## Funktionen
Install as a maubot plugin and configure an instance. Until maubot supports installing python dependencies, you should install the `emoji` python package for full functionality. Alternatively, `@ntfy:catgirl.cloud` is available as well.
- Abonnieren von ntfy-Topics direkt aus einem Matrix-Raum
- Automatische Weiterleitung eingehender ntfy-Nachrichten an abonnierte Räume
- Unterstützung von Titeln, Tags, Emojis, Anhängen, Klick-URLs und View-Actions
- Konfigurierbare Berechtigungen (Admins und Power-Level ≥ 50)
- Persistente Speicherung der Abonnements in einer Datenbank
- Automatisches Wiederverbinden bei Verbindungsabbrüchen
Use `!ntfy subscribe server/topic` (for example `!ntfy subscribe ntfy.sh/my_topic`) to subscribe the current room to the ntfy topic. Future messages will be sent to the room.
## Voraussetzungen
To unsubscribe, use `!ntfy unsubscribe server/topic`.
- Eine laufende [maubot](https://maubot.xyz/)-Instanz
- Python-Paket `emoji` (Version ≥ 2.0) für vollständige Emoji-Unterstützung (optional, aber empfohlen)
## Installation
1. Das Plugin als `.mbp`-Datei bauen oder herunterladen.
2. In der maubot-Verwaltungsoberfläche als Plugin hochladen.
3. Eine neue Instanz des Plugins erstellen und konfigurieren.
> **Hinweis:** Solange maubot das automatische Installieren von Python-Abhängigkeiten nicht unterstützt, muss das `emoji`-Paket manuell installiert werden (`pip install emoji`).
## Konfiguration
Die Konfiguration erfolgt über die maubot-Instanz-Einstellungen. Die Standardwerte befinden sich in der Datei `base-config.yaml`:
```yaml
# Befehlspräfix für alle Befehle dieses Bots (muss in Matrix mit ! vorangestellt werden)
command_prefix: ntfy
# Benutzer, die den Bot immer steuern dürfen
admins:
- "@admin:example.com"
```
| Einstellung | Beschreibung |
|------------------|------------------------------------------------------------------------------|
| `command_prefix` | Präfix für alle Bot-Befehle (Standard: `ntfy`, Aufruf in Matrix: `!ntfy`) |
| `admins` | Liste von Matrix-Benutzern, die den Bot unabhängig vom Power-Level steuern dürfen |
Benutzer, die nicht in der Admin-Liste stehen, benötigen ein Power-Level von mindestens **50** im jeweiligen Raum.
## Befehle
| Befehl | Alias | Beschreibung |
|------------------------------------|--------------------------------|----------------------------------------------------|
| `!ntfy subscribe server/topic` | `!ntfy sub server/topic` | Aktuellen Raum für ein ntfy-Topic abonnieren |
| `!ntfy unsubscribe server/topic` | `!ntfy unsub server/topic` | Abonnement eines ntfy-Topics für diesen Raum aufheben |
### Beispiele
```
!ntfy subscribe ntfy.sh/mein_topic
!ntfy unsub ntfy.sh/mein_topic
```
Das Topic-Format ist immer `server/topic`, z. B. `ntfy.sh/mein_topic` oder `mein-server.de/alerts`.
## Nachrichtenformat
Eingehende ntfy-Nachrichten werden als formatierte Matrix-Nachrichten weitergeleitet und enthalten:
- **Topic-Herkunft** (`server/topic`)
- **Titel** (falls vorhanden, optional mit Klick-URL verlinkt)
- **Nachrichtentext**
- **Emoji-Tags** (als Präfix vor Titel/Text)
- **Weitere Tags** (als Code-Block unter der Nachricht)
- **View-Actions** (als anklickbare Links)
- **Anhänge** (als Download-Link)
## Lizenz
Dieses Projekt ist unter der [AGPL-3.0-or-later](LICENSE) lizenziert.
---
> **Fork-Hinweis:** Dieses Projekt ist ein Fork des originalen [maubot-ntfy](https://github.com/catgirl-cloud/maubot-ntfy) von catgirl.cloud.