Misty-Rhetorik-Coach/livemodus/misty_stop_av.py
2026-05-06 12:46:05 +00:00

26 lines
637 B
Python

import requests
import json
from config import MISTY_IP
def post(path, payload=None):
url = f"http://{MISTY_IP}{path}"
r = requests.post(
url,
data=json.dumps(payload or {}),
headers={"Content-Type": "application/json"},
timeout=5
)
print(f"{path} -> {r.status_code}")
try:
print(r.json())
except Exception:
print(r.text)
print(f"🛑 Stoppe AV Streaming auf {MISTY_IP}...")
post("/api/avstreaming/stop")
print("\n🔌 Deaktiviere AV Streaming Service...")
post("/api/services/avstreaming/disable")
print("\n✅ Misty AV-Streaming vollständig beendet.")