auto_DO.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <!-- 宣告我們要套用模板 -->
  2. {% extends "base.html" %}
  3. {% block title %}{{ title }}{% endblock %}
  4. {% block script %}
  5. <script language="JavaScript">
  6. function myrefresh()
  7. {
  8. $.get('/dry_auto_data', function (resText) {
  9. var DI = [resText.DI1,resText.DI2];
  10. var D=[resText.D1,resText.D2,resText.D3,resText.D4,resText.D5,resText.D6,resText.D7,resText.D8,resText.D9,resText.D10,resText.D11,resText.D12];
  11. var DO = [resText.DO1,resText.DO2];
  12. for (let i=0; i<2; i++) {
  13. if (DI[i] == 'DI_InputtingBean') {
  14. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  15. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 入豆中")
  16. } else if (DI[i] == 'DI_Waiting') {
  17. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  18. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 空桶等待")
  19. } else if (DI[i] == 'DI_OutputtingBean') {
  20. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  21. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 可出豆")
  22. } else if (DI[i] == 'DI_Stand_by') {
  23. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  24. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 待命")
  25. } else {
  26. console.log('pass')
  27. }
  28. }
  29. for (let i=0; i<12; i++) {
  30. if (D[i] == 'D_InputtingBean') {
  31. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  32. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆中")
  33. } else if (D[i] == 'D_InputtingBean_Pause') {
  34. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  35. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆暫停")
  36. } else if (D[i] == 'D_InputtingBean_Finish') {
  37. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  38. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆完成")
  39. } else if (D[i] == 'D_Waiting') {
  40. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  41. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 空桶等待")
  42. } else if (D[i] == 'D_InputtingWater') {
  43. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "DeepSkyBlue")
  44. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 外桶入水中")
  45. } else if (D[i] == 'D_Cleaning') {
  46. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "plum")
  47. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 清洗中")
  48. } else if (D[i] == 'D_Drying') {
  49. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "Peru")
  50. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 乾燥中")
  51. } else if (D[i] == 'D_OutputtingBean') {
  52. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  53. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 可出豆")
  54. } else if (D[i] == 'D_Warning') {
  55. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "crimson")
  56. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 發生錯誤")
  57. $("#D"+parseInt(i+1)+"_status").css("color", "crimson")
  58. } else if (D[i] == 'D_Stand_by') {
  59. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  60. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 待命")
  61. } else {
  62. console.log('pass')
  63. }
  64. }
  65. for (let i=0; i<2; i++) {
  66. if (DO[i] == 'DO_InputtingBean') {
  67. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  68. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 入豆中")
  69. } else if (DO[i] == 'DO_Waiting') {
  70. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  71. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 空桶等待")
  72. } else if (DO[i] == 'DO_OutputtingBean') {
  73. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  74. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 可出豆")
  75. } else if (DO[i] == 'DO_Stand_by') {
  76. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  77. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 待命")
  78. } else {
  79. console.log('pass')
  80. }
  81. }
  82. },'json');
  83. loading_DO()
  84. }
  85. setInterval('myrefresh()',1000);
  86. </script>
  87. <script>
  88. var status = '{{status}}';
  89. var username = '{{username}}';
  90. $(document).ready(function(){
  91. $("#coffee_title_pc").text('乾燥出料自動化');
  92. $("#coffee_title_phone").text('乾燥出料自動化');
  93. $('#navbarDropdown_user_pc').text(username);
  94. $('#navbarDropdown_user_phone').text(username);
  95. // 桶槽入料顯示
  96. dry_input_status_N = ['{{DI1}}', '{{DI2}}']
  97. for (let i=0; i<dry_input_status_N.length; i++) {
  98. if (dry_input_status_N[i] == 'DI_InputtingBean') {
  99. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  100. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 入豆中")
  101. } else if (dry_input_status_N[i] == 'DI_Waiting') {
  102. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  103. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 空桶等待")
  104. } else if (dry_input_status_N[i] == 'DI_OutputtingBean') {
  105. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  106. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 可出豆")
  107. } else if (dry_input_status_N[i] == 'DI_Stand_by') {
  108. $("#DI"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  109. $("#DI"+parseInt(i+1)+"_status").text("DI" + parseInt(i+1) + " 待命")
  110. } else {
  111. console.log('pass')
  112. }
  113. }
  114. // 桶槽狀態顯示
  115. dry_tank_status_N = ['{{D1}}', '{{D2}}', '{{D3}}', '{{D4}}', '{{D5}}', '{{D6}}',
  116. '{{D7}}', '{{D8}}', '{{D9}}', '{{D10}}', '{{D11}}', '{{D12}}']
  117. for (let i=0; i<dry_tank_status_N.length; i++) {
  118. if (dry_tank_status_N[i] == 'D_InputtingBean') {
  119. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  120. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆中")
  121. } else if (dry_tank_status_N[i] == 'D_InputtingBean_Pause') {
  122. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  123. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆暫停")
  124. } else if (dry_tank_status_N[i] == 'D_InputtingBean_Finish') {
  125. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  126. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 入豆完成")
  127. } else if (dry_tank_status_N[i] == 'D_InputtingWater') {
  128. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "DeepSkyBlue")
  129. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + "外桶入水中")
  130. } else if (dry_tank_status_N[i] == 'D_Waiting') {
  131. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  132. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 空桶等待")
  133. } else if (dry_tank_status_N[i] == 'D_Cleaning') {
  134. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "plum")
  135. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 清洗中")
  136. } else if (dry_tank_status_N[i] == 'D_Drying') {
  137. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "Peru")
  138. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 乾燥中")
  139. } else if (dry_tank_status_N[i] == 'D_OutputtingBean') {
  140. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  141. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 可出豆")
  142. } else if (dry_tank_status_N[i] == 'D_Warning') {
  143. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "crimson")
  144. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 發生錯誤")
  145. $("#D"+parseInt(i+1)+"_status").css("color", "crimson")
  146. } else if (dry_input_status_N[i] == 'D_Stand_by') {
  147. $("#D"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  148. $("#D"+parseInt(i+1)+"_status").text("D" + parseInt(i+1) + " 待命")
  149. } else {
  150. console.log('pass')
  151. }
  152. }
  153. // 桶槽出料顯示
  154. dry_output_status_N = ['{{DO1}}', '{{DO2}}']
  155. for (let i=0; i<dry_output_status_N.length; i++) {
  156. if (dry_output_status_N[i] == 'DO_InputtingBean') {
  157. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  158. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 入豆中")
  159. } else if (dry_output_status_N[i] == 'DO_Waiting') {
  160. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "lightgray")
  161. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 空桶等待")
  162. } else if (dry_output_status_N[i] == 'DO_OutputtingBean') {
  163. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "MediumSeaGreen")
  164. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 可出豆")
  165. } else if (dry_output_status_N[i] == 'DO_Stand_by') {
  166. $("#DO"+parseInt(i+1)+"_status_dot").css("background-color", "HotPink")
  167. $("#DO"+parseInt(i+1)+"_status").text("DO" + parseInt(i+1) + " 待命")
  168. } else {
  169. console.log('pass')
  170. }
  171. }
  172. loading_DO()
  173. });
  174. function loading_DO(){
  175. var dotid = '{{dotid}}';
  176. $.get('/loading/DO'+dotid, '', function (resText) {
  177. var a=[resText.output_vacuum]
  178. for (let i=0; i<1; i++) {
  179. if (a[i] == 1) {
  180. $("#actuator_"+parseInt(i)+"_status").css("background-color", "MediumSeaGreen")
  181. } else if (a[i] == 0) {
  182. $("#actuator_"+parseInt(i)+"_status").css("background-color", "lightgray")
  183. }
  184. else {
  185. $("#actuator_"+parseInt(i)+"_status").css("background-color", "crimson")
  186. }
  187. }
  188. $("#sensor_99").text(resText.output_UltraSonic);
  189. }, 'json');
  190. };
  191. </script>
  192. {% endblock %}
  193. {% block style %}
  194. <style>
  195. .D_status_css {
  196. font-weight: bold;
  197. text-align: center;
  198. }
  199. .input-text {
  200. height: 25px;
  201. width: 40px;
  202. text-align: center;
  203. margin-left: 2px;
  204. margin-right: 5px;
  205. }
  206. </style>
  207. {% endblock %}
  208. {% block main %}
  209. <div class="album py-5 bg-light">
  210. <div class="container">
  211. <div class="row row-cols-1 row-cols-sm-1 row-cols-md-1 g-3">
  212. <div class="col">
  213. <div class="card shadow-sm">
  214. <div class="card-body">
  215. <div class="d-flex justify-content-between align-items-center">
  216. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  217. <div style="text-align: center;">
  218. <tr>
  219. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  220. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  221. <tr>
  222. <td>
  223. <div id="DI1" tabindex="0" class="DI1_position" role="button" style="text-align: center;">
  224. <span id="DI1_status" class="D_status_css">DI1 status</span>
  225. </div>
  226. </td>
  227. </tr>
  228. </table>
  229. </td>
  230. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  231. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  232. <tr>
  233. <td>
  234. <div id="D1" tabindex="0" class="D1_position" role="button">
  235. <span id="D1_status" class="D_status_css">D1 status</span>
  236. <!-- D1 狀態點點-->
  237. </div>
  238. </td>
  239. </tr>
  240. </table>
  241. </td>
  242. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  243. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  244. <tr>
  245. <td>
  246. <div id="D2" tabindex="0" class="D2_position" role="button">
  247. <span id="D2_status" class="D_status_css">D2 status</span>
  248. </div>
  249. </td>
  250. </tr>
  251. </table>
  252. </td>
  253. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  254. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  255. <tr>
  256. <td>
  257. <div id="D3" tabindex="0" class="D3_position" role="button">
  258. <span id="D3_status" class="D_status_css">D3 status</span>
  259. </div>
  260. </td>
  261. </tr>
  262. </table>
  263. </td>
  264. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  265. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  266. <tr>
  267. <td>
  268. <div id="D4" tabindex="0" class="D4_position" role="button">
  269. <span id="D4_status" class="D_status_css">D4 status</span>
  270. </div>
  271. </td>
  272. </tr>
  273. </table>
  274. </td>
  275. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  276. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  277. <tr>
  278. <td>
  279. <div id="D5" tabindex="0" class="D5_position" role="button">
  280. <span id="D5_status" class="D_status_css">D5 status</span>
  281. </div>
  282. </td>
  283. </tr>
  284. </table>
  285. </td>
  286. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  287. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  288. <tr>
  289. <td>
  290. <div id="D6" tabindex="0" class="D6_position" role="button">
  291. <span id="D6_status" class="D_status_css">D6 status</span>
  292. </div>
  293. </td>
  294. </tr>
  295. </table>
  296. </td>
  297. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  298. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  299. <tr>
  300. <td>
  301. <div id="DO1" tabindex="0" class="DO1_position" role="button">
  302. <span id="DO1_status" class="D_status_css">DO1 status</span>
  303. </div>
  304. </td>
  305. </tr>
  306. </table>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  311. <div id="DI1_status_dot" style=" height: 20px; background-color: black;"></div>
  312. </td>
  313. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  314. <div id="D1_status_dot" style=" height: 20px; background-color: black;"></div>
  315. </td>
  316. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  317. <div id="D2_status_dot" style=" height: 20px; background-color: black;"></div>
  318. </td>
  319. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  320. <div id="D3_status_dot" style=" height: 20px; background-color: black;"></div>
  321. </td>
  322. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  323. <div id="D4_status_dot" style="height: 20px; background-color: black;"></div>
  324. </td>
  325. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  326. <div id="D5_status_dot" style="height: 20px; background-color: black;"></div>
  327. </td>
  328. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  329. <div id="D6_status_dot" style="height: 20px; background-color: black;"></div>
  330. </td>
  331. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  332. <div id="DO1_status_dot" style="height: 20px; background-color: black;"></div>
  333. </td>
  334. </tr>
  335. <tr>
  336. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  337. 入料儲豆槽
  338. </td>
  339. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  340. 乾燥槽
  341. </td>
  342. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  343. 乾燥槽
  344. </td>
  345. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  346. 乾燥槽
  347. </td>
  348. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  349. 乾燥槽
  350. </td>
  351. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  352. 乾燥槽
  353. </td>
  354. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  355. 乾燥槽
  356. </td>
  357. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  358. 出料儲豆槽
  359. </td>
  360. </tr>
  361. <tr>
  362. <td style="border: lightsteelblue 1px solid;">
  363. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  364. <tr>
  365. <td>
  366. <div id="DI2" tabindex="0" class="DI2_position" role="button">
  367. <span id="DI2_status" class="D_status_css">DI2 status</span>
  368. <!-- D1 狀態點點-->
  369. </div>
  370. </td>
  371. </tr>
  372. </table>
  373. </td>
  374. <td style="border: lightsteelblue 1px solid;">
  375. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  376. <tr>
  377. <td>
  378. <div id="D7" tabindex="0" class="D7_position" role="button">
  379. <span id="D7_status" class="D_status_css">D7 status</span>
  380. </div>
  381. </td>
  382. </tr>
  383. </table>
  384. </td>
  385. <td style="border: lightsteelblue 1px solid;">
  386. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  387. <tr>
  388. <td>
  389. <div id="D8" tabindex="0" class="D8_position" role="button">
  390. <span id="D8_status" class="D_status_css">D8 status</span>
  391. </div>
  392. </td>
  393. </tr>
  394. </table>
  395. </td>
  396. <td style="border: lightsteelblue 1px solid;">
  397. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  398. <tr>
  399. <td>
  400. <div id="D9" tabindex="0" class="D9_position" role="button">
  401. <span id="D9_status" class="D_status_css">D9 status</span>
  402. </div>
  403. </td>
  404. </tr>
  405. </table>
  406. </td>
  407. <td style="border: lightsteelblue 1px solid;">
  408. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  409. <tr>
  410. <td>
  411. <div id="D10" tabindex="0" class="D10_position" role="button">
  412. <span id="D10_status" class="D_status_css">D10 status</span>
  413. </div>
  414. </td>
  415. </tr>
  416. </table>
  417. </td>
  418. <td style="border: lightsteelblue 1px solid;">
  419. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  420. <tr>
  421. <td>
  422. <div id="D11" tabindex="0" class="D11_position" role="button">
  423. <span id="D11_status" class="D_status_css">D11 status</span>
  424. </div>
  425. </td>
  426. </tr>
  427. </table>
  428. </td>
  429. <td style="border: lightsteelblue 1px solid;">
  430. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  431. <tr>
  432. <td>
  433. <div id="D12" tabindex="0" class="D12_position" role="button">
  434. <span id="D12_status" class="D_status_css">D12 status</span>
  435. </div>
  436. </td>
  437. </tr>
  438. </table>
  439. </td>
  440. <td style="border: lightsteelblue 1px solid;">
  441. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  442. <tr>
  443. <td>
  444. <div id="DO2" tabindex="0" class="DO2_position" role="button">
  445. <span id="DO2_status" class="D_status_css">DO2 status</span>
  446. </div>
  447. </td>
  448. </tr>
  449. </table>
  450. </td>
  451. </tr>
  452. <tr>
  453. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  454. <div id="DI2_status_dot" style=" height: 20px; background-color: black;"></div>
  455. </td>
  456. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  457. <div id="D7_status_dot" style=" height: 20px; background-color: black;"></div>
  458. </td>
  459. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  460. <div id="D8_status_dot" style=" height: 20px; background-color: black;"></div>
  461. </td>
  462. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  463. <div id="D9_status_dot" style=" height: 20px; background-color: black;"></div>
  464. </td>
  465. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  466. <div id="D10_status_dot" style="height: 20px; background-color: black;"></div>
  467. </td>
  468. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  469. <div id="D11_status_dot" style="height: 20px; background-color: black;"></div>
  470. </td>
  471. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  472. <div id="D12_status_dot" style="height: 20px; background-color: black;"></div>
  473. </td>
  474. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  475. <div id="DO2_status_dot" style="height: 20px; background-color: black;"></div>
  476. </td>
  477. </tr>
  478. </table>
  479. </div>
  480. <!-- 發酵貨櫃 致動器狀態 感測器數值 -->
  481. <div style="text-align: center;">
  482. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  483. <tr>
  484. <td width="100%" style="border: lightsteelblue 1px solid;">
  485. 出料<br>真空吸料機
  486. </td>
  487. </tr>
  488. <tr>
  489. <td>
  490. <div id="actuator_0_status" style="margin:0 auto; height: 20px; background-color: lightgray;"></div>
  491. </td>
  492. </tr>
  493. </table>
  494. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  495. <tr>
  496. <td style="border: lightsteelblue 1px solid;">
  497. 生豆<br>高度
  498. </td>
  499. </tr>
  500. <tr>
  501. <td>
  502. <span id="sensor_99"></span>
  503. </td>
  504. </tr>
  505. </table>
  506. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px; line-height: 28px;" cellpadding="5" border="1">
  507. <tr>
  508. <td style="border: lightsteelblue 1px solid;">
  509. 桶槽<br>
  510. 參數設定
  511. </td>
  512. </tr>
  513. <tr>
  514. <td style="padding: 10px; text-align: left; vertical-align: text-top;">
  515. 生豆高度
  516. <input name="Ferment_Tank_bean_height" class="input-text" type="text" value="5">公分<br>
  517. 吸放料時間
  518. <input name="Ferment_Tank_vacuumON_time" class="input-text" type="text" value="5">秒<br>
  519. </td>
  520. </tr>
  521. </table>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. </div>
  530. {% endblock %}