I have modified Kevin Reed’s excellent rain detail script to display daily temperatures.
You can see it in action at http://weather.wildwoodnaturist.com/wxtempdetail.php
Download at http://weather.wildwoodnaturist.com/downloads.php .
It includes two files:
Requirements to use these scripts:
o You need to be uploading the dailynoaareport*.htm files via WD to your website.
Current month file is named dailynoaareport.htm
Other months are named dailynoaareportMMYYYY.htm. Note that the
months are not padded so that Jan would simply be like
dailynoaareport12009.htm with no zero padding for the month.
Note that there was a change in format in 2007 that will require updating reports from that time before
so they can be parsed correctly. (If you are already using the Rain Detail script successfully, you have already done this.)
To recreate use View → Avg Ext/Noaa Reports → 2nd Tab for Noaa Style Reports.
Select which date you want to recreate in the Select Date to Calculate Field.
Then copy and paste the results into a new file (use notepad or some other editor)
and save the file as mentioned above.
o Need to know where they are located (default normally would be in the web root)
There are some settings that you can make to the script in the settings section:
$SITE[‘viewscr’] = ‘sce’;
Defines the password for the view source command. Default is sce.
$first_year_of_data = “2007”;
Set to the first year of data you have available. A dropdown box will then display an option for all years from the first year of data to the present.
$loc = “./”;
Defines where the dailynoaareport*.htm files are located. The above assumes they are in the same level as the script itself.
$range = “year” or “season”
$season_start = 7;
Defines when the season starts. 1 = Jan, 7 = July
I don’t know if temperature really has a season, but the option is there anyway.
$hot = 100;
$cold = 32;
If the temperature is at or above the $hot or at or below the $cold settings, those days will be highlighted.
If you don’t want the highlighting, set the $hot and $cold to unreasonably high or low settings.
The default location for the noday.png file is in the images subdirectory. If you place it somewhere else, you will need to edit the wxtempdetail.css file.
New in Version 1.3
$round = false; Set to true if you want temperatures rounded to the nearest whole number.
New in Version 1.4
This version allows the monthly summary averages/hi/lows to have the same color formatting as the daily temperatures.
If you do not want the summary colors to be the same as the daily colors, set $summaryformat to false.
New in Version 1.5
Monthly highs/lows/averages are now displayed on separate rows.
The starting point of the temperature colorbands can be raised or lowered with the $temprange_start setting.
The increments between the colorbands can be changed with the $temprange_increment setting.
New in Version 1.6
Added the Monthly mean temperature to the monthly summary table. Various CSS changes.