mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-05 17:32:02 +02:00
ignorelist
This commit is contained in:
@@ -47,6 +47,8 @@ SentryEnabled = True
|
||||
SentryChannel = 9
|
||||
# channel to send a message to when the watchdog is triggered
|
||||
SentryHoldoff = 2
|
||||
# list of ignored nodes numbers ex: 2813308004,4258675309
|
||||
sentryIgnoreList =
|
||||
|
||||
[bbs]
|
||||
enabled = True
|
||||
|
||||
@@ -78,6 +78,7 @@ try:
|
||||
sentry_enabled = config['general'].getboolean('SentryEnabled', True) # default True
|
||||
secure_channel = config['general'].getint('SentryChannel', 2) # default 2
|
||||
sentry_holdoff = config['general'].getint('SentryHoldoff', 9) # default 9
|
||||
sentryIgnoreList = config['general'].get('sentryIgnoreList', '').split(',')
|
||||
config['general'].get('motd', MOTD)
|
||||
urlTimeoutSeconds = config['general'].getint('URL_TIMEOUT', 10) # default 10 seconds
|
||||
forecastDuration = config['general'].getint('NOAAforecastDuration', 4) # NOAA forcast days
|
||||
|
||||
+4
-2
@@ -295,7 +295,8 @@ def get_closest_nodes(nodeInt=1):
|
||||
b = longitudeValue - longitude
|
||||
c = sqrt(a * a + b * b)
|
||||
if (c < radius):
|
||||
node_list.append({'id': nodeID, 'latitude': latitude, 'longitude': longitude})
|
||||
if nodeID != myNodeNum1 and nodeID not in sentryIgnoreList:
|
||||
node_list.append({'id': nodeID, 'latitude': latitude, 'longitude': longitude})
|
||||
except Exception as e:
|
||||
pass
|
||||
# else:
|
||||
@@ -326,7 +327,8 @@ def get_closest_nodes(nodeInt=1):
|
||||
b = longitudeValue - longitude
|
||||
c = sqrt(a * a + b * b)
|
||||
if (c < radius):
|
||||
node_list.append({'id': nodeID, 'latitude': latitude, 'longitude': longitude})
|
||||
if nodeID != myNodeNum2 and nodeID not in sentryIgnoreList:
|
||||
node_list.append({'id': nodeID, 'latitude': latitude, 'longitude': longitude})
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user