The weather station uses
a program called weatherlink that runs on a windows pc in my house. Its job
is to take the data from my vantage pro weather station and create images and
process html templates. It will store the images that you commonly see on the
weather.wtb.cc site and takes templates
that include weatherlink specific codes like <--currentTemp--> and replaces
it with --- the current temperature! and then uploads the processed file to
a specific location via ftp or local network. I have had continuous problems
with this upload feature as you might have found when the site has been down.
I will separate help with this problem here.
My site takes a spin off of the weatherlink software. I use its processing features
to create a database file that only includes the following data:
<!--date--> <!--stationTime--> <!--outsideTemp--> <!--hiOutsideTemp--> <!--hiOutsideTempTime--> <!--lowOutsideTemp--> <!--lowOutsideTempTime--> <!--outsideHumidity--> <!--windDirection--> <!--windSpeed--> <!--hiWindSpeed--> <!--hiWindSpeedTime--> <!--windChill--> <!--barometer--> <!--dailyRain--> <!--rainRate-->
weatherlink converts these codes into the following and then uploads it
error 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I then use the following code to open the data file that has the data above in it
Then I use these created variables above to display the data into the proper places. Ex:
The North Salt Lake Weather Porch [Current Values for <?php print $date; ?> updated <?php print $time; ?> ]
<?php print $tempout; ?> deg F <?php print $winddir; ?> at <?php print $windspeed; ?> mph
The reason I wrote my own php version instead of allowing weatherlink to process my site like it did the data file is partly because of the error I get and partly for formatting reasons. It is much easier to edit the actual php file than to edit the template file that weatherlink needs to process. I also wanted to learn php so what a perfect opportunity. Well thats it for now. email me at weatherstation@wtb.cc if you need help or have questions. I'm more than willing to help, as long as you are willing to learn.