mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Clean up
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# GENERAL settings
|
||||
# ----------------------
|
||||
|
||||
PIALERT_PATH = '/home/pi/pialert'
|
||||
DB_PATH = PIALERT_PATH + '/db/pialert.db'
|
||||
LOG_PATH = PIALERT_PATH + '/log'
|
||||
@@ -15,9 +18,11 @@ PRINT_LOG = False
|
||||
TIMEZONE = 'Europe/Berlin'
|
||||
PIALERT_WEB_PROTECTION = False
|
||||
PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'
|
||||
# Specifies which events trigger notofications. Remove the event type(s) you don't want to get notified on (overrides device-specific settings in the UI).
|
||||
INCLUDED_SECTIONS = ['internet', 'new_devices', 'down_devices', 'events']
|
||||
SCAN_CYCLE_MINUTES = 5 # delay between scans
|
||||
|
||||
INCLUDED_SECTIONS = ['internet', 'new_devices', 'down_devices', 'events'] # Specifies which events trigger notifications.
|
||||
# Remove the event type(s) you don't want to get notified on
|
||||
# Overrides device-specific settings in the UI.
|
||||
SCAN_CYCLE_MINUTES = 5 # delay between scans
|
||||
|
||||
# EMAIL settings
|
||||
# ----------------------
|
||||
@@ -38,13 +43,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' or 'text'
|
||||
# e.g.: for discord use 'html'
|
||||
WEBHOOK_PAYLOAD = 'json'
|
||||
WEBHOOK_REQUEST_METHOD = 'GET' # POST, GET...
|
||||
# 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
|
||||
WEBHOOK_PAYLOAD = 'json' # 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', 'html' or 'text'
|
||||
# e.g.: for discord use 'html'
|
||||
WEBHOOK_REQUEST_METHOD = 'GET' # POST, GET...
|
||||
|
||||
# Apprise settings
|
||||
#-----------------------
|
||||
@@ -57,9 +60,8 @@ APPRISE_URL = 'mailto://smtp-relay.sendinblue.com:587?from=user@gmai
|
||||
REPORT_NTFY = False
|
||||
NTFY_HOST = 'https://ntfy.sh'
|
||||
NTFY_TOPIC = 'replace_my_secure_topicname_91h889f28'
|
||||
# set username and password if authentication is used https://docs.ntfy.sh/config/#users-and-roles
|
||||
NTFY_USER = ''
|
||||
NTFY_PASSWORD = ''
|
||||
NTFY_USER = 'user' # set username...
|
||||
NTFY_PASSWORD = 'passw0rd' # ...and password if authentication is used https://docs.ntfy.sh/config/#users-and-roles
|
||||
|
||||
# PUSHSAFER (https://www.pushsafer.com/) settings
|
||||
# ----------------------
|
||||
@@ -74,7 +76,7 @@ MQTT_PORT = 1883
|
||||
MQTT_USER = 'mqtt'
|
||||
MQTT_PASSWORD = 'passw0rd'
|
||||
MQTT_QOS = 0
|
||||
MQTT_DELAY_SEC = 2 # delay in seconds, increase if not all devices are created in Home Assistant
|
||||
MQTT_DELAY_SEC = 2 # delay in seconds, increase if not all devices are created in Home Assistant
|
||||
|
||||
# DynDNS
|
||||
# ----------------------
|
||||
@@ -110,6 +112,6 @@ DHCP_LEASES = '/etc/pihole/dhcp.leases'
|
||||
|
||||
SCAN_SUBNETS = '--localnet'
|
||||
|
||||
# Maintenance Tasks Cron
|
||||
# Maintenance Task Settings
|
||||
# ----------------------
|
||||
DAYS_TO_KEEP_EVENTS = 90
|
||||
|
||||
Reference in New Issue
Block a user