From a16b87664ab57b7969af98d98cc1eb1e26472427 Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 30 Jul 2026 19:04:25 -0700 Subject: [PATCH 1/4] Update filemon.py --- modules/filemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/filemon.py b/modules/filemon.py index 5ac2a734..3e12ff12 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -142,6 +142,7 @@ def write_news(content, append=False): async def watch_file(): # Watch the file for changes and return the new content when it changes if not os.path.exists(file_monitor_file_path): + logger.warning(f"FileMon: File not found: {file_monitor_file_path}") return None else: last_modified_time = os.path.getmtime(file_monitor_file_path) From 61df39e230eab9e172da40aa3aefed3ccf0314b9 Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 30 Jul 2026 19:04:29 -0700 Subject: [PATCH 2/4] Update config.template --- config.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.template b/config.template index dc1e1f80..60a276d6 100644 --- a/config.template +++ b/config.template @@ -390,7 +390,7 @@ js8callWatchedCallsigns = [fileMon] filemon_enabled = False # text file to monitor for changes -file_path = alert.txt +file_path = ../data/alert.txt # channel to send the message to can be 2,3 multiple channels comma separated broadcastCh = 2 From d73b86d31d7c2767cd898ada3708d12a0d33de94 Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 30 Jul 2026 19:07:07 -0700 Subject: [PATCH 3/4] Create alert.txt --- etc/data/alert.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 etc/data/alert.txt diff --git a/etc/data/alert.txt b/etc/data/alert.txt new file mode 100644 index 00000000..e69de29b From 37f0fdcc9809c3d16f47beef023cb767ee4dad5c Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 30 Jul 2026 19:08:26 -0700 Subject: [PATCH 4/4] Update config.template --- config.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.template b/config.template index 60a276d6..b8b402f3 100644 --- a/config.template +++ b/config.template @@ -390,13 +390,13 @@ js8callWatchedCallsigns = [fileMon] filemon_enabled = False # text file to monitor for changes -file_path = ../data/alert.txt +file_path = data/alert.txt # channel to send the message to can be 2,3 multiple channels comma separated broadcastCh = 2 # news command will return the contents of a text file enable_read_news = False -news_file_path = ../data/news.txt +news_file_path = data/news.txt # only return a single random (head)line from the news file news_random_line = False # only return random news 'block' (seprated by two newlines) randomly (precidence over news_random_line)