cloudy

Author Topic: Temperature Detail addon page for WD-AJAX-PHP-USA template  (Read 14327 times)

0 Members and 1 Guest are viewing this topic.

Offline Murry Conarroe

  • Posts: 478
  • Decatur, Texas
    • Wildwood Weather
Temperature Detail addon page for WD-AJAX-PHP-USA template
« on: December 28, 2009, 08:51:33 PM »
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:

wxtempdetail.php
wxtempdetail.css

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)
 o PHP5

Settings:

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.
« Last Edit: March 27, 2010, 01:11:38 AM by Murry Conarroe »
Murry

Offline smokie

  • Posts: 312
  • WS2300 operational May 2007
  • Newquay, Cornwall UK
    • Newquay weather and much more
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #1 on: December 28, 2009, 09:24:06 PM »
Hi, thanks, its a great addition, up and running easy peasy  :D here http://www.newquayweather.com/wxtempdetail.php

Just got to change the css to match rain detail colours.
Thanks
Phil
« Last Edit: December 28, 2009, 09:26:51 PM by smokie »

Newquay, Cornwall.UK  > WS2300 Operational since May 2007.
From 6/4/08 www.newquayweather.com
** Philip

Offline Andretti

  • Posts: 270
  • Poland, silesia, Zabrze
    • ASM Poland - Zabrze
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #2 on: December 28, 2009, 10:18:11 PM »
Hi
Excellent idea. Works elegantly. But I had to translate into Polish.
I hope that is not a problem?
http://www.andretti.pl/wxtempdetail.php

thanks
andretti

Offline magical46

  • Posts: 448
    • Weybourne Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #3 on: December 28, 2009, 10:54:35 PM »
Hi
Another great addition, works first time with no hassle  :)

Phil

http://www.weybourneweather.co.uk/wxtempdetail.php

Offline Murry Conarroe

  • Posts: 478
  • Decatur, Texas
    • Wildwood Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #4 on: December 29, 2009, 04:18:59 PM »
Phil, you must really like it hot if you consider anything less than 32 C / 89 F to be cold. :D
« Last Edit: December 29, 2009, 04:24:10 PM by Murry Conarroe »
Murry

Offline Andretti

  • Posts: 270
  • Poland, silesia, Zabrze
    • ASM Poland - Zabrze
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #5 on: December 29, 2009, 04:40:51 PM »
Indeed, Phil has to like the heat  :D
Phil, can you help with running wordpress blog. I saw that you have a multilingual site and this script you work.
Have you had a similar problem like me?
http://www.andretti.pl/wxblog/

thanks
andretti

Offline magical46

  • Posts: 448
    • Weybourne Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #6 on: December 29, 2009, 11:12:01 PM »
Ok so I didn't change the limits  :oops:

Phil

Offline magical46

  • Posts: 448
    • Weybourne Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #7 on: December 29, 2009, 11:23:30 PM »
Andretti
I don't have the problem you have, unfortunately I am a complete novice at all this so I suggest you post a question on the following thread
http://www.weather-watch.com/smf/index.php/topic,33471.msg271280.html#msg271280

I am sure one of the many excellent people with more knowledge than me will be able to help you.

Phil

Offline Andretti

  • Posts: 270
  • Poland, silesia, Zabrze
    • ASM Poland - Zabrze
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #8 on: December 30, 2009, 05:05:00 PM »
OK Phil.
Already asked in another thread about the additive wordpress. But the author of the script stated that the error may be due to the fact that the script is for the U.S. version.
Very pity. But I wait for some update script. It is possible that want to work ;)

Thank you
andretti

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #9 on: December 30, 2009, 05:15:02 PM »
Got it working here also with a few css changes: http://www.cavecountryweather.com/wxtempdetail.php
Thanks,
Dave

Online evets-md

  • Posts: 274
  • Rock Hall, MD
    • Belcak Weather Station
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #10 on: December 30, 2009, 07:00:30 PM »
Thank you Murray.....worked out of the box...still need to do some css adjustment
http://www.bwsrh.com/wxtempdetail.php?year=2009

Steve
Steve Belcak - Belcak Weather Station
Rock Hall, MD

Offline Tornado Tim

  • Posts: 558
  • I Love storms!
  • Matangi, Hamilton, Waikato, New Zealand
    • Matangi Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #11 on: December 30, 2009, 09:00:28 PM »
First of all thanks for the script.
Working Well here :D
http://wx-matangi.dyndns.org/Weather/wxtempdetail.php
I have changed some of code so the CSS stylesheet will change when the theme changes too.

Offline sacreysouthern

  • Posts: 202
  • Saline Weather
  • Benton/Salem, AR, USA
    • Saline Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #12 on: January 01, 2010, 03:42:14 PM »
Murray,



Happy New Year!!!

Thanks for the script.  Worked like a charm right off.

http://sacrey.info/wxtempdetail.php

John Sacrey
John Sacrey, Saline Weather on Twitter

GR2AE, GR3, CWOP/WU ID: D2073

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #13 on: January 02, 2010, 09:08:59 PM »
Hi Murray,
Thank you for the hard work, added some code to use more colors.
Using same colors as temp-gauge in wd-live.

here

EDIT:Look at 2009
« Last Edit: January 02, 2010, 09:20:15 PM by pinto »

Offline tiggy

  • Posts: 237
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #14 on: January 02, 2010, 09:26:12 PM »
Hi pinto

That looks cool, any chance on sharing please? because i struggled to get mine looking ok

 

cumulus