Subversion Repositories HomeAutomation

Rev

Rev 1250 | Rev 1256 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1250 Rev 1252
Line 649... Line 649...
649
        {
649
        {
650
            /* check if current time is before start of first meeting
650
            /* check if current time is before start of first meeting
651
            first meeting is always the next meeting or current meeting */
651
            first meeting is always the next meeting or current meeting */
652
            //var startDate = new Date.parse(this.exchangeData.meetings[0].start);
652
            //var startDate = new Date.parse(this.exchangeData.meetings[0].start);
653
            var startTimeSplit = this.exchangeData.meetings[0].start.split(":");
653
            var startTimeSplit = this.exchangeData.meetings[0].start.split(":");
-
 
654
            var endTimeSplit = this.exchangeData.meetings[0].end.split(":");
-
 
655
            if (now.getHours() < startTimeSplit[0] ||
-
 
656
            now.getHours() > endTimeSplit[0] ||
654
            if (now.getHours() < startTimeSplit[0] || now.getHours() == startTimeSplit[0] && now.getMinutes() < startTimeSplit[1])
657
            now.getHours() == startTimeSplit[0] && now.getMinutes() < startTimeSplit[1])
655
            {
658
            {
656
                if (this.LEDstatus != "green")
659
                if (this.LEDstatus != "green")
657
                {
660
                {
658
                    this.LEDstatus = "green";
661
                    this.LEDstatus = "green";
659
                    this.setLEDgreen();
662
                    this.setLEDgreen();