www-thermferm/liveview.php

changeset 118
7c8f35a43cec
parent 117
7119ea8a5225
child 121
03306c3bfd60
equal deleted inserted replaced
117:7119ea8a5225 118:7c8f35a43cec
71 $outstr .= ' $("#fermentor_setup_'.$unr.'").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL; 71 $outstr .= ' $("#fermentor_setup_'.$unr.'").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL;
72 $outstr .= ' $("#fermentor_history_'.$unr.'").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL; 72 $outstr .= ' $("#fermentor_history_'.$unr.'").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL;
73 $outstr .= ' });'.PHP_EOL; 73 $outstr .= ' });'.PHP_EOL;
74 $outstr .= ' </script>'.PHP_EOL; 74 $outstr .= ' </script>'.PHP_EOL;
75 $outstr .= ' <div id="fermentor">'.PHP_EOL; 75 $outstr .= ' <div id="fermentor">'.PHP_EOL;
76 $outstr .= ' <div id="fermentor_pict">'.PHP_EOL;
77 $outstr .= ' <img src="images/Fermenter_60l.gif">'.PHP_EOL;
78 $outstr .= ' </div>'.PHP_EOL;
76 79
77 $set_temperature = "N/A"; 80 $set_temperature = "N/A";
78 $air_temperature = "N/A"; 81 $air_temperature = "N/A";
79 $beer_temperature = "N/A"; 82 $beer_temperature = "N/A";
80 83
81 foreach($arr as $l) { 84 foreach($arr as $l) {
82 $vals = explode(",", $l); 85 $vals = explode(",", $l);
83 if (strcmp($vals[0], "NAME") == 0) {
84 /*
85 * The name is allways first, so when we have it
86 * emit the formatting.
87 */
88 $outstr .= ' <div id="fermentor_head">'.PHP_EOL;
89 $outstr .= ' ' . $vals[1] .PHP_EOL;
90 $outstr .= ' </div>'.PHP_EOL;
91 $outstr .= ' <div id="fermentor_pict">'.PHP_EOL;
92 $outstr .= ' <img src="images/Fermenter_60l.gif">'.PHP_EOL;
93 $outstr .= ' </div>'.PHP_EOL;
94 }
95 if (strcmp($vals[0], "MODE") == 0) { 86 if (strcmp($vals[0], "MODE") == 0) {
96 $mode = $vals[1]; 87 $mode = $vals[1];
97 } 88 }
98 if (strcmp($vals[0], "AIR_STATE") == 0) { 89 if (strcmp($vals[0], "AIR_STATE") == 0) {
99 $air_state = $vals[1]; 90 $air_state = $vals[1];

mercurial