From e0bec8a9d4c2619bde4f4249f603d62c40c8ca58 Mon Sep 17 00:00:00 2001 From: Fabian Sasse Date: Mon, 14 Nov 2022 13:39:46 +0100 Subject: [PATCH] Added use selfhosted ntfy --- back/pialert.py | 2 +- config/pialert.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/pialert.py b/back/pialert.py index df408645..1c927b6c 100644 --- a/back/pialert.py +++ b/back/pialert.py @@ -1488,7 +1488,7 @@ def email_reporting (): closeDB() #------------------------------------------------------------------------------- def send_ntfy (_Text): - requests.post("https://ntfy.sh/{}".format(NTFY_TOPIC), + requests.post("{}/{}".format( NTFY_HOST,NTFY_TOPIC), data=_Text, headers={ "Title": "Pi.Alert Notification", diff --git a/config/pialert.conf b/config/pialert.conf index c864bdda..ae253f36 100644 --- a/config/pialert.conf +++ b/config/pialert.conf @@ -54,6 +54,7 @@ APPRISE_URL = 'mailto://smtp-relay.sendinblue.com:587?from=user@gmai # NTFY (https://ntfy.sh/) settings # ---------------------- REPORT_NTFY = False +NTFY_HOST = 'https://ntfy.sh' NTFY_TOPIC = 'replace_my_secure_topicname_91h889f28' # PUSHSAFER (https://www.pushsafer.com/) settings @@ -98,4 +99,3 @@ SCAN_SUBNETS = '--localnet' # Maintenance Tasks Cron # ---------------------- DAYS_TO_KEEP_EVENTS = 90 -