diff --git a/Einstellungen b/Einstellungen deleted file mode 100644 index f4f1b38..0000000 --- a/Einstellungen +++ /dev/null @@ -1,18 +0,0 @@ -# x-Achse enthält Zeitinformation -set xdata time -# Zeitformat zur Eingabe -set timefmt x "%H:%M:%S" -# Zeitformat zur Beschriftung der x-Achse -set format x "%H:%M:%S" -# set nokey #keine Legende -set grid #Gitter anzeigen -# set title "LOAD-Wert" #eventuell Überschrift -set ylabel 'Temperatur' -set xlabel 'Zeit' -set y2tics # Zahlen auch auf 2. y-Achse - -plot "daten_gnuplot.txt" using 1:2 title 'LOAD' with lines axes x1y1, \ - "daten_gnuplot.txt" using 1:3 title 'Rand' with lines axes x1y2 -set terminal svg size 1200,800 -set output "gnuplot.svg" -replot diff --git a/Einstellungen.plt b/Einstellungen.plt new file mode 100644 index 0000000..317a83a --- /dev/null +++ b/Einstellungen.plt @@ -0,0 +1,26 @@ +# x-Achse enthält Zeitinformation +set xdata time +# Zeitformat zur Eingabe +set timefmt x "%Y/%m/%d\ %H:%M:%S" +# Zeitformat zur Beschriftung der x-Achse +set format x "%d.%m %H:%M" +# set nokey #keine Legende +set grid #Gitter anzeigen +set title "Raspberry Pi" #Überschrift +set ylabel 'Temperatur (°C)' +set ylabel 'relative Luftfeuchtigkeit (%)' +#set xlabel 'Zeit' +set y2tics # Zahlen auch auf 2. y-Achse + +plot "/var/www/gnuplot/daten_gnuplot.txt" using 1:3 title 'Innentemperatur 1' with lines axes x1y1, \ + "/var/www/gnuplot/daten_gnuplot.txt" using 1:4 title 'Innentemperatur 2' with lines axes x1y1, \ + "/var/www/gnuplot/daten_gnuplot.txt" using 1:5 title 'Außentemperatur' with lines axes x1y1, \ + "/var/www/gnuplot/daten_gnuplot.txt" using 1:6 title 'Temperatur Luft' with lines axes x1y1, \ + "/var/www/gnuplot/daten_gnuplot.txt" using 1:7 title 'Luftfeuchtigkeit' with lines axes x1y2, \ + "/var/www/gnuplot/daten_gnuplot.txt" using 1:8 title 'Prozessor' with lines axes x1y1 +set terminal svg size 1200,800 +set output "/var/www/gnuplot/gnuplot.svg" +replot +set terminal png size 1200,800 +set output "/var/www/gnuplot/gnuplot.png" +replot diff --git a/Webinterface/gnuplot.html b/Webinterface/gnuplot.html new file mode 100644 index 0000000..bcc2edd --- /dev/null +++ b/Webinterface/gnuplot.html @@ -0,0 +1,19 @@ + + + + + + Gnuplot + + + + +

Aktualisieren

+

Diagram als PNG

+

Diagram als SVG

+ + diff --git a/Webinterface/gnuplot.php b/Webinterface/gnuplot.php new file mode 100644 index 0000000..49bc72b --- /dev/null +++ b/Webinterface/gnuplot.php @@ -0,0 +1,5 @@ +/var/www/gnuplot/daten_gnuplot.txt"); +exec("gnuplot /home/pi/Temperaturmessung/Einstellungen.plt"); +header("Location: http://10.0.0.22/gnuplot.html"); +?> diff --git a/diverses/rand.sh b/diverses/rand.sh old mode 100644 new mode 100755