Time Scheduler

Steve Vassiliadis 11 years ago in iRidium Script / AV and Driver scripts updated by Ekaterina (head of support) 9 years ago 3
I have created a weekly timescheduler with 2 time periods per day.
I created this because I need this for a project, but also as a practical way to learn javascript. 
The scheduler is not fully tested so use it with caution. I am not a professional programmer so don't be surprised if the javascript is a bit a ugly. It would be great if this was worked on collaboratively to improve both the look and functionality.
It works with Windows and Android panels, but watchout for IOS, when the IOS panel goes to sleep so does the javascript.
It would be even better if iRidium made a similar time schedule available as a standard item.

I can not get it to work, I set out for a relay and makes it stay always off, even when I try to turn it on manually in a second turns off again.
Under review
You can also use this example: