From 22983133ee4db3df34f66699f565e506de296197 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 27 Aug 2024 16:44:22 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index efa0974..0756d90 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -422,17 +422,17 @@ async def start_rx(): if radio_dectection_enabled: logger.debug(f"System: Radio Detection Enabled using rigctld at {rigControlServerAddress} brodcasting to channels: {sigWatchBrodcastCh} for {get_freq_common_name(get_hamlib('f'))}") if scheduler_enabled: - # Examples of using the scheduler + # Examples of using the scheduler, Times here are in 24hr format # https://schedule.readthedocs.io/en/stable/ # Good Morning Every day at 09:00 using send_message function to channel 2 on device 1 - #schedule.every().day.at("09:00").do(send_message, "Good Morning", 2, 0, 1) + #schedule.every().day.at("09:00").do(lambda: send_message("Good Morning", 2, 0, 1)) # Send WX every Morning at 08:00 using handle_wxc function to channel 2 on device 1 - #schedule.every().day.at("08:00").do(send_message, handle_wxc(0, 1, 'wx'), 2, 0, 1) + #schedule.every().day.at("08:00").do(lambda: send_message(handle_wxc(0, 1, 'wx'), 2, 0, 1)) # Send a Net Starting Now Message Every Wednesday at 19:00 using send_message function to channel 2 on device 1 - #schedule.every().wednesday.at("19:00").do(send_message, "The Radio Net Starting Now!", 2, 0, 1) + #schedule.every().wednesday.at("19:00").do(lambda: send_message("Net Starting Now", 2, 0, 1) # logger.debug("System: Starting the broadcast scheduler")