Rev 1190 | Rev 1194 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1190 | Rev 1191 | ||
|---|---|---|---|
| Line 347... | Line 347... | ||
| 347 | 347 | ||
| 348 | this.createCalendarMenu(); |
348 | this.createCalendarMenu(); |
| 349 | } |
349 | } |
| 350 | } |
350 | } |
| 351 | 351 | ||
| - | 352 | /* this function parses calendar data from exchange-script and creates a menu */ |
|
| 352 | Display.prototype.createCalendarMenu = function() |
353 | Display.prototype.createCalendarMenu = function() |
| 353 | { |
354 | { |
| 354 | log("createCalendar \n"); |
355 | log("createCalendar \n"); |
| 355 | if (this.exchangeData) |
356 | if (this.exchangeData) |
| 356 | { |
357 | { |
| Line 488... | Line 489... | ||
| 488 | if (this.myInterval == null) |
489 | if (this.myInterval == null) |
| 489 | { |
490 | { |
| 490 | var self = this; |
491 | var self = this; |
| 491 | 492 | ||
| 492 | /* Start interval timer for our printout. Arguments are the callback function and time in milliseconds */ |
493 | /* Start interval timer for our printout. Arguments are the callback function and time in milliseconds */ |
| 493 | this.myInterval = new Interval(function() { self.timerUpdate() }, |
494 | this.myInterval = new Interval(function() { self.timerUpdate() }, 60000); |
| 494 | } |
495 | } |
| 495 | 496 | ||
| 496 | this.myInterval.start(); |
497 | this.myInterval.start(); |
| 497 | 498 | ||
| 498 | this.timerUpdate(); |
499 | this.timerUpdate(); |
| Line 506... | Line 507... | ||
| 506 | { |
507 | { |
| 507 | this.exchangeCalendar.lookup(this.shortName); |
508 | this.exchangeCalendar.lookup(this.shortName); |
| 508 | 509 | ||
| 509 | /* update the info on display */ |
510 | /* update the info on display */ |
| 510 | this.updateDisplay(); |
511 | this.updateDisplay(); |
| 511 | - | ||
| 512 | //var date = new Date(); |
- | |
| 513 | /* Get the current date time on the format YYYY-mm-dd HH.ii.ss */ |
- | |
| 514 | //var dateAndTime = date.getDateTimeFormated(); |
- | |
| 515 | /* Print the text to the LCD */ |
- | |
| 516 | //this.myLCDService.printText(0, 1, dateAndTime); |
- | |
| 517 | /* Print out what we are doing to the console */ |
- | |
| 518 | //log(this.myName + ":" + this.myId + "> Trying to print " + dateAndTime + " to LCD\n"); |
- | |
| 519 | } |
512 | } |
| 520 | } |
513 | } |
| 521 | 514 | ||