Example #1
0
 / <?php 
            printf('%.1f%s', $pit_set, $temp_unit_short);
            ?>
</div>
						<?php 
        }
        ?>
					</div>
				<?php 
    }
}
//-------------------------------------------------------------------------------------------------------------------------------------
// Plot erzeugen ######################################################################################################################
//-------------------------------------------------------------------------------------------------------------------------------------
if ($_SESSION["plot_start"] == "True") {
    $plot_setting = getPlotConfig($plot, $_SESSION['temp_unit']);
    if (is_dir("/var/www/tmp")) {
        $message .= "Verzeichnis 'tmp' vorhanden! \n";
        $plotdateiname = '/var/www/tmp/temperaturkurve.png';
        if (file_exists("" . $plotdateiname . "")) {
            $timestamp = filemtime($plotdateiname);
            $message .= "Aktueller Timestamp: \"" . time() . "\". \n";
            $message .= "Timestamp letzte Ă„nderung der " . $plotdateiname . ":\"" . $timestamp . "\". \n";
        } else {
            $timestamp = "0";
        }
        if (time() - $timestamp >= 9) {
            if (file_exists("/var/www/tmp/temperaturkurve_view.png") and filesize("/var/www/tmp/temperaturkurve_view.png") > 0) {
                copy("/var/www/tmp/temperaturkurve_view.png", "/var/www/tmp/temperaturkurve.png");
                // Plotgrafik kopieren
                $message .= "temperaturkurve_view.jpg wird nach temperaturkurve.jpg kopiert. \n";
Example #2
0
 / <?php 
            echo $pit_set;
            ?>
&#176;C</div>
						<?php 
        }
        ?>
					</div>
				<?php 
    }
}
//-------------------------------------------------------------------------------------------------------------------------------------
// Plot erzeugen ######################################################################################################################
//-------------------------------------------------------------------------------------------------------------------------------------
if ($_SESSION["plot_start"] == "True") {
    $plot_setting = getPlotConfig($plot);
    if (is_dir("/var/www/tmp")) {
        $message .= "Verzeichnis 'tmp' vorhanden! \n";
        $plotdateiname = '/var/www/tmp/temperaturkurve.png';
        if (file_exists("" . $plotdateiname . "")) {
            $timestamp = filemtime($plotdateiname);
            $message .= "Aktueller Timestamp: \"" . time() . "\". \n";
            $message .= "Timestamp letzte Ă„nderung der " . $plotdateiname . ":\"" . $timestamp . "\". \n";
        } else {
            $timestamp = "0";
        }
        if (time() - $timestamp >= 9) {
            if (file_exists("/var/www/tmp/temperaturkurve_view.png") and filesize("/var/www/tmp/temperaturkurve_view.png") > 0) {
                copy("/var/www/tmp/temperaturkurve_view.png", "/var/www/tmp/temperaturkurve.png");
                // Plotgrafik kopieren
                $message .= "temperaturkurve_view.jpg wird nach temperaturkurve.jpg kopiert. \n";