mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-14 06:01:34 -07:00
@@ -157,8 +157,8 @@ def main ():
|
||||
check_internet_IP(db)
|
||||
|
||||
# Update vendors once a week
|
||||
if last_update_vendors + datetime.timedelta(days = 7) < loop_start_time:
|
||||
last_update_vendors = loop_start_time
|
||||
if conf.last_update_vendors + datetime.timedelta(days = 7) < loop_start_time:
|
||||
conf.last_update_vendors = loop_start_time
|
||||
conf.cycle = 'update_vendors'
|
||||
mylog('verbose', ['[MAIN] cycle:',conf.cycle])
|
||||
update_devices_MAC_vendors(db)
|
||||
|
||||
@@ -36,10 +36,6 @@ def send(msg: noti_struc):
|
||||
payloadData = msg.text
|
||||
|
||||
# Define Apprise compatible payload (https://github.com/caronc/apprise-api#stateless-solution)
|
||||
# payload = html
|
||||
|
||||
# if conf.APPRISE_PAYLOAD == 'text':
|
||||
# payload = text
|
||||
|
||||
_json_payload = {
|
||||
"urls": conf.APPRISE_URL,
|
||||
|
||||
Reference in New Issue
Block a user