This commit is contained in:
SpudGunMan
2025-10-13 17:23:49 -07:00
parent a6bcfda0ac
commit f3ec1cbe93
3 changed files with 3 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ alert_interface = 1
[sentry]
# detect anyone close to the bot
SentryEnabled = True
reqLocationEnabled = False
emailSentryAlerts = False
# radius in meters to detect someone close to the bot
SentryRadius = 100

View File

@@ -268,6 +268,7 @@ try:
highfly_ignoreList = config['sentry'].get('highFlyingIgnoreList', '').split(',') # default empty
highfly_check_openskynetwork = config['sentry'].getboolean('highflyOpenskynetwork', True) # default True check with OpenSkyNetwork if highfly detected
detctionSensorAlert = config['sentry'].getboolean('detectionSensorAlert', False) # default False
reqLocationEnabled = config['sentry'].getboolean('requestLocationData', False) # default False
# location
location_enabled = config['location'].getboolean('enabled', True)

View File

@@ -585,8 +585,7 @@ def get_closest_nodes(nodeInt=1,returnCount=3, channel=publicChannel):
except Exception as e:
pass
else:
# request location data
reqLocationEnabled = False
# request location data moved to .ini hidden under [sentry]
if reqLocationEnabled:
try:
logger.debug(f"System: Requesting location data for {node['id']}, lastHeard: {node.get('lastHeard', 'N/A')}")