Add EVENT_LEVEL comments to config file
This commit is contained in:
@@ -1618,7 +1618,7 @@ def send_webhook (_json, _html):
|
|||||||
try:
|
try:
|
||||||
eventLevel = EVENT_LEVEL
|
eventLevel = EVENT_LEVEL
|
||||||
except NameError: # variable not defined, use a default
|
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
|
# use data type based on specified payload type
|
||||||
if webhookPayload == 'json':
|
if webhookPayload == 'json':
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ WEBHOOK_URL = 'http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa
|
|||||||
# e.g.: for discord use 'html'
|
# e.g.: for discord use 'html'
|
||||||
WEBHOOK_PAYLOAD = 'json'
|
WEBHOOK_PAYLOAD = 'json'
|
||||||
WEBHOOK_REQUEST_METHOD = 'GET' # POST, GET...
|
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
|
# Apprise settings
|
||||||
#-----------------------
|
#-----------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user