mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Add EVENT_LEVEL comments to config file
This commit is contained in:
@@ -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
|
||||
#===============================================================================
|
||||
|
||||
@@ -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
|
||||
#-----------------------
|
||||
|
||||
Reference in New Issue
Block a user