timers.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <ion-header>
  2. <ion-navbar>
  3. <ion-spinner #spinner [hidden]="!spinner_show" [paused]="!this.abc.scanning" (click)="this.abc.bt_discover()" style="float: right; margin-right: 1em; width: 1.5em; height: 1.5em;"></ion-spinner>
  4. <span #tt42 [hidden]="spinner_show" style="float: right; margin-right: 1em;">{{temperature}}</span>
  5. <button ion-button menuToggle>
  6. <ion-icon name="menu"></ion-icon>
  7. </button>
  8. <ion-title>Timers</ion-title>
  9. </ion-navbar>
  10. </ion-header>
  11. <ion-content padding>
  12. <div style="margin-bottom: 2em;">
  13. The inactivity timer disables the boiler and puts your machine into the off-state when no brew or steam activity has been detected for the configured number of minutes. Set to zero to disable.
  14. </div>
  15. <!-- style="display: flex; flex-direction: row; align-items: center; width: 100%; margin-bottom: 2em;" -->
  16. <div class="mecoffee item item-block item-md">
  17. <div class="item-inner mce-range">
  18. <div style="flex: 1 0 0;" class="label label-md">Inactivity</div>
  19. <div style="flex: 4 0 0;" class="item item-md" >
  20. <mc-range id="tmrosd" [(ngModel)]="pars.tmrosd" (ionChange)="notify($event)" min="0" max="120" unit="min" pin="true">
  21. </mc-range>
  22. </div></div>
  23. </div>
  24. <div style="margin-bottom: 2em;">
  25. The shot timer limits the shot time to the configured number of seconds.
  26. </div>
  27. <div class="mecoffee item item-block item-md">
  28. <div class="item-inner mce-range">
  29. <div style="flex: 1 0 0;" class="label label-md">Shot</div>
  30. <div style="flex: 4 0 0;" class="item item-md" >
  31. <mc-range id="shtmx" [(ngModel)]="pars.shtmx" (ionChange)="notify($event)" min="0" max="60" unit="s" pin="true">
  32. </mc-range>
  33. </div></div>
  34. </div>
  35. <div style="margin-bottom: 2em;">
  36. The wakeup timer enables automatic turn-on at the specified time. Irregardless of the inactivity timer configuration it will shut off again if no activity is detected within 60 minutes.
  37. </div>
  38. <div class="mecoffee item item-block item-md">
  39. <div class="item-inner">
  40. <div style="flex: 1 0 0;" class="label label-md">Wakeup</div>
  41. <div style="flex: 4 0 0;" class="item item-md">
  42. <ion-toggle id="tmrwnbl" [(ngModel)]="pars.tmrwnbl" (ionChange)="notify($event)" style="float:right;"></ion-toggle>
  43. </div></div>
  44. </div>
  45. <!-- ion-item class="mecoffee">
  46. <ion-label>Wakeup enable</ion-label>
  47. <ion-toggle id="tmrwnbl" [(ngModel)]="pars.tmrwnbl" (ionChange)="notify($event)" style="float:right;"></ion-toggle>
  48. </ion-item -->
  49. <div class="mecoffee item item-block item-md">
  50. <div class="item-inner">
  51. <div style="flex: 1 0 0;" class="label label-md">At</div>
  52. <div style="flex: 4 0 0;" class="item item-md">
  53. <ion-datetime id="tmron" [(ngModel)]="pars.tmron" displayFormat="h:mm A" pickerFormat="h mm A" style="float:right;"></ion-datetime>
  54. </div></div></div>
  55. <!-- ion-item class="mecoffee">
  56. <ion-label>Wakeup time</ion-label>
  57. <ion-datetime id="tmron" [(ngModel)]="pars.tmron" displayFormat="h:mm A" pickerFormat="h mm A" style="float:right;"></ion-datetime>
  58. </ion-item -->
  59. <!--ion-item class="mecoffee">
  60. <ion-label>Shutdown enable</ion-label>
  61. <ion-toggle id="tmrsnbl" [(ngModel)]="pars.tmrsnbl" (ionChange)="notify($event)" style="float:right;"></ion-toggle>
  62. </ion-item -->
  63. <div style="margin-bottom: 2em;">
  64. The shutdown timer enables automatic turn-off at the specified time. To turn on your machine again after this time, toggle the power switch of your machine.
  65. </div>
  66. <div class="mecoffee item item-block item-md">
  67. <div class="item-inner">
  68. <div style="flex: 1 0 0;" class="label label-md">Shutdown</div>
  69. <div style="flex: 4 0 0;" class="item item-md">
  70. <ion-toggle id="tmrsnbl" [(ngModel)]="pars.tmrsnbl" (ionChange)="notify($event)" style="float:right;"></ion-toggle>
  71. </div></div></div>
  72. <!-- ion-item class="mecoffee">
  73. <ion-label>Shutdown time</ion-label>
  74. <ion-datetime id="tmroff" [(ngModel)]="pars.tmroff" displayFormat="h:mm A" pickerFormat="h mm A" style="float:right;"></ion-datetime>
  75. </ion-item -->
  76. <div class="mecoffee item item-block item-md">
  77. <div class="item-inner">
  78. <div style="flex: 1 0 0;" class="label label-md">At</div>
  79. <div style="flex: 4 0 0;" class="item item-md">
  80. <ion-datetime id="tmroff" [(ngModel)]="pars.tmroff" displayFormat="h:mm A" pickerFormat="h mm A" style="float:right;"></ion-datetime>
  81. </div></div></div>
  82. <div style="margin-bottom: 2em; color: grey;">
  83. <b>Gotcha:</b> The wakeup and shutdown timer will cease to work after a power outage, or once unplugged from the wall-socket for that matter. Reconnect once with <i>meBarista</i> to tell your meCoffee the current time to re-enable.
  84. </div>
  85. <div class="row" style="display: flex; flex-direction: row; align-items: center; width: 100%;">
  86. <div style="flex: 1 0 0;">
  87. <button ion-button id="defaults" [disabled]="!this.showDefaults()" (click)="doDefaults()">Defaults</button>
  88. </div>
  89. <div style="flex: 4 0 0;">
  90. <div style="float:right;">
  91. <button ion-button id="reset" [disabled]="!this.showUndo()" (click)="doUndo()">Undo</button>
  92. <button ion-button id="update" [disabled]="!this.showUpdate()" (click)="doUpdate()">Update</button>
  93. </div>
  94. </div>
  95. </div>
  96. </ion-content>