Page 3 of 3

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 10:42 am
by steve
nking wrote: step instructions to achieve this
View the source of beteljuice's PHP by using this link: http://www.beteljuice.com/NOAA/NOAA-rep ... p?sce=view
"Select all" and copy and paste into a blank text file. Save as anything-you-want.PHP, e.g. NOAA-reports.PHP
Upload that PHP file to your web server, to anywhere that's visible from the web
In the same place on your web site, create a folder called NOAA-reports
In Cumulus, generate NOAA monthly and annual reports for every month and year that you have data for, and save them using the default file names
Upload all of the reports to the NOAA-reports folder on your web server
Visit the PHP page on your server with your browser

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 10:44 am
by nking
steve wrote:
nking wrote: step instructions to achieve this
View the source of beteljuice's PHP by using this link: http://www.beteljuice.com/NOAA/NOAA-rep ... p?sce=view
"Select all" and copy and paste into a blank text file. Save as anything-you-want.PHP, e.g. NOAA-reports.PHP
Upload that PHP file to your web server, to anywhere that's visible from the web
In the same place on your web site, create a folder called NOAA-reports
In Cumulus, generate NOAA monthly and annual reports for every month and year that you have data for, and save them using the default file names
Upload all of the reports to the NOAA-reports folder on your web server
Visit the PHP page on your server with your browser

Many thanks Steve. Hopefully there will be no further questions.

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 10:51 am
by steve
Thinking about it, you might want to make the extension lower case, i.e. .php - I don't know if there's a standard for this, and it matters if you have a case-sensitive web server, which it probably is if it runs on Linux, as the majority do.

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 11:33 am
by beteljuice
Of course it's not very pretty - I suspect it was intended to produce pages for printing.

However; It does have the facility to be used as an "include" file.

So make a copy of one of your (web) Cumulus pages, rip out the unwanted bits and do this:

Code: Select all

....

<table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
	
<?php
// set the variable to tell the script not to create html headers etc.
$doInclude = true;
include 'NOAA-reports-test.php';
?>
	
	</td>
  </tr>
  <tr>
    <td class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="record.htm">records</a>::<a href="trends.htm">trends</a>:</td>
  </tr>
</table>

....
Save the (new) file with a .php extension, and the result is: http://www.beteljuice.com/NOAA/index.php and Bob's your cross-dressing auntie ;)

Note to Steve - think we / me should rewrite all this and put it in a new thread ? - this has gone off-topic somewhat !!

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 11:54 am
by steve
beteljuice wrote:Note to Steve - think we / me should rewrite all this and put it in a new thread ?
Could idea; we could split the work - you write the article and I'll make it 'sticky' :lol:

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 12:28 pm
by captzero
Great thread. Thanks to all contributers. I've managed to get the NOAA reports up and running here http://www.brisbaneliveweather.com/NOAAReports.php.

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 12:34 pm
by beteljuice
steve wrote: Could idea; we ...
Is that a beauism ?

Re: noaa report heat deg day an cool deg day same day?

Posted: Mon 22 Aug 2011 12:39 pm
by steve
I need a rest! :lol: