Wednesday, 4 December 2013

How to show weather data from Davis Weather Station on a PHP web site

Shanklin Sailing Club has a Davis Vantage Vue weather station attached to a pole which is 300 yards out to sea.  This connects wirelessly to a base station in the club house which is also connected to a Weatherlink IP. The Weatherlink IP takes the data and sends it to and Weather Underground.

Using PHP I have summarised this information in a table and as a weather vane.  The code for the weather vane is below.  You are welcome to use it on your own site.  Especially if you give me some credit.

Weather vane

Make a file called weather-vane.php (or whatever) and link to it in the normal way with an img tag. You need to upload a font to the server and call it in the code below.

Post a Comment