diff --git a/etc/custom_scheduler.py b/etc/custom_scheduler.py index f57f4ab..cd35e93 100644 --- a/etc/custom_scheduler.py +++ b/etc/custom_scheduler.py @@ -26,7 +26,7 @@ def setup_custom_schedules(send_message, tell_joke, welcome_message, handle_wxc, # Send MOTD every day at 1 PM #schedule.every().day.at("13:00").do(send_motd, send_message, MOTD, schedulerChannel, schedulerInterface) # Send bbslink message every 2 days at 10 AM - #schedule.every(2).days.at("10:00").do(send_bbslink, send_message, schedulerChannel, schedulerInterface) + #schedule.every(2).days.at("10:00").do(send_message("bbslink MeshBot looking for peers", schedulerChannel, 0, schedulerInterface)) # Example task functions, modify as needed the channel and interface parameters default to schedulerChannel and schedulerInterface diff --git a/modules/bbstools.md b/modules/bbstools.md index 799195b..3d669d9 100644 --- a/modules/bbstools.md +++ b/modules/bbstools.md @@ -158,7 +158,7 @@ interval = 12 # 12 hours ```python # Custom Schedule Example if using custom for [scheduler] # Send bbslink looking for peers every 2 days at 10 AM -schedule.every(2).days.at("10:00").do(send_bbslink, send_message, schedulerChannel, schedulerInterface) +schedule.every(2).days.at("10:00").do(send_message("bbslink MeshBot looking for peers", schedulerChannel, 0, schedulerInterface)) ``` --- diff --git a/modules/scheduler.py b/modules/scheduler.py index 76e6764..68b2627 100644 --- a/modules/scheduler.py +++ b/modules/scheduler.py @@ -132,7 +132,7 @@ def setup_scheduler( logger.debug(f"System: Starting the joke scheduler to send a joke every {schedulerIntervalInt} minutes on Device:{schedulerInterface} Channel:{schedulerChannel}") elif 'link' in schedulerValue: schedule.every(schedulerIntervalInt).hours.do( - partial(send_message, handle_satpass(schedulerInterface, 'link'), schedulerChannel, 0, schedulerInterface) + send_message("bbslink MeshBot looking for peers", schedulerChannel, 0, schedulerInterface) ) logger.debug(f"System: Starting the link scheduler to send link messages every {schedulerIntervalInt} hours on Device:{schedulerInterface} Channel:{schedulerChannel}") elif 'weather' in schedulerValue: