Posts: 236
	Threads: 48
	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: 236
	Threads: 48
	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: 236
	Threads: 48
	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: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		Yes, 3 bytes with type time/day