busylight_modular/docs/test-starface.sh
Christian Mueller 1e66646f52 docs: add Starface Modulcreator guide and webhook test script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 17:03:29 +02:00

37 lines
883 B
Bash

#!/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)"