How would I schedule events eg turn on/off a relay at specific times

you could use a library like this:

3 Likes