"Cron" to update silencetime daily according to a "calendar"

Hi,

This is kind of a feature request/idea, but maybe parts of it already exist and I just didn't find them so I thought I'll ask here what's the right way to do this.

The problem:
my daughter has a different timetable on different days, so I'd like to be able to set some kind of "calendar" on the server, and the server would automatically update the SILENCETIME on the watch every morning accordingly.

What I thought to do:

  • add a "calendar" structure (maybe with a better name, as calendar already exist?) where we can store things in a format similar to this:
    dow;silencetime,...

for example:
0;07:45-12:45
1;7:45-14:00
2;7:45-12:45,16:00-18:00
3;7:45-14:00
4;7:45-14:00
5;7:45-12:45,16:00-18:00

After this is saved to the server, the server would update the watch every day to have the correct silencetime settings for that day.

What do you think? How should I start this?

Anton Tananaev5 years ago

You can have a cron script that does it.