Temat: Dane uśrednione
Używam takiego skryptu do rysowania wykresu:
#!/bin/sh
GNUPLOT_COMMAND="/tmp/gnuplot_cmd"
touch ${GNUPLOT_COMMAND}
cat > ${GNUPLOT_COMMAND} << __EOF__
set terminal png small size 800,500
set output '/var/www/temp/s1.png'
set title "Wykres temperatury w mieszkaniu"
set xlabel "doba "
set timefmt "%Y-%m-%d %H:%M:%S"
set xdata time
set ylabel "temperatura C"
set format x "%H:%M"
set grid
set key left
plot '/scripts/meteo/s1.log' using 1:3 t 'dane rzeczywiste' with lines lt 1
quit
__EOF__
gnuplot ${GNUPLOT_COMMAND}
rm ${GNUPLOT_COMMAND}
Podpowie ktos jak narzucic dane uśrednione na to ?
RB951-2HnD / Celeron J1900 / 4G DDR3 / MiniITX - Satpol 100M