config.ini scheduler format #111

Closed
opened 2026-10-05 01:23:14 +02:00 by adam · 2 comments
Owner

From config.template:

# value can also be 'joke' (min/interval), 'weather' (time/day), 'link' (hour/interval) for special auto messages
# or 'news' (hour/interval), 'readrss' (hour/interval), 'mwx' (time/day), 'sysinfo' (hour/interval),
# 'tide' (time/day), 'solar' (time/day) for automated information broadcasts, matching module needs enabled!
# 'custom' for module/scheduler.py custom schedule examples
value =
# interval to use when time is not set (e.g. every 2 days)
interval = 
# time of day in 24:00 hour format when value is 'day' and interval is not set
time =

I've tried a few iterations to get the scheduler to send the weather daily at 9am and link daily at 10am, but I can't seem to get it working. A few of my attempts resulted in the "basic scheduler" being enabled due to specifying the word "day" in the value line. Others gave an error "Scheduler config interval error '' to int" since I had not specified an interval. My personal favorite:
DEBUG | System: Starting the basic scheduler to send '"MeshBot says Hello! DM for more info."' on schedule ''weather' (09:00/day), 'link' (10:00/day)' every 5 interval at time ''
I have the link scheduler running every 24h at the moment with the following, but no functional weather:

value = 'link','weather'
interval = 24
time = 09:00

Could you clarify what the right format for "value" is to achieve my desired scheduler? I'd be happy to update the template once I have some more clarity. Thanks!

From config.template: ```# value can be min,hour,day,mon,tue,wed,thu,fri,sat,sun. # value can also be 'joke' (min/interval), 'weather' (time/day), 'link' (hour/interval) for special auto messages # or 'news' (hour/interval), 'readrss' (hour/interval), 'mwx' (time/day), 'sysinfo' (hour/interval), # 'tide' (time/day), 'solar' (time/day) for automated information broadcasts, matching module needs enabled! # 'custom' for module/scheduler.py custom schedule examples value = # interval to use when time is not set (e.g. every 2 days) interval = # time of day in 24:00 hour format when value is 'day' and interval is not set time = ``` I've tried a few iterations to get the scheduler to send the weather daily at 9am and link daily at 10am, but I can't seem to get it working. A few of my attempts resulted in the "basic scheduler" being enabled due to specifying the word "day" in the value line. Others gave an error "Scheduler config interval error '' to int" since I had not specified an interval. My personal favorite: `DEBUG | System: Starting the basic scheduler to send '"MeshBot says Hello! DM for more info."' on schedule ''weather' (09:00/day), 'link' (10:00/day)' every 5 interval at time ''` I have the link scheduler running every 24h at the moment with the following, but no functional weather: ``` value = 'link','weather' interval = 24 time = 09:00 ``` Could you clarify what the right format for "value" is to achieve my desired scheduler? I'd be happy to update the template once I have some more clarity. Thanks! <!-- github-sync-id:3593499516 -->
adam closed this issue 2026-10-05 01:23:14 +02:00
Author
Owner

Today it would be to only have a single entry in the value

So

value = link
Or

value = weather

To go beyond would be to use the custom_ scheduler to stack values.

The one issue with stacking here is I can't easily set the time?

https://github.com/SpudGunMan/meshing-around/blob/main/modules/README.md

Today it would be to only have a single entry in the value So value = link Or value = weather To go beyond would be to use the custom_ scheduler to stack values. The one issue with stacking here is I can't easily set the time? https://github.com/SpudGunMan/meshing-around/blob/main/modules/README.md <!-- github-comment-id:3494617736 -->
Author
Owner

Thanks, I didn't realize the basic scheduler was limited to a single value. I'll look into using the custom scheduler instead. What tripped me up was interval/time being optional and the template listing what I thought was a way to provide an interval in the value line ("'joke' (min/interval)").

Thanks, I didn't realize the basic scheduler was limited to a single value. I'll look into using the custom scheduler instead. What tripped me up was interval/time being optional and the template listing what I thought was a way to provide an interval in the value line ("'joke' (min/interval)"). <!-- github-comment-id:3502929839 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#111