index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>meBarista</title>
  8. <link rel="shortcut icon" href="https://mecoffee.nl/wp-content/uploads/2015/07/logo-16.png">
  9. <link rel="apple-touch-icon" href="images/logo-57.png">
  10. <link rel="apple-touch-icon" sizes="114x114" href="images/logo-114.png">
  11. <link rel="apple-touch-icon" sizes="72x72" href="images/logo-72.png">
  12. <link rel="apple-touch-icon" sizes="144x144" href="images/logo-144.png">
  13. <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
  14. <link rel="stylesheet" href="lib/bootstrap/css/bootstrap-theme.min.css">
  15. <link rel="stylesheet" href="lib/bootstrap-switch.css">
  16. <link rel="stylesheet" href="lib/bootstrap-slider.css">
  17. <link rel="stylesheet" href="lib/bootstrap-timepicker.css">
  18. <link rel="stylesheet" href="lib/bootstrap-select.css">
  19. <link rel="stylesheet" href="lib/d3-gauge-simple.css">
  20. <style>
  21. svg {
  22. font: 10px sans-serif;
  23. }
  24. #line_sp, #line_tmp2 { color: red; fill: none;}
  25. #line_tmp, .line {
  26. fill: none;
  27. stroke: #000;
  28. stroke-width: 1.5px;
  29. }
  30. .axis path,
  31. .axis line {
  32. fill: none;
  33. stroke: #000;
  34. shape-rendering: crispEdges;
  35. }
  36. .temperature { width: 10em; }
  37. .temperature input { text-align: right; }
  38. .tab-content { padding-top: 2em;}
  39. .svg-container {
  40. display: inline-block;
  41. position: relative;
  42. width: 100%;
  43. padding-bottom: 70%;
  44. vertical-align: middle;
  45. overflow: hidden;
  46. }
  47. .svg-content {
  48. display: inline-block;
  49. position: relative;
  50. height: 25vh;
  51. width: 100%;
  52. top: 0;
  53. left: 0;
  54. bottom: 0;
  55. }
  56. .slider-track-high { background: darkgrey; }
  57. .slider-selection { background: darkgrey; }
  58. .slider-horizontal { top: 0.4em; }
  59. .bootstrap-select { width: 25em !important;}
  60. .help {
  61. position: absolute; margin-right: 2em; margin-bottom: 16em;
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. <div class="container">
  67. <p>&nbsp;<p/>
  68. <div style="padding-bottom: 7vh;">
  69. <div id="gauge_boiler" style="position: absolute; z-index: 100; top: 22vh; left: 3vw;"></div>
  70. <div id="gauge_shottimer" style="display: none; position: absolute; z-index: 100; top: 22vh; left: 13vw;"></div>
  71. <div class="well" style="height: 30vh;">
  72. <div id="graph" class="svg-container"></div>
  73. </div>
  74. </div>
  75. <ul id="tabs" class="nav nav-tabs">
  76. <li role="presentation" class="active"><a href="#connect" data-toggle="tab">Connect</a></li>
  77. <li role="presentation"><a href="#temperature" data-toggle="tab">Temperature</a></li>
  78. <li role="presentation"><a href="#pid" data-toggle="tab">PID</a></li>
  79. <li role="presentation"><a href="#pressure" data-toggle="tab">Pressure</a></li>
  80. <li role="presentation"><a href="#preinfusion" data-toggle="tab">Preinfusion</a></li>
  81. <li role="presentation"><a href="#timer" data-toggle="tab">Timer</a></li>
  82. <li role="presentation"><a href="#hardware" data-toggle="tab">Hardware</a></li>
  83. <li role="presentation"><a href="#about" data-toggle="tab">About</a></li>
  84. </ul>
  85. <div id="my-tab-content" class="tab-content">
  86. <a href="https://mecoffee.nl" target="_blank" style="position: absolute; right: 5vw;">
  87. <img src="images/logo-128.png" style="width: 10vw;" />
  88. </a>
  89. <div class="tab-pane" id="temperature">
  90. <form class="form-horizontal" role="form">
  91. <div class="form-group">
  92. <label class="control-label col-sm-2" for="mc_tmp">Current</label>
  93. <div class="col-sm-10">
  94. <div class="input-group temperature">
  95. <input id="mc_tmp" type="number" readonly class="form-control" placeholder="101.00" aria-describedby="basic-addon1">
  96. <span class="input-group-addon" id="basic-addon2">&deg;C</span>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-sm-2" for="mc_tmp">Setpoint</label>
  102. <div class="col-sm-10">
  103. <div class="input-group temperature">
  104. <input id="mc_tmpsp" type="number" min="90" max="115" step="0.5"
  105. pattern="\d+(\.\d{2})?" class="form-control target" placeholder="101.00"
  106. aria-describedby="basic-addon1" data-scale="100">
  107. <span id="mc_tmpsp_c" class="input-group-addon">&deg;C</span>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="form-group">
  112. <label class="control-label col-sm-2" for="mc_tmp">Steam</label>
  113. <div class="col-sm-10">
  114. <div class="input-group temperature">
  115. <input id="mc_tmpstm" type="number" min="115" max="135" step="0.5"
  116. pattern="\d+(\.\d{2})?" class="form-control target" placeholder="125.00"
  117. aria-describedby="basic-addon1" data-scale="100">
  118. <span id="mc_tmpstm_c" class="input-group-addon">&deg;C</span>
  119. </div>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-sm-2" for="mc_tmp">Continous mode</label>
  124. <div class="col-sm-10">
  125. <input id="mc_tmpcntns" type="checkbox" name="joop" class="form-control target" value="1">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-sm-2" for="mc_tmp">Pro Active</label>
  130. <div class="col-sm-10">
  131. <div class="input-group temperature">
  132. <input class="slider target" id="mc_tmppap" type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="0" >
  133. <!-- span id="mc_pap_lbl">3</span -->
  134. <!-- input id="mc_pap" type="text" class="form-control target" aria-describedby="basic-addon1" -->
  135. <!-- span class="input-group-addon" id="basic-addon2">%</span -->
  136. </div>
  137. </div>
  138. </div>
  139. </form>
  140. </form>
  141. <div class="help">
  142. <a href="https://mecoffee.nl/mebarista/help/temperature/" target="_blank">Help</a>
  143. </div>
  144. </div>
  145. <div class="tab-pane" id="pid">
  146. <form class="form-horizontal" role="form">
  147. <div class="form-group">
  148. <label class="control-label col-sm-2" for="mc_tmp">Proportional</label>
  149. <div class="col-sm-10">
  150. <input id="mc_pd1p" type="text" class="form-control temperature target" placeholder="25" aria-describedby="basic-addon1">
  151. </div>
  152. </div>
  153. <div class="form-group">
  154. <label class="control-label col-sm-2" for="mc_tmp">Integral</label>
  155. <div class="col-sm-10">
  156. <input id="mc_pd1i" type="text" class="form-control temperature target" placeholder="3" aria-describedby="basic-addon1">
  157. </div>
  158. </div>
  159. <div class="form-group">
  160. <label class="control-label col-sm-2" for="mc_tmp">Derative</label>
  161. <div class="col-sm-10">
  162. <input id="mc_pd1d" type="text" class="form-control temperature target" placeholder="128" aria-describedby="basic-addon1">
  163. </div>
  164. </div>
  165. <div class="form-group">
  166. <label class="control-label col-sm-2" for="mc_tmp">Interval</label>
  167. <div class="col-sm-10">
  168. <div class="input-group temperature">
  169. <input class="slider target" id="mc_pd1sz" type="text" data-slider-min="1000" data-slider-max="10000" data-slider-step="500" data-slider-value="0" >
  170. </div>
  171. </div>
  172. </div>
  173. <div class="form-group">
  174. <label class="control-label col-sm-2" for="mc_tmp">Winddown</label>
  175. <div class="col-sm-10">
  176. <div class="input-group temperature">
  177. <input class="slider target" id="mc_pd1imx" type="text" data-slider-min="1500" data-slider-max="5000" data-slider-step="100" data-slider-value="0" >
  178. </div>
  179. </div>
  180. </div>
  181. </form>
  182. </form>
  183. <div class="help">
  184. <a href="https://mecoffee.nl/mebarista/help/temperature/pid/" target="_blank">Help</a>
  185. </div>
  186. </div>
  187. <div class="tab-pane" id="pressure">
  188. <form class="form-horizontal" role="form">
  189. <div class="form-group">
  190. <label class="control-label col-sm-2" for="mc_tmp">Start</label>
  191. <div class="col-sm-10">
  192. <div class="input-group temperature">
  193. <input id="mc_pp1" type="text" class="form-control target" aria-describedby="basic-addon1">
  194. <span class="input-group-addon" id="basic-addon2">%</span>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="form-group">
  199. <label class="control-label col-sm-2" for="mc_tmp">End</label>
  200. <div class="col-sm-10">
  201. <div class="input-group temperature">
  202. <input id="mc_pp2" type="text" class="form-control target" aria-describedby="basic-addon1">
  203. <span class="input-group-addon" id="basic-addon2">%</span>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="form-group">
  208. <label class="control-label col-sm-2" for="mc_tmp">Period</label>
  209. <div class="col-sm-10">
  210. <div class="input-group temperature">
  211. <input id="mc_ppt" type="text" class="form-control target" aria-describedby="basic-addon1">
  212. <span class="input-group-addon" id="basic-addon2">s</span>
  213. </div>
  214. </div>
  215. </div>
  216. </form>
  217. <div class="help">
  218. <a href="https://mecoffee.nl/mebarista/help/pressure/" target="_blank">Help</a>
  219. </div>
  220. </div>
  221. <div class="tab-pane" id="preinfusion">
  222. <form class="form-horizontal" role="form">
  223. <div class="form-group">
  224. <label class="control-label col-sm-2" for="mc_tmp">Preinfusion</label>
  225. <div class="col-sm-10">
  226. <input id="mc_pinbl" class="target" type="checkbox" class="form-control target" >
  227. </div>
  228. </div>
  229. <div class="form-group">
  230. <label class="control-label col-sm-2" for="mc_tmp">Pump time</label>
  231. <div class="col-sm-10">
  232. <div class="input-group temperature">
  233. <input class="slider target" id="mc_pistrt" type="text" data-slider-min="1" data-slider-max="5" data-slider-step="1" data-slider-value="0" >
  234. </div>
  235. </div>
  236. </div>
  237. <div class="form-group">
  238. <label class="control-label col-sm-2" for="mc_tmp">Close valve</label>
  239. <div class="col-sm-10">
  240. <input id="mc_pivlv" class="target" type="checkbox" class="form-control target" >
  241. </div>
  242. </div>
  243. <div class="form-group">
  244. <label class="control-label col-sm-2" for="mc_tmp">Pause time</label>
  245. <div class="col-sm-10">
  246. <div class="input-group temperature">
  247. <input class="slider target" id="mc_piprd" type="text" data-slider-min="1" data-slider-max="10" data-slider-step="1" data-slider-value="0" >
  248. </div>
  249. </div>
  250. </div>
  251. </form>
  252. </form>
  253. <div class="help">
  254. <a href="https://mecoffee.nl/mebarista/help/preinfusion/" target="_blank">Help</a>
  255. </div>
  256. </div>
  257. <div class="tab-pane" id="timer">
  258. <form class="form-horizontal" role="form">
  259. <div class="form-group">
  260. <label class="control-label col-sm-2" for="mc_tmp">Wakeup</label>
  261. <div class="col-sm-10">
  262. <input id="mc_tmrwnbl" class="target" type="checkbox" class="form-control target" >
  263. </div>
  264. </div>
  265. <div class="form-group">
  266. <label class="control-label col-sm-2" for="mc_tmp">At</label>
  267. <div class="col-sm-10">
  268. <div class="input-group temperature">
  269. <input id="mc_tmron" type="text" class="form-control input-small timepicker target" aria-describedby="basic-addon1">
  270. <span class="input-group-addon" id="basic-addon2"><i class="glyphicon glyphicon-time" aria-hidden="true"></i></span>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="form-group">
  275. <label class="control-label col-sm-2" for="mc_tmp">Shutdown</label>
  276. <div class="col-sm-10">
  277. <input id="mc_tmrsnbl" class="target" type="checkbox" class="form-control target" >
  278. </div>
  279. </div>
  280. <div class="form-group">
  281. <label class="control-label col-sm-2" for="mc_tmp">At</label>
  282. <div class="col-sm-10">
  283. <div class="input-group temperature">
  284. <input id="mc_tmroff" type="text" class="form-control input-small timepicker target" aria-describedby="basic-addon1">
  285. <span class="input-group-addon" id="basic-addon2"><i class="glyphicon glyphicon-time" aria-hidden="true"></i></span>
  286. </div>
  287. </div>
  288. </div>
  289. </form>
  290. <div class="help">
  291. <a href="https://mecoffee.nl/mebarista/help/timer/" target="_blank">Help</a>
  292. </div>
  293. </div>
  294. <div class="tab-pane" id="hardware">
  295. <form class="form-horizontal" role="form">
  296. <div class="form-group">
  297. <label class="control-label col-sm-2" for="mc_tmp">Installed a timer</label>
  298. <div class="col-sm-10">
  299. <input id="mc_tmrpwr" class="target" type="checkbox" class="form-control target" >
  300. </div>
  301. </div>
  302. </form>
  303. </div>
  304. <div class="tab-pane active" id="connect">
  305. <form class="form-horizontal" role="form">
  306. <div class="form-group">
  307. <label class="control-label col-sm-2" for="mc_tmp">Show</label>
  308. <div class="col-sm-10">
  309. <select id="device" class="selectpicker">
  310. <optgroup id="devices" label="Bluetooth devices">
  311. <option id="devices_msg" value="none">Not available: use as a Google Chrome/App extension to access Bluetooth devices</option>
  312. </optgroup>
  313. <optgroup label="Demos">
  314. <option value="share_56273d393cab0" selected>Silvia meCoffee vs Factory - warmup</option>
  315. <!-- option value="share_55fc39ec76b7b">Silvia meCoffee vs Factory - espresso shot</option>
  316. <option value="share_55fc667737cc9">Vibiemme Domobar meCoffee - warmup</option !-->
  317. </optgroup>
  318. </select>
  319. </div>
  320. </div>
  321. <div class="form-group">
  322. <label class="control-label col-sm-2" for="mc_tmp">Speed</label>
  323. <div class="col-sm-10">
  324. <input class="slider" id="demo_speed" type="text" data-slider-min="1" data-slider-max="50" data-slider-step="1" data-slider-value="5" >
  325. </div>
  326. </div>
  327. <p style="height: 2em;"></p>
  328. <div class="form-group">
  329. <label class="control-label col-sm-2" for="mc_tmp"></label>
  330. <div class="col-sm-10">
  331. <button id="start" class="btn btn-primary">
  332. <span id="start_icon" class="glyphicon glyphicon-play" aria-hidden="true"></span>
  333. &nbsp;&nbsp;
  334. <span id="start_label">Start</span>
  335. </button>
  336. </div>
  337. </div>
  338. </form>
  339. </div>
  340. <div class="tab-pane" id="about">
  341. <form class="form-horizontal" role="form">
  342. <div class="form-group">
  343. <label class="control-label col-sm-2" for="mc_tmp">Website</label>
  344. <div class="col-sm-10">
  345. <a href="https://mecoffee.nl" target="_blank">mecoffee.nl</a>
  346. </div>
  347. </div>
  348. <div class="form-group">
  349. <label class="control-label col-sm-2" for="mc_tmp"></label>
  350. <div class="col-sm-10">
  351. <button id="share" class="btn btn-primary">
  352. <span id="share_icon" class="glyphicon glyphicon-share" aria-hidden="true"></span>
  353. &nbsp;&nbsp;
  354. <span id="start_label">Share</span>
  355. </button>
  356. <span id="share_result" style="margin-left: 2em;">...</span>
  357. </div>
  358. </div>
  359. <div class="form-group">
  360. <label class="control-label col-sm-2" for="mc_tmp">Version</label>
  361. <div class="col-sm-10">
  362. 0.2.1<br/>Support for 0.1 second preinfusion timing with new firmware<br/>
  363. 0.2.0<br/>Support for new firmware : updated preinfusion scale to milliseconds.<br/>
  364. 0.1.8<br/>Fixed connectivity, shutdown timer, shot timer<br/>
  365. 0.1.7<br/>
  366. Added Boiler Gauge, Shot Timer and remote loading of meBarista logs<br/>
  367. 0.1.6<br/>
  368. Added the right scale to the steam control<br/>
  369. 0.1.5<br/>
  370. Added steam control, cleaned up<br/>
  371. 0.1.4<br/>
  372. Fixed pressure controls again<br/>
  373. 0.1.3<br/>
  374. Added about-tab</br>
  375. <br/>
  376. 0.1.2<br/>
  377. Fixed preinfusion and pressure controls<br/>
  378. <br/>
  379. 0.1.1<br/>
  380. Initial public version<br/>
  381. </div>
  382. </div>
  383. </form>
  384. </div>
  385. </div>
  386. </div>
  387. <script src="lib/jquery-1.11.2.min.js"></script>
  388. <script src="lib/bootstrap/js/bootstrap.min.js"></script>
  389. <script src="lib/bootstrap-switch.js"></script>
  390. <script src="lib/bootstrap-slider.min.js"></script>
  391. <script src="lib/bootstrap-timepicker.js"></script>
  392. <script src="lib/bootstrap-select.js"></script>
  393. <script src="lib/d3.v3.min.js"></script>
  394. <script src="lib/d3-gauge.js"></script>
  395. <script src="graph.js"></script>
  396. <script src="mecoffee.js"></script>
  397. </body>
  398. </html>