diff --git a/etc/custom_scheduler.py b/etc/custom_scheduler.py index ee9e142..f57f4ab 100644 --- a/etc/custom_scheduler.py +++ b/etc/custom_scheduler.py @@ -37,7 +37,7 @@ def send_good_morning(send_message, channel, interface): send_message("Good Morning", channel, 0, interface) def send_wx(send_message, handle_wxc, channel, interface): - send_message(handle_wxc(0, 1, 'wx'), channel, 0, interface) + send_message(handle_wxc(0, 1, 'wx', days=1), channel, 0, interface) def send_weather_alert(send_message, channel, interface): send_message("Weather alerts available on 'Alerts' channel with default 'AQ==' key.", channel, 0, interface) diff --git a/modules/scheduler.py b/modules/scheduler.py index ea976c2..76e6764 100644 --- a/modules/scheduler.py +++ b/modules/scheduler.py @@ -137,7 +137,7 @@ def setup_scheduler( logger.debug(f"System: Starting the link scheduler to send link messages every {schedulerIntervalInt} hours on Device:{schedulerInterface} Channel:{schedulerChannel}") elif 'weather' in schedulerValue: schedule.every().day.at(schedulerTime).do( - partial(send_message, handle_wxc(0, schedulerInterface, 'wx'), schedulerChannel, 0, schedulerInterface) + partial(send_message, handle_wxc(0, schedulerInterface, 'wx', days=1), schedulerChannel, 0, schedulerInterface) ) logger.debug(f"System: Starting the weather scheduler to send weather updates every {schedulerIntervalInt} hours on Device:{schedulerInterface} Channel:{schedulerChannel}") elif 'custom' in schedulerValue: