docs: add Starface Modulcreator guide and webhook test script

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-24 17:03:29 +02:00
co-authored by Claude Opus 4.6
parent 6eab41db92
commit 1e66646f52
2 changed files with 166 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#!/bin/bash
# Test-Script für Starface Busylight Webhook-Integration
# Simuliert Anruf-Events für alle konfigurierten Durchwahlen
BUSYLIGHT="http://100.95.224.14:8081"
echo "=== Busylight Starface Webhook Test ==="
echo ""
# API Info prüfen
echo "1. Busylight API erreichbar?"
curl -s "$BUSYLIGHT/" | head -3
echo ""
# Durchwahl zum Testen (anpassen!)
DW="${1:-222}"
echo "2. Test mit Durchwahl: $DW"
echo ""
echo " → Sende callstart..."
RESULT=$(curl -s "$BUSYLIGHT/$DW/callstart")
echo " ← $RESULT"
echo ""
echo " Warte 5 Sekunden (Türschild sollte jetzt ROT sein)..."
sleep 5
echo " → Sende callend..."
RESULT=$(curl -s "$BUSYLIGHT/$DW/callend")
echo " ← $RESULT"
echo ""
echo "3. Fertig! Türschild sollte jetzt zurück auf Zeiterfassungs-Status sein."
echo ""
echo "Verwendung: $0 [durchwahl]"
echo "Beispiel: $0 210 (Test mit Durchwahl 210)"