Gnuplot wieder hinzugefügt
This commit is contained in:
parent
c936b42ccc
commit
0359213840
10 changed files with 51 additions and 24 deletions
|
@ -83,11 +83,12 @@ var addToHomeConfig = {
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
<h1>Aktuell</h1>
|
||||
<!--<iframe width="1" scrolling="no" height="1" frameborder="0" src="control.php?aktion=running" seamless="seamless">ifames werden nicht unterstützt</iframe>-->
|
||||
<iframe width="1" scrolling="no" height="1" frameborder="0" src="control.php?aktion=running" seamless="seamless">ifames werden nicht unterstützt</iframe>
|
||||
<img src="" alt="Wettericon" id="wettericon" width="300px" style="float:right;z-index: -1;" />
|
||||
<div class="wert">
|
||||
<div class="label">Datum/Uhrzeit:</div>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
|
@ -1,32 +1,27 @@
|
|||
<?php
|
||||
if(isset($_GET["aktion"])) {
|
||||
switch ($_GET["aktion"]) {
|
||||
case stop:
|
||||
case "stop":
|
||||
exec("service aufzeichnung stop",$ausgabe,$fehler);
|
||||
print_r($ausgabe);
|
||||
if($fehler == 1) { echo "ein Fehler ist aufgetreten";}
|
||||
break;
|
||||
case start:
|
||||
case "start":
|
||||
exec("service aufzeichnung start",$ausgabe,$fehler);
|
||||
print_r($ausgabe);
|
||||
if($fehler == 1) { echo "ein Fehler ist aufgetreten";}
|
||||
break;
|
||||
case running:
|
||||
case "running":
|
||||
$lauft=shell_exec( "ls /home/pi/ |grep aufzeichnung.lock" );
|
||||
if($lauft == "") {
|
||||
echo "<script type='text/javascript'>alert('Achtung!\\nDie Aufzeichnung ist gestoppt');</script>";
|
||||
}
|
||||
break;
|
||||
case gnuplot:
|
||||
$datei = fopen("/var/www/gnuplot_erstellen","w");
|
||||
echo fwrite($datei, "Hallo Welt",100);
|
||||
fclose($datei);
|
||||
case "gnuplot":
|
||||
touch("/var/www/gnuplot_erstellen"); //Leere Datei erstellen, die von diverses/gnuplot.sh erkannt wird
|
||||
}
|
||||
} else {
|
||||
echo "Parameter wird benötigt";
|
||||
$datei = fopen("/var/www/gnuplot_erstellen","w");
|
||||
echo fwrite($datei, "Hallo Welt",100);
|
||||
fclose($datei);
|
||||
|
||||
}
|
||||
//exec("sudo service aufzeichnung stop",$ausgabe,$fehler);
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
|
@ -104,6 +104,7 @@
|
|||
<li><a href="./dygraphs_innen.html" id="aktuell">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
|
@ -1,19 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Gnuplot</title>
|
||||
<style>
|
||||
p {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
<title>Über das Projekt</title>
|
||||
<link rel="stylesheet" type="text/css" href="./style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><a href="./gnuplot.php">Aktualisieren</a><p>
|
||||
<p><img src="./gnuplot/gnuplot.png" alt="Diagram als PNG" /></p>
|
||||
<p><img src="./gnuplot/gnuplot.svg" alt="Diagram als SVG" /></p>
|
||||
|
||||
<!--Beginn Navigationsleiste-->
|
||||
<div id="nav">
|
||||
<ul>
|
||||
<li><a href="./index.html">Hauptseite</a></li>
|
||||
<li><a href="./aktuell.html">aktuelle Werte</a></li>
|
||||
<li><a href="./dygraphs_außen.html">Diagramm (Außen)</a></li>
|
||||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html" id="aktuell">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
<img src="images/logo.svg" width="13%" alt="Logo" style="margin-right:2%;margin-top:30px;margin-left:0;" class="float"></div>
|
||||
<div id="text">
|
||||
<h1>Gnuplot</h1>
|
||||
|
||||
<a href="gnuplot/aussen.svg" title="Vollbild"><img src="gnuplot/aussen.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<a href="gnuplot/innen.svg" title="Vollbild"><img src="gnuplot/innen.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<a href="gnuplot/luftdruck.svg" title="Vollbild"><img src="gnuplot/luftdruck.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<a href="gnuplot/luftfeuchte.svg" title="Vollbild"><img src="gnuplot/luftfeuchte.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<a href="gnuplot/luftqualität.svg" title="Vollbild"><img src="gnuplot/luftqualität.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<a href="gnuplot/prozessor.svg" title="Vollbild"><img src="gnuplot/prozessor.svg" width="100%" alt="Gnuplot außen" ></a>
|
||||
<iframe width="1" scrolling="no" height="1" frameborder="0" src="control.php?aktion=gnuplot" seamless="seamless">ifames werden nicht unterstützt</iframe>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -15,6 +15,7 @@
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html">Über das Projekt</a></li>
|
||||
<li><a href="./links.html" id="aktuell">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
||||
<li><a href="./projekt.html" id="aktuell">Über das Projekt</a></li>
|
||||
<li><a href="./links.html">weitere Informationen</a></li>
|
||||
<li><a href="./gnuplot.html">Gnuplot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--Ende Navigationsleiste-->
|
||||
|
|
6
diverses/gnuplot.sh
Executable file
6
diverses/gnuplot.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
if [ -f /var/www/gnuplot_erstellen ]
|
||||
then
|
||||
sed 's/,/ /g' /home/pi/Temperaturmessung/dygraph.csv > /home/pi/Temperaturmessung/gnuplot.txt
|
||||
gnuplot /home/pi/Temperaturmessung/diverses/Einstellungen.plt
|
||||
sudo rm /var/www/gnuplot_erstellen
|
||||
fi
|
Reference in a new issue