auto_DI.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  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_DI()
  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_DI()
  173. });
  174. function loading_DI(){
  175. var ditid = '{{ditid}}';
  176. $.get('/loading/DI'+ditid, '', function (resText) {
  177. var a=[resText.input_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_00").text(resText.input_UltraSonic);
  189. }, 'json');
  190. };
  191. </script>
  192. <!-- 宣告我們要套用模板 -->
  193. {% endblock %}
  194. {% block style %}
  195. <style>
  196. .D_status_css {
  197. font-weight: bold;
  198. text-align: center;
  199. }
  200. .input-text {
  201. height: 25px;
  202. width: 40px;
  203. text-align: center;
  204. margin-left: 2px;
  205. margin-right: 5px;
  206. }
  207. </style>
  208. {% endblock %}
  209. {% block main %}
  210. <div class="album py-5 bg-light">
  211. <div class="container">
  212. <div class="row row-cols-1 row-cols-sm-1 row-cols-md-1 g-3">
  213. <div class="col">
  214. <div class="card shadow-sm">
  215. <div class="card-body">
  216. <div class="d-flex justify-content-between align-items-center">
  217. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  218. <div style="text-align: center;">
  219. <tr>
  220. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  221. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  222. <tr>
  223. <td>
  224. <div id="DI1" tabindex="0" class="DI1_position" role="button" style="text-align: center;">
  225. <span id="DI1_status" class="D_status_css">DI1 status</span>
  226. </div>
  227. </td>
  228. </tr>
  229. </table>
  230. </td>
  231. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  232. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  233. <tr>
  234. <td>
  235. <div id="D1" tabindex="0" class="D1_position" role="button">
  236. <span id="D1_status" class="D_status_css">D1 status</span>
  237. <!-- D1 狀態點點-->
  238. </div>
  239. </td>
  240. </tr>
  241. </table>
  242. </td>
  243. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  244. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  245. <tr>
  246. <td>
  247. <div id="D2" tabindex="0" class="D2_position" role="button">
  248. <span id="D2_status" class="D_status_css">D2 status</span>
  249. </div>
  250. </td>
  251. </tr>
  252. </table>
  253. </td>
  254. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  255. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  256. <tr>
  257. <td>
  258. <div id="D3" tabindex="0" class="D3_position" role="button">
  259. <span id="D3_status" class="D_status_css">D3 status</span>
  260. </div>
  261. </td>
  262. </tr>
  263. </table>
  264. </td>
  265. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  266. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  267. <tr>
  268. <td>
  269. <div id="D4" tabindex="0" class="D4_position" role="button">
  270. <span id="D4_status" class="D_status_css">D4 status</span>
  271. </div>
  272. </td>
  273. </tr>
  274. </table>
  275. </td>
  276. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  277. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  278. <tr>
  279. <td>
  280. <div id="D5" tabindex="0" class="D5_position" role="button">
  281. <span id="D5_status" class="D_status_css">D5 status</span>
  282. </div>
  283. </td>
  284. </tr>
  285. </table>
  286. </td>
  287. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  288. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  289. <tr>
  290. <td>
  291. <div id="D6" tabindex="0" class="D6_position" role="button">
  292. <span id="D6_status" class="D_status_css">D6 status</span>
  293. </div>
  294. </td>
  295. </tr>
  296. </table>
  297. </td>
  298. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  299. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  300. <tr>
  301. <td>
  302. <div id="DO1" tabindex="0" class="DO1_position" role="button">
  303. <span id="DO1_status" class="D_status_css">DO1 status</span>
  304. </div>
  305. </td>
  306. </tr>
  307. </table>
  308. </td>
  309. </tr>
  310. <tr>
  311. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  312. <div id="DI1_status_dot" style=" height: 20px; background-color: black;"></div>
  313. </td>
  314. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  315. <div id="D1_status_dot" style=" height: 20px; background-color: black;"></div>
  316. </td>
  317. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  318. <div id="D2_status_dot" style=" height: 20px; background-color: black;"></div>
  319. </td>
  320. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  321. <div id="D3_status_dot" style=" height: 20px; background-color: black;"></div>
  322. </td>
  323. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  324. <div id="D4_status_dot" style="height: 20px; background-color: black;"></div>
  325. </td>
  326. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  327. <div id="D5_status_dot" style="height: 20px; background-color: black;"></div>
  328. </td>
  329. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  330. <div id="D6_status_dot" style="height: 20px; background-color: black;"></div>
  331. </td>
  332. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  333. <div id="DO1_status_dot" style="height: 20px; background-color: black;"></div>
  334. </td>
  335. </tr>
  336. <tr>
  337. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  338. 入料儲豆槽
  339. </td>
  340. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  341. 乾燥槽
  342. </td>
  343. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  344. 乾燥槽
  345. </td>
  346. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  347. 乾燥槽
  348. </td>
  349. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  350. 乾燥槽
  351. </td>
  352. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  353. 乾燥槽
  354. </td>
  355. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  356. 乾燥槽
  357. </td>
  358. <td style="border: lightsteelblue 1px solid;" width="12.5%">
  359. 出料儲豆槽
  360. </td>
  361. </tr>
  362. <tr>
  363. <td style="border: lightsteelblue 1px solid;">
  364. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  365. <tr>
  366. <td>
  367. <div id="DI2" tabindex="0" class="DI2_position" role="button">
  368. <span id="DI2_status" class="D_status_css">DI2 status</span>
  369. <!-- D1 狀態點點-->
  370. </div>
  371. </td>
  372. </tr>
  373. </table>
  374. </td>
  375. <td style="border: lightsteelblue 1px solid;">
  376. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  377. <tr>
  378. <td>
  379. <div id="D7" tabindex="0" class="D7_position" role="button">
  380. <span id="D7_status" class="D_status_css">D7 status</span>
  381. </div>
  382. </td>
  383. </tr>
  384. </table>
  385. </td>
  386. <td style="border: lightsteelblue 1px solid;">
  387. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  388. <tr>
  389. <td>
  390. <div id="D8" tabindex="0" class="D8_position" role="button">
  391. <span id="D8_status" class="D_status_css">D8 status</span>
  392. </div>
  393. </td>
  394. </tr>
  395. </table>
  396. </td>
  397. <td style="border: lightsteelblue 1px solid;">
  398. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  399. <tr>
  400. <td>
  401. <div id="D9" tabindex="0" class="D9_position" role="button">
  402. <span id="D9_status" class="D_status_css">D9 status</span>
  403. </div>
  404. </td>
  405. </tr>
  406. </table>
  407. </td>
  408. <td style="border: lightsteelblue 1px solid;">
  409. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  410. <tr>
  411. <td>
  412. <div id="D10" tabindex="0" class="D10_position" role="button">
  413. <span id="D10_status" class="D_status_css">D10 status</span>
  414. </div>
  415. </td>
  416. </tr>
  417. </table>
  418. </td>
  419. <td style="border: lightsteelblue 1px solid;">
  420. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  421. <tr>
  422. <td>
  423. <div id="D11" tabindex="0" class="D11_position" role="button">
  424. <span id="D11_status" class="D_status_css">D11 status</span>
  425. </div>
  426. </td>
  427. </tr>
  428. </table>
  429. </td>
  430. <td style="border: lightsteelblue 1px solid;">
  431. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  432. <tr>
  433. <td>
  434. <div id="D12" tabindex="0" class="D12_position" role="button">
  435. <span id="D12_status" class="D_status_css">D12 status</span>
  436. </div>
  437. </td>
  438. </tr>
  439. </table>
  440. </td>
  441. <td style="border: lightsteelblue 1px solid;">
  442. <table style="border: 0px plum solid; margin-right: auto; margin-left: auto; text-align: center;" cellpadding="5">
  443. <tr>
  444. <td>
  445. <div id="DO2" tabindex="0" class="DO2_position" role="button">
  446. <span id="DO2_status" class="D_status_css">DO2 status</span>
  447. </div>
  448. </td>
  449. </tr>
  450. </table>
  451. </td>
  452. </tr>
  453. <tr>
  454. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  455. <div id="DI2_status_dot" style=" height: 20px; background-color: black;"></div>
  456. </td>
  457. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  458. <div id="D7_status_dot" style=" height: 20px; background-color: black;"></div>
  459. </td>
  460. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  461. <div id="D8_status_dot" style=" height: 20px; background-color: black;"></div>
  462. </td>
  463. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  464. <div id="D9_status_dot" style=" height: 20px; background-color: black;"></div>
  465. </td>
  466. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  467. <div id="D10_status_dot" style="height: 20px; background-color: black;"></div>
  468. </td>
  469. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  470. <div id="D11_status_dot" style="height: 20px; background-color: black;"></div>
  471. </td>
  472. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  473. <div id="D12_status_dot" style="height: 20px; background-color: black;"></div>
  474. </td>
  475. <td width="12.5%" style="border: lightsteelblue 1px solid;">
  476. <div id="DO2_status_dot" style="height: 20px; background-color: black;"></div>
  477. </td>
  478. </tr>
  479. </table>
  480. </div>
  481. <!-- 發酵貨櫃 致動器狀態 感測器數值 -->
  482. <div style="text-align: center;">
  483. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  484. <tr>
  485. <td width="100%" style="border: lightsteelblue 1px solid;">
  486. 入料<br>真空吸料機
  487. </td>
  488. </tr>
  489. <tr>
  490. <td>
  491. <div id="actuator_0_status" style="margin:0 auto; height: 20px; background-color: lightgray;"></div>
  492. </td>
  493. </tr>
  494. </table>
  495. <table style="border: 3px lightsteelblue solid; margin-right: auto; margin-left: auto; text-align: center; margin-top: 5px;" cellpadding="5" border="1">
  496. <tr>
  497. <td style="border: lightsteelblue 1px solid;">
  498. 生豆<br>高度
  499. </td>
  500. </tr>
  501. <tr>
  502. <td style="border: lightsteelblue 1px solid;">
  503. <span id="sensor_00"></span>
  504. </td>
  505. </tr>
  506. </table>
  507. <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">
  508. <tr>
  509. <td style="border: lightsteelblue 1px solid;">
  510. 桶槽<br>
  511. 參數設定
  512. </td>
  513. </tr>
  514. <tr>
  515. <td style="padding: 10px; text-align: left; vertical-align: text-top;">
  516. 生豆高度
  517. <input name="Ferment_Tank_bean_height" class="input-text" type="text" value="5">公分<br>
  518. 吸放料時間
  519. <input name="Ferment_Tank_vacuumON_time" class="input-text" type="text" value="5">秒<br>
  520. </td>
  521. </tr>
  522. </table>
  523. </div>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. </div>
  530. </div>
  531. {% endblock %}