feat: install.sh schreibt ALLE Einstellungen in config.yaml; Button-Doku korrigiert (Desktop ~5-7 chars, keine Underscores, online statt away); adapter+init auf Produktionsstand
This commit is contained in:
@@ -19,7 +19,7 @@ sudo apt update && sudo apt install -y curl git python3 bash
|
||||
|
||||
```bash
|
||||
cd /tmp
|
||||
git clone https://gitea.thomander.de/andreas/Hermes_rocket.chat_Plugin.git
|
||||
git clone https://gitea.myowntools.org/andreas/Hermes_rocket.chat_Plugin.git
|
||||
cd Hermes_rocket.chat_Plugin
|
||||
```
|
||||
|
||||
@@ -41,9 +41,10 @@ Das Script führt dich Schritt für Schritt durch:
|
||||
- 🔵 Kopiere alle Dateien
|
||||
- 🔵 Frage deine Rocket.Chat-Daten ab
|
||||
- 🔵 Teste die Verbindung
|
||||
- 🔵 Schreibe Konfiguration in `~/.hermes/.env`
|
||||
- 🔵 Schreibe ALLE Einstellungen in `~/.hermes/config.yaml`
|
||||
- 🔵 Ergänzt `.env` für API-Keys
|
||||
|
||||
Am Ende ist das Plugin einsatzbereit — einfach `hermes gateway start`.
|
||||
Am Ende ist das Plugin einsatzbereit — einfach `hermes gateway restart`.
|
||||
|
||||
---
|
||||
|
||||
@@ -61,30 +62,34 @@ cp __init__.py ~/.hermes/hermes-agent/plugins/platforms/rocketchat/
|
||||
cp adapter.py ~/.hermes/hermes-agent/plugins/platforms/rocketchat/
|
||||
```
|
||||
|
||||
### Konfiguration über `config.yaml` (empfohlen)
|
||||
|
||||
```yaml
|
||||
plugins:
|
||||
enabled:
|
||||
- rocketchat-platform
|
||||
|
||||
gateway:
|
||||
platforms:
|
||||
rocketchat:
|
||||
enabled: true
|
||||
extra:
|
||||
base_url: "https://rocketchat.example.com"
|
||||
home_channel:
|
||||
platform: rocketchat
|
||||
chat_id: "J3jvMyrKTMzKvKHSh"
|
||||
name: "ki-assistent"
|
||||
|
||||
toolsets:
|
||||
- rocketchat
|
||||
```
|
||||
|
||||
### Konfiguration über Umgebungsvariablen
|
||||
|
||||
```bash
|
||||
export ROCKETCHAT_BASE_URL="https://rocketchat.example.com"
|
||||
export ROCKETCHAT_USER="bernd"
|
||||
export ROCKETCHAT_PASSWORD="dein-passwort"
|
||||
export ROCKETCHAT_ROOM_ID="J3jvMyrKTMzKvKHSh" # optional
|
||||
export ROCKETCHAT_ALLOWED_USERS="andreas,max" # optional
|
||||
export ROCKETCHAT_ALLOW_ALL_USERS="false" # default
|
||||
```
|
||||
|
||||
### Konfiguration über `config.yaml`
|
||||
|
||||
```yaml
|
||||
plugins:
|
||||
platforms:
|
||||
rocketchat:
|
||||
enabled: true
|
||||
base_url: "https://rocketchat.example.com"
|
||||
user: "bernd"
|
||||
password: "dein-passwort"
|
||||
room_id: "J3jvMyrKTMzKvKHSh"
|
||||
allowed_users: ["andreas", "max"]
|
||||
allow_all_users: false
|
||||
```
|
||||
|
||||
---
|
||||
@@ -103,11 +108,35 @@ plugins:
|
||||
|
||||
---
|
||||
|
||||
## Button-Labels — Wichtige Regeln
|
||||
|
||||
Rocket.Chat verhält sich je nach Plattform unterschiedlich:
|
||||
|
||||
| Plattform | Verhalten |
|
||||
|-----------|-----------|
|
||||
| **Desktop-App** | Schneidet bei **~5–7 Zeichen** ab (`1234567…`) |
|
||||
| **Mobile App** | Vollständiger Text sichtbar |
|
||||
|
||||
**Kritische Regeln:**
|
||||
- ❌ **NIEMALS Underscores (`_`) in Button-Texten** — zerstört das Button-Rendering komplett (nur grauer Container ohne Buttons)
|
||||
- ✅ **Leerzeichen sind erlaubt** — `1. Links`, `2. Rechts`
|
||||
- ✅ **Emojis helfen** — `✅Ja`, `❌Nein`
|
||||
- ✅ **Text + Nummer an den Anfang** — `1. Links`, `2. Rechts`
|
||||
|
||||
**Empfohlenes Pattern:** Lange Optionen im Text nummeriert, Buttons mit Kurzreferenz:
|
||||
```
|
||||
Text: "1. Links um den Code kopieren\n2. Rechts um den Code fliegen"
|
||||
Buttons: ["1. Links", "2. Rechts"]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Was ist im Paket?
|
||||
|
||||
```
|
||||
Hermes_rocket.chat_Plugin/
|
||||
├── install.sh ← Interaktives Setup für neue Benutzer
|
||||
├── install.sh ← Interaktives Setup (schreibt config.yaml)
|
||||
├── _merge_config.py ← Python-Script für config.yaml-Management
|
||||
├── README.md ← Diese Datei
|
||||
├── COMMUNITY_POST.md ← Fertige Vorlage für Foren/Reddit
|
||||
├── plugin.yaml ← Plugin-Metadaten
|
||||
@@ -122,7 +151,7 @@ Hermes_rocket.chat_Plugin/
|
||||
|
||||
- **Hermes Agent Docs**: https://hermes-agent.nousresearch.com/
|
||||
- **Rocket.Chat**: https://www.rocket.chat/
|
||||
- **Dieses Repo**: https://gitea.thomander.de/andreas/Hermes_rocket.chat_Plugin
|
||||
- **Dieses Repo**: https://gitea.myowntools.org/andreas/Hermes_rocket.chat_Plugin
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user