Page 2 of 5

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 6:36 am
by JennyLeez
Ok tried that but it did not change anything :(

Any other ideas please.

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 10:08 am
by gemini06720
Any other ideas please.
Jenny, have a look at this page ... and check your private mail. ;)

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 12:55 pm
by JennyLeez
gemini06720 wrote:
Any other ideas please.
Jenny, have a look at this page ... and check your private mail. ;)
Look there it is beteljuice, 2 data label lines :)
Now just how did Ray do that :) :)

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 12:59 pm
by beteljuice
JennyLeez wrote:Ok tried that but it did not change anything :( ...
I've just built a page from your posted file modified, and once I fixed what seems to be a php 4 => 5 glitch (and pasted in CSS, and linked to ridulously big jquery) - er ..

It works ! - beteljuice o/p

Edit: your response above - to me or gemini ?

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 1:34 pm
by JennyLeez
beteljuice wrote:
JennyLeez wrote:Ok tried that but it did not change anything :( ...
I've just built a page from your posted file modified, and once I fixed what seems to be a php 4 => 5 glitch (and pasted in CSS, and linked to ridulously big jquery) - er ..

It works ! - beteljuice o/p

Edit: your response above - to me or gemini ?
Thanks you Beteljuice. Thats it.
May I please have the readDayfile.php that you modified.
Much appreciated.
Jenny

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 2:10 pm
by gemini06720
JennyLeez wrote:...Look there it is beteljuice, 2 data label lines :)
Now just how did Ray do that :) :)
Ah, but that is my secret... :twisted:

As suggested by the beteljuice, I inserted a '<br />' somewhere in the code... :mrgreen: ...plus some other stuff... :D

Re: Yearly Data Summary--Adding new fields

Posted: Wed 20 Jul 2011 2:19 pm
by beteljuice
Do the code as outlined above ..

I forgot and put a remark ( // NEW Line ... ) in the middle of an array !!!!!
So if you cut 'n 'pasted it - that's why it didn't work :roll:
Code corrected now.

If you still have problems I'll zip it

Re: Yearly Data Summary--Adding new fields

Posted: Thu 21 Jul 2011 1:47 am
by JennyLeez
beteljuice wrote:Do the code as outlined above ..

I forgot and put a remark ( // NEW Line ... ) in the middle of an array !!!!!
So if you cut 'n 'pasted it - that's why it didn't work :roll:

If you still have problems I'll zip it
Yay got it, thank you very much :)

Re: Yearly Data Summary--Adding new fields

Posted: Thu 21 Jul 2011 5:46 am
by JennyLeez
Ok here is what I ended up with:

http://wairoa.net/weather/datasummary_test.php
I sorta see what you are doing but I dont understand enough to fix it.
I copied it as you posted and then added the fields.
It has dropped it down great but from there seems to have a mind of its own.
I will attach the readDayfile also.
When you have time would you please see where I have gone wrong.
Many thanks
Jenny

Re: Yearly Data Summary--Adding new fields

Posted: Thu 21 Jul 2011 11:11 am
by beteljuice
It's doing what you've asked it to :D

You haven't asked for a new line until after 'hourly rainfall' - but that's too many buttons to fit your container width so it wrapped.
Then you asked for another new line after the next button (rain rate) - probably a cut 'n' paste thing.

$label_items = array(
array('maxtemp','Max Temp','Maximum Temperature',true, false),
array('mintemp','Min Temp','Minimum Temperature',true, false),
array('avgtemp','Avg Temp','Average Temperature',true, false),
array('minmaxt','Min/Max Temp','Min / Max Temperature',true, false),
array('heatdex','Heat Index','High Heat Index',true, false),
array('highapp','High App Temp','High Apparent Temperature',true, false),
array('lowapp','Low App Temp','Low Apparent Temperature',true, false),
array('highdew','High Dew Point','High Dew Point',true, false),
array('lowdew','Low Dew Point ','Low Dew Point',true, false),
array('rainfall','Daily Rainfall','Daily Rainfall',true, false),
array('rainhour','Hourly Rainfall','Highest Hourly Rainfall (mm/hr)',true, true),
array('rainrate','Rain Rate','Daily Rain Rate (mm/hr)',true, true),
array('maxpres','Max Pressure','Maximum Sea Level Pressure',true, false),
array('minpres','Min Pressure','Minimum Sea Level Pressure',true, false),
array('windchill','Wind Chill','Lowest Wind Chill',true, false),
array('windgust','Wind Gust','Highest Wind Gust',true, false),
array('windspeed','Wind Speed','Highest Average Wind Speed',true, false),
array('windrun','Wind Run','Daily Wind Run',true, false),
array('maxhum','Max Humidity','Maximum Humodity',true, false),
array('minhum','Min Humidity','Minimum Humidity',true, false) );

You may wish to rearrange the order of the array (buttons) to try and keep groups together:

Using the same order Try:

$label_items = array(
array('maxtemp','Max Temp','Maximum Temperature',true, false),
array('mintemp','Min Temp','Minimum Temperature',true, false),
array('avgtemp','Avg Temp','Average Temperature',true, false),
array('minmaxt','Min/Max Temp','Min / Max Temperature',true, false),
array('heatdex','Heat Index','High Heat Index',true, false),
array('highapp','High App Temp','High Apparent Temperature',true, false),
array('lowapp','Low App Temp','Low Apparent Temperature',true, false),
array('highdew','High Dew Point','High Dew Point',true, false),
array('lowdew','Low Dew Point ','Low Dew Point',true, true),
array('rainfall','Daily Rainfall','Daily Rainfall',true, false),
array('rainhour','Hourly Rainfall','Highest Hourly Rainfall (mm/hr)',true, false),
array('rainrate','Rain Rate','Daily Rain Rate (mm/hr)',true, false),
array('maxpres','Max Pressure','Maximum Sea Level Pressure',true, false),
array('minpres','Min Pressure','Minimum Sea Level Pressure',true, true),
array('windchill','Wind Chill','Lowest Wind Chill',true, false),
array('windgust','Wind Gust','Highest Wind Gust',true, false),
array('windspeed','Wind Speed','Highest Average Wind Speed',true, false),
array('windrun','Wind Run','Daily Wind Run',true, false),
array('maxhum','Max Humidity','Maximum Humidity',true, false),
array('minhum','Min Humidity','Minimum Humidity',true, false) );

Humidity may look a bit out of place, but you'll get the idea ;)

Re: Yearly Data Summary--Adding new fields

Posted: Thu 21 Jul 2011 12:31 pm
by JennyLeez
ahhh I get it
Its the true true bit huh

Brilliant it looks great and with new entries to the day file I shall be able to juggle that second row.

Thank you so very much it looks great now :)

http://wairoa.net/weather/datasummary.php
My master piece written by David, Beteljuice and Gemini :)

Re: Yearly Data Summary--Adding new fields

Posted: Thu 21 Jul 2011 1:39 pm
by beteljuice
ahhh I get it
Its the true true bit huh
No problem at all, at all, to be sure, to be sure ;)

Re: Yearly Data Summary--Adding new fields

Posted: Thu 18 Aug 2011 6:14 pm
by hdmax
I see some great summery pages and was wondering if I could use the templates from gemini06720, beteljuice, JennyLeez weather web sites for my personal web site ( sixmileturn-weather.com )
I am by no means an expert, not even average when it comes to building /modifying my site, but am trying to learn. With that said, if by chance any or all of you allow me to use this information, I will most certainly have questions.

Thanks
Mike

Re: Yearly Data Summary--Adding new fields

Posted: Sat 20 Aug 2011 1:07 am
by gemini06720
Mike, my version of the 'Annual Weather Data Summary' page, although based on David's PHP code, is now a 'highly modified' version of the original PHP script - I did not and will not adapted (update) David's JavaScript, not only because I am not as familiar with JavaScript as I am with PHP, but because I do not believe that JavaScript (code running on a user's computer) should be used for a script that should be run directly from the host server through the use of a PHP scripts... :roll:

With that said/written, I would be interested in helping you getting the data summary page installed and running ... as long as your host server makes PHP available - I could not check as you do not provide a link to your web pages in your profile... :evil:

Re: Yearly Data Summary--Adding new fields

Posted: Sat 20 Aug 2011 12:09 pm
by daj
gemini06720 wrote:.... because I do not believe that JavaScript (code running on a user's computer) should be used for a script that should be run directly from the host server through the use of a PHP scripts... :roll:
Bear in mind that the JS version was written as not everyone has access to PHP. Just saying. LOL

As Ray has said, the PHP version is the best route if you have access to it via your webhost.