diff --git a/config.template b/config.template index 491b311..3f0ce12 100644 --- a/config.template +++ b/config.template @@ -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 diff --git a/modules/settings.py b/modules/settings.py index 8e3930f..886465e 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -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) diff --git a/modules/system.py b/modules/system.py index 2b1a49f..33c473a 100644 --- a/modules/system.py +++ b/modules/system.py @@ -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')}")