} ?> <div class="last_measure_view"><?php echo gettext("Last measurement on"); ?> <b><?php echo IntlDateFormatter::formatObject($time_stamp, array(IntlDateFormatter::SHORT, IntlDateFormatter::MEDIUM), $_SESSION["locale"]); ?> </b> <?php if ($_SESSION["showcpulast"] == "True") { echo "<br>"; $cpuload = new CPULoad(); $cpuload->get_load(); $CPULOAD = round($cpuload->load["cpu"], 1); echo gettext("CPU utilization") . ": <b>" . $CPULOAD . "% / " . get_cputemp() . $temp_unit_short; "</b>"; } ?> </div> <br> <div class="clear"></div> <!-- ---------------------------------------------------------------------------------------------------------------------------------- // Session in Array Speichern (sensoren)(plotter farben) etc. ######################################################################### //--------------------------------------------------------------------------------------------------------------------------------- --> <?php for ($i = 0; $i <= 7; $i++) { $color_ch[] = $_SESSION["color_ch" . $i]; $temp_min[] = $_SESSION["temp_min" . $i];
$pit_file = $_SESSION["pitmaster"] . ''; if (file_exists($pit_file)) { $currentpit = file_get_contents($_SESSION["pitmaster"]); $pits = explode(";", $currentpit); $output['pit']['timestamp'] = DateTime::createFromFormat($log_dateformat, $pits[0])->format(DateTime::ATOM); $output['pit']['setpoint'] = floatval($pits[1]); $output['pit']['current'] = floatval($pits[2]); $output['pit']['control_out'] = floatval($pits[3]); } } else { $output['pit']['enabled'] = false; } $cpuload = new CPULoad(); $cpuload->get_load(); $output['cpu_load'] = $cpuload->load["cpu"]; $output['cpu_temp'] = get_cputemp(); $output['channel'] = array(); $currenttemp = file_get_contents($_SESSION["current_temp"]); while (preg_match("/TEMPLOG/i", $currenttemp) != "1") { $currenttemp = file_get_contents($_SESSION["current_temp"]); } $temp = explode(";", $currenttemp); $output['timestamp'] = DateTime::createFromFormat($log_dateformat, $temp[0])->format(DateTime::ATOM); for ($i = 0; $i <= 7; $i++) { $output['channel'][strval($i)] = array(); $output['channel'][strval($i)]['temp'] = floatval($temp[$i + 1]); $output['channel'][strval($i)]['color'] = $_SESSION["color_ch" . $i]; $output['channel'][strval($i)]['state'] = $temp[$i + 9]; $output['channel'][strval($i)]['temp_min'] = floatval($_SESSION["temp_min" . $i]); $output['channel'][strval($i)]['temp_max'] = floatval($_SESSION["temp_max" . $i]); $output['channel'][strval($i)]['name'] = $_SESSION["ch_name" . $i];