From f1ef5fa787e0ad832daacd5572ea033d2ab302fb Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 12 Aug 2024 23:49:50 -0700 Subject: [PATCH] cleanup --- README.md | 4 +++- config.template | 7 ++++--- modules/settings.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index add0c92..5e9bdd7 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,9 @@ Sentry Bot detects anyone comeing close to the bot-node ``` # detect anyone close to the bot SentryEnabled = True -# holdoff time multiplied by minutes(20) of the watchdog +# radius in meters to detect someone close to the bot +SentryRadius = 100 +# holdoff time multiplied by seconds(20) of the watchdog SentryChannel = 9 # channel to send a message to when the watchdog is triggered SentryHoldoff = 2 diff --git a/config.template b/config.template index d382953..ff483eb 100644 --- a/config.template +++ b/config.template @@ -40,16 +40,17 @@ StoreLimit = 3 # 24 hour clock zuluTime = True # wait time for URL requests -URL_TIMEOUT = 10 +urlTimeout = 10 # logging to file of the non Bot messages LogMessagesToFile = False -# detect anyone close to the bot + [sentry] +# detect anyone close to the bot SentryEnabled = True # radius in meters to detect someone close to the bot SentryRadius = 100 -# holdoff time multiplied by minutes(20) of the watchdog +# holdoff time multiplied by seconds(20) of the watchdog SentryChannel = 9 # channel to send a message to when the watchdog is triggered SentryHoldoff = 2 diff --git a/modules/settings.py b/modules/settings.py index 350d8e4..a611f4f 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -82,7 +82,7 @@ try: publicChannel = config['general'].getint('defaultChannel', 0) # the meshtastic public channel zuluTime = config['general'].getboolean('zuluTime', False) # aka 24 hour time log_messages_to_file = config['general'].getboolean('LogMessagesToFile', True) # default True - urlTimeoutSeconds = config['general'].getint('URL_TIMEOUT', 10) # default 10 seconds + urlTimeoutSeconds = config['general'].getint('urlTimeout', 10) # default 10 seconds store_forward_enabled = config['general'].getboolean('StoreForward', True) # default False storeFlimit = config['general'].getint('StoreLimit', 3) # default 3 messages for S&F welcome_message = config['general'].get(f'welcome_message', WELCOME_MSG)