Add EVENT_LEVEL comments to config file

This commit is contained in:
Antoine
2022-10-20 09:57:06 +01:00
parent 1cefbe0299
commit 059017e71a
2 changed files with 4 additions and 3 deletions

View File

@@ -1618,7 +1618,7 @@ def send_webhook (_json, _html):
try:
eventLevel = EVENT_LEVEL
except NameError: # variable not defined, use a default
eventLevel = 4 # report on everythin
eventLevel = 4 # report on everything
# use data type based on specified payload type
if webhookPayload == 'json':
@@ -1855,7 +1855,7 @@ def to_text(_json, eventLevel):
payloadData += event[8] + " on " + event[1] + " " + event[3] + " at " + event[2] + "\n"
return payloadData
#===============================================================================
# BEGIN
#===============================================================================

View File

@@ -40,7 +40,8 @@ WEBHOOK_URL = 'http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa
# e.g.: for discord use 'html'
WEBHOOK_PAYLOAD = 'json'
WEBHOOK_REQUEST_METHOD = 'GET' # POST, GET...
EVENT_LEVEL = 5
# set event level to 0 for no message, 1 for Internet changes only, 2 for new devices and 1, 3 for down devices and 2 and 4 for events and 3. i.e. everything
EVENT_LEVEL = 4
# Apprise settings
#-----------------------