My station is on a moored boat that rotates based on the wind direction. Because of the robust nature of the Raspberry Pi I was able to install a magnetometer (compass) that writes a compass heading to a file and then a virtual sensor uses an awk statement to combine the valid wind speed data from the anemometer with the heading from the compass to give an accurate combined reading. If I just use the Davis anemometer, my wind direction is always North (or close to it) since the boat always faces in to the wind.
For those that are curious, here is my virtual sensor for "wind2"
Code: Select all
awk 'NR==FNR{b=$1;next}{print b, $4,$5,$6}' /var/local/heading -
I know I'd once again need to get creative to figure out how to get the heading data where the Meteobridge could leverage it