Add a text option for webhooks and different repoting levels

This commit is contained in:
Antoine
2022-10-20 09:42:26 +01:00
parent c289e74e4a
commit 1cefbe0299
2 changed files with 42 additions and 2 deletions

View File

@@ -36,10 +36,11 @@ REPORT_DASHBOARD_URL = 'http://pi.alert/'
REPORT_WEBHOOK = False
WEBHOOK_URL = 'http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa'
# webhook payload data format for the "body > attachements > text" attribute in https://github.com/jokob-sk/Pi.Alert/blob/main/docs/webhook_json_sample.json
# supported values: 'json' or 'html'
# supported values: 'json' or 'html' or 'text'
# e.g.: for discord use 'html'
WEBHOOK_PAYLOAD = 'json'
WEBHOOK_REQUEST_METHOD = 'GET' # POST, GET...
EVENT_LEVEL = 5
# Apprise settings
#-----------------------