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 ?

RB760iGS + RB260GS / Ryzen 5 2660 / 16G DDR4 / MiniITX - Inea 1G (https://i.imgur.com/TLbJVDw.png)
RB951-2HnD / Celeron J1900 / 4G DDR3 / MiniITX - Satpol 100M

2

Odp: Dane uśrednione

plot '/scripts/meteo/s1.log' using 1:3 t 'dane rzeczywiste' with lines lt 1, \
    '/scripts/meteo/s1.log' using 1:3 t 'dane usrednione'  smooth bezier

Jakoś tak było.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Dane uśrednione

oo, dokładne o tę funkcje mi chodziło wink działa;)

RB760iGS + RB260GS / Ryzen 5 2660 / 16G DDR4 / MiniITX - Inea 1G (https://i.imgur.com/TLbJVDw.png)
RB951-2HnD / Celeron J1900 / 4G DDR3 / MiniITX - Satpol 100M