Change Apprise sender name to 'TI-Status Bot by medisoftware'

This commit is contained in:
2025-08-01 14:23:52 +02:00
parent b5e767a265
commit be89e66261

View File

@ -239,6 +239,9 @@ def send_notification(message):
# Erstelle die Nachricht # Erstelle die Nachricht
title = "Neue TI-Status-Meldung" 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')}_" 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(): if is_debug_mode():
print(f"📤 Sende Benachrichtigung an {len(urls)} Endpunkt(e)") print(f"📤 Sende Benachrichtigung an {len(urls)} Endpunkt(e)")
@ -251,7 +254,8 @@ def send_notification(message):
result = apobj.notify( result = apobj.notify(
title=title, title=title,
body=body, body=body,
body_format=apprise.NotifyFormat.MARKDOWN body_format=apprise.NotifyFormat.MARKDOWN,
sender=sender_name
) )
if result: if result:
if is_debug_mode(): if is_debug_mode():