Rev 1248 | Rev 1250 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1248 | Rev 1249 | ||
|---|---|---|---|
| Line 113... | Line 113... | ||
| 113 | 113 | ||
| 114 | this.screenSaverCnt = 0; |
114 | this.screenSaverCnt = 0; |
| 115 | this.mainScreenCnt = 0; |
115 | this.mainScreenCnt = 0; |
| 116 | this.exchangeUpdateCnt = exchangeUpdateTimeout-10; |
116 | this.exchangeUpdateCnt = exchangeUpdateTimeout-10; |
| 117 | 117 | ||
| 118 | LEDstatus = "none"; |
118 | this.LEDstatus = "none"; |
| 119 | 119 | ||
| 120 | /* Get the LCD service that we want from the ServiceManager, it takes type, service name, service id */ |
120 | /* Get the LCD service that we want from the ServiceManager, it takes type, service name, service id */ |
| 121 | this.myLCDService = ServiceManager.getService("Can", "HD44789", this.myInitialArguments["HD44789"]["Id"]); |
121 | this.myLCDService = ServiceManager.getService("Can", "HD44789", this.myInitialArguments["HD44789"]["Id"]); |
| 122 | /* Add a callback for when the service goes online */ |
122 | /* Add a callback for when the service goes online */ |
| 123 | this.myLCDService.registerEventCallback("online", function(args) { self.lcdOnline(); }); |
123 | this.myLCDService.registerEventCallback("online", function(args) { self.lcdOnline(); }); |
| Line 651... | Line 651... | ||
| 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 | if (now.getHours() < startTimeSplit[0] || now.getHours() == startTimeSplit[0] && now.getMinutes() < startTimeSplit[1]) |
654 | if (now.getHours() < startTimeSplit[0] || now.getHours() == startTimeSplit[0] && now.getMinutes() < startTimeSplit[1]) |
| 655 | { |
655 | { |
| 656 | if (LEDstatus != "green") |
656 | if (this.LEDstatus != "green") |
| 657 | { |
657 | { |
| 658 | LEDstatus = "green"; |
658 | this.LEDstatus = "green"; |
| 659 | this.setLEDgreen(); |
659 | this.setLEDgreen(); |
| 660 | } |
660 | } |
| 661 | } |
661 | } |
| 662 | else |
662 | else |
| 663 | { |
663 | { |
| 664 | if (LEDstatus != "red") |
664 | if (this.LEDstatus != "red") |
| 665 | { |
665 | { |
| 666 | LEDstatus = "red"; |
666 | this.LEDstatus = "red"; |
| 667 | this.setLEDred(); |
667 | this.setLEDred(); |
| 668 | } |
668 | } |
| 669 | } |
669 | } |
| 670 | } |
670 | } |
| 671 | else |
671 | else |
| 672 | { |
672 | { |
| 673 | if (LEDstatus != "green") |
673 | if (this.LEDstatus != "green") |
| 674 | { |
674 | { |
| 675 | LEDstatus = "green"; |
675 | this.LEDstatus = "green"; |
| 676 | this.setLEDgreen(); |
676 | this.setLEDgreen(); |
| 677 | } |
677 | } |
| 678 | } |
678 | } |
| 679 | } |
679 | } |
| 680 | } |
680 | } |