mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
pgm2 support for Oregon wind sensors added
git-svn-id: https://svn.fhem.de/fhem/trunk@678 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a8b58bfb35
commit
87cd541861
40
fhem/FHEM/oregon_wind.gplot
Normal file
40
fhem/FHEM/oregon_wind.gplot
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# 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 lw 2,\
|
||||
"< awk $3=="wind_dir:" {print $1, $4}' <IN>"\
|
||||
using 1:2 axes x1y1 title 'Wind Direction' with points lw 1\
|
Loading…
Reference in New Issue
Block a user