cloudy cloudy

Author Topic: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA  (Read 78116 times)

0 Members and 1 Guest are viewing this topic.

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« on: November 28, 2010, 01:14:12 AM »
Version 3 of the detail and summary reports is now available. Additional options have been added to the existing Temperature,
Rain, Wind, and Snow reports. Also now available are Barometric Pressure, Degree Days, Dew Point, Wetbulb,
Sunshine Hours, Solar Energy, and UV detail and summary reports.

A change that is common to all of the detail/summary files is the addition of two include files.
The wxreport-settings.php file has settings that are common to all of the detail/summary files such
as the paths to the dailynoaareport and climatedataout files.
It also has settings as to which links to other detail/summary reports are to be displayed on the various reports.
If you do not want a link to a specific report to show, set the show link option for that page to false.

If you rename any of the detail/summary files, update the appropriate filename settings to the new filename or the links
will not work.

If you want to change the text on one of the link buttons, update the appropriate button text setting.

The wxreportinclude.php file contains the logic as to which (if any) link buttons to display on the detail/summary reports
based on the settings you made in the wxreport-settings.php file. There are no settings to make in wxreportinclude.php.

A common css file (wxreports.css) is now used. But if you want to use different color schemes for different reports, you can use
a different css file. Just update the $css_file setting in the appropriate detail/summary file(s).

A new option available in the existing (and new) detail/summary files is to allow changing the number of possible colorbands
to be displayed up to a maximum of 30. Change the $increment setting in the individual detail/summary file as needed.
The default setting is 11 increments which provides 13 colorbands (one below the first increment and one over the last increment).
If you do increase the increments setting to more than 11, you will need to edit the css file to add the additional colorbands
yourself.
NOTE: There is no option to change increments in the wind and UV reports. The wind reports are matched to the beaufort scale and
the UV reports use the scale used by the EPA.

Each of the reports (except wind and UV) also have a option to set the values between increments manually.
This allows the increments to be non-linear (.1, .5, 1, 3, 5, 10, 15, etc). This is primarily useful for snow which can
have large variations.

A setting available in the snow, sunshine hours, solar, and UV scripts is for indicating when you first started recording
that type of data since you may not have been recording that data from the beginning of your climatedataout files.
The default setting is the date I started recording that data so you will need to update it with your information.

For those with solar and/or UV sensors, you will need to use a new template to include the solar and UV values in the
climatedataout files.
In the latest version of Weather Display, a climatedatasolaruv.html is included in the root directory.
Copy it to the webfiles directory and rename to climatedata.html and recreate the detailed climate reports for the months that
you have been using the solar/UV sensors. A copy of the climatedatasolaruv.html template is also included with the zip file of
the detail/summary files.

If you do not have a solar or uv sensor, there is no point in displaying the Sunshine Hours, Solar Energy, or UV reports as they will have no data to display.

The units of measurements used by the detail/summary scripts depends on the settings made in the settings.php of the template set.
$SITE['uomTemp'] = '°F';
$SITE['uomBaro'] = ' inHg';
$SITE['uomWind'] = ' mph';
$SITE['uomRain'] = ' in';
$SITE['uomSnow'] = ' in';
These need to be set to match whatever units you are using.

Example
Download
« Last Edit: November 30, 2010, 09:55:00 PM by Murry Conarroe »
Murry

Offline EastMasonvilleWX

  • Posts: 252
  • Masonville, NY
    • East Masonville Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #1 on: November 28, 2010, 04:55:28 AM »
Murry, great work as always.

Simple to install, just changed a few settings, and it was working. Thank you for all of your hard work and effort.  =D>

I have them running and working great.

http://eastmasonvilleweather.com/wxtempdetail.php
http://eastmasonvilleweather.com/wxtempsummary.php

P.S. Just installed the solar and UV sensors today, great timing on the script.

-Dennis
East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline aggets

  • Posts: 123
  • Sun Prairie, Wisconsin USA
    • Sun Prairie Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #2 on: November 28, 2010, 11:24:22 AM »
Murray knocks it out of the park!!

Great job and thanks

Got it running here
http://www.sunprairieweather.com/wx_temp_detail.php
« Last Edit: November 28, 2010, 12:11:37 PM by aggets »

Bashy

  • Guest
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #3 on: November 28, 2010, 12:38:26 PM »
Thanks a lot for the update Murry, really appreciate it, looks like its working ok apart from the
snow, well it is but its showing 1cm for 27th and 28th, but its only input for the 27th in WD
and total for this season is 1.0cm, Todays depth is about 0.1cm so im wondering if its this that
it thinks is 1.0cm?

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,522
  • Rome, New York
    • CNYWeather.com
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #4 on: November 28, 2010, 01:04:08 PM »
Hi Murry. Got it installed. Have 1 issue with the solar, dewpoint, wetbulb & baro:

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxsolarsummary.php on line 233

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxbarosummary.php on line 254

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxdewpointsummary.php on line 252

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxwetbulbsummary.php on line 255

http://www.cnyweather.com/wxtempsummary.php?

Tony  8)
« Last Edit: November 28, 2010, 01:21:59 PM by cnyweather »
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #5 on: November 28, 2010, 01:27:39 PM »
Hi Murry. Got it installed. Have 1 issue with the solar:

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxsolarsummary.php on line 233

http://www.cnyweather.com/wxsolarsummary.php

You are using the default climatedata.html template which does not have solar or UV data.  You should also update the $start_year, $start_month, $start_day variables in the solar, sunshine hours, and uv scripts to use the date you start recording those values instead of using the default which is the date I installed my solar and uv sensors.

For the dewpoint, wetbulb, and barometric scripts it looks like you set 2005 as your first year of climatedata files, but you have none until 2006.
Quote
For those with solar and/or UV sensors, you will need to use a new template to include the solar and UV values in the
climatedataout files. In the latest version of Weather Display, a climatedatasolaruv.html is included in the root directory.
Copy it to the webfiles directory and rename to climatedata.html and recreate the detailed climate reports for the months that
you have been using the solar/UV sensors. A copy of the climatedatasolaruv.html template is also included with the zip file of
the detail/summary files.
« Last Edit: November 28, 2010, 01:37:55 PM by Murry Conarroe »
Murry

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #6 on: November 28, 2010, 01:45:33 PM »
Thanks a lot for the update Murry, really appreciate it, looks like its working ok apart from the
snow, well it is but its showing 1cm for 27th and 28th, but its only input for the 27th in WD
and total for this season is 1.0cm, Todays depth is about 0.1cm so im wondering if its this that
it thinks is 1.0cm?

The snow for the 27th comes from the climatedataout.html file which shows 1.0 cm. The snow for the 28th (today) comes from the $snowtodaycm value from the testtags which shows:
"$snowtodaycm = '1.0';   // Snow for today cm"

The testtags will probably correct itself tomorrow.

It also looks like you do have the $SITE['uomSnow'] set in your settings.php file.

You also need to use the new climatedata template that includes the solar and uv readings and adjust the start dates in the sunshinehours, solar, and uv scripts to when you start recording that data.
Quote
For those with solar and/or UV sensors, you will need to use a new template to include the solar and UV values in the
climatedataout files. In the latest version of Weather Display, a climatedatasolaruv.html is included in the root directory.
Copy it to the webfiles directory and rename to climatedata.html and recreate the detailed climate reports for the months that
you have been using the solar/UV sensors. A copy of the climatedatasolaruv.html template is also included with the zip file of
the detail/summary files.
« Last Edit: November 28, 2010, 01:57:57 PM by Murry Conarroe »
Murry

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,522
  • Rome, New York
    • CNYWeather.com
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #7 on: November 28, 2010, 02:09:44 PM »
You are using the default climatedata.html template which does not have solar or UV data.  You should also update the $start_year, $start_month, $start_day variables in the solar, sunshine hours, and uv scripts to use the date you start recording those values instead of using the default which is the date I installed my solar and uv sensors.

For the dewpoint, wetbulb, and barometric scripts it looks like you set 2005 as your first year of climatedata files, but you have none until 2006.

I was never good at following directions. Just ask the wife.

Only issue I have is on the barometer now Murry

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxbarosummary.php on line 254

http://www.cnyweather.com/wxbarosummary.php?

Thanks for the great script!
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Bashy

  • Guest
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #8 on: November 28, 2010, 02:20:56 PM »
whoopsy, i uploaded that to my server (climatedatasolaruv.htm) Thats what you get for NOT reading
the instructions as thoroughly as they should be pmsl....

I will see what shows up tomoz for the snow, thanks Murry.....

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #9 on: November 28, 2010, 02:22:34 PM »
I was never good at following directions. Just ask the wife.

Only issue I have is on the barometer now Murry

Warning: Division by zero in /home/content/c/n/y/cnyweather/html/wxbarosummary.php on line 254

http://www.cnyweather.com/wxbarosummary.php?

Thanks for the great script!

Quote
For the dewpoint, wetbulb, and barometric scripts it looks like you set 2005 as your first year of climatedata files in the wxreport-settings.php file, but you have none until 2006.

It also appears that you do not have the $SITE['uomBaro'] = ' inHg'; set in your settings.php file. This causes the script to assume your pressure is in mb instead of inches and displays the wrong scale.
« Last Edit: November 28, 2010, 02:27:13 PM by Murry Conarroe »
Murry

Offline Objector

  • Posts: 387
  • Dalton, Georgia, USA
    • Dalton Georgia Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #10 on: November 28, 2010, 02:52:47 PM »
Murry,

Another great piece of work!!

I am having one strange thing though, sometimes the detail buttons actually call up the dummary reports, i.e. if I go to the temperature details report and click the rain details button, the rain summary is what comes up. I must be missing something but can't figure out where.

http://www.daltongeorgiaweather.com/wxtempdetail.php

Anyway, thanks again for all you hard work.

Offline Objector

  • Posts: 387
  • Dalton, Georgia, USA
    • Dalton Georgia Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #11 on: November 28, 2010, 03:09:21 PM »
Murry,

My bad. I see now that some reports have the summary buttons as the "top" row and some have the summary buttons as the "bottom" row.

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #12 on: November 28, 2010, 03:10:46 PM »
Murry,

Another great piece of work!!

I am having one strange thing though, sometimes the detail buttons actually call up the dummary reports, i.e. if I go to the temperature details report and click the rain details button, the rain summary is what comes up. I must be missing something but can't figure out where.

http://www.daltongeorgiaweather.com/wxtempdetail.php

Anyway, thanks again for all you hard work.

I could not duplicate this. On summary reports, the summary buttons are listed first then the detail buttons. On detail reports, the detail buttons are listed first and then the summary buttons. If you are switching back and forth between detail and summary reports it is easy to hit the wrong button if you are not paying attention. I suspect that is what happened.
Murry

Offline mfd38

  • Posts: 1,218
  • Massachusetts
    • Medfield, MA Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #13 on: November 28, 2010, 04:38:06 PM »
Excellent Murry! Thank you for sharing all your hard work, great addition to my site http://www.medfieldweather.com/wxtempdetail.php .

Offline Murry Conarroe

  • Posts: 621
  • Decatur, Texas
    • Wildwood Weather
Re: Version 3 of Detail / Summary addon pages for WD-AJAX-PHP-USA
« Reply #14 on: November 28, 2010, 08:56:43 PM »
I have made an update to the wxreportinclude.php file so that the buttons linking to other scripts would work properly for those unfortunate to be using IE7.

The zip file has been updated with the new version. But if you have already installed you may want to just install the attached version of the updated file. Rename from wxreportinclude.php.txt to wxreportinclude.php.

There are no user settings that need to be set in the file.
Murry