Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
I´ve tried finding a solution for setting an alarm time to i.e. progressively increase the value of a light in a period of time.
Having difficulties wrapping my head around the os.time/os.date function.
Has anyone done something similar with a working solution?
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
Thank you for the reply.
The reason I mentioned os.time/os.date is because i dont have a set schedule. This means I´m not interested in waking up at the same time every day of the week (some things can not be automated easily). I want to set a time in visu that then will trigger the wake up light 30 mins before that time.
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
This is fantastic.
A question on the side; the time object, is it a 3-Byte object? How do you write the correct values to this in a script?
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
Yes, 3 bytes with type time/day