2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
fhem-mirror/fhem/www/gplot/wind4windDir4.gplot
rudolfkoenig 4f2c6efca1 Reorg - Part 4
git-svn-id: https://svn.fhem.de/fhem/trunk@1865 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2012-09-18 10:27:27 +00:00

41 lines
1.1 KiB
Plaintext

#
# Display the measured wind direction and wind speed of Oregon sensors
#
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
# Filelog example:
# define FileLog_WTGR800_A_cf FileLog /var/log/fhem/WTGR800_A_cf-%Y.log WTGR800_A_cf
#
#
# Logfile record example:
# 2010-08-10_17:57:14 WTGR800_A_cf wind_speed: 3.2
# 2010-08-10_17:57:14 WTGR800_A_cf wind_dir: 270
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Windspeed m/s"
set ylabel "Wind Dir"
#FileLog 4:wind_speed:0:
#FileLog 4:wind_dir:0:
plot \
"< awk $3=="wind_speed:" {print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Wind Speed' with lines,\
"< awk $3=="wind_dir:" {print $1, $4}' <IN>"\
using 1:2 axes x1y1 title 'Wind Direction' with points\