From be89e6626114dcf9b6bfb6ddccc924286e938ed4 Mon Sep 17 00:00:00 2001 From: Markus Busche Date: Fri, 1 Aug 2025 14:23:52 +0200 Subject: [PATCH] Change Apprise sender name to 'TI-Status Bot by medisoftware' --- ti_status_checker.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ti_status_checker.py b/ti_status_checker.py index 92ca3e6..e19f216 100644 --- a/ti_status_checker.py +++ b/ti_status_checker.py @@ -239,6 +239,9 @@ def send_notification(message): # Erstelle die Nachricht title = "Neue TI-Status-Meldung" body = f"{md_message}\n\n[Zur Statusseite](https://fachportal.gematik.de/ti-status)\n_Gemeldet am {datetime.now().strftime('%d.%m.%Y %H:%M:%S')}_" + + # Setze den Absender-Namen + sender_name = "TI-Status Bot by medisoftware" if is_debug_mode(): print(f"📤 Sende Benachrichtigung an {len(urls)} Endpunkt(e)") @@ -251,7 +254,8 @@ def send_notification(message): result = apobj.notify( title=title, body=body, - body_format=apprise.NotifyFormat.MARKDOWN + body_format=apprise.NotifyFormat.MARKDOWN, + sender=sender_name ) if result: if is_debug_mode():