Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 3:38 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 10:42 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
nking wrote:
step instructions to achieve this

View the source of beteljuice's PHP by using this link: http://www.beteljuice.com/NOAA/NOAA-reports-test.php?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

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 10:44 am 
Offline
User avatar

Joined: Thu Dec 17, 2009 2:03 pm
Posts: 787
Location: Hurstpierpoint, West Sussex, UK
Weather Station: WH1081
Operating System: Windows XP & 7 Pro
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-reports-test.php?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.

_________________
Neil
Hurstpierpoint Weather

Image


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 10:51 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 11:33 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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:
....

<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 !!

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 11:54 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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:

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 12:28 pm 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
Great thread. Thanks to all contributers. I've managed to get the NOAA reports up and running here http://www.brisbaneliveweather.com/NOAAReports.php.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 12:34 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
steve wrote:
Could idea; we ...
Is that a beauism ?

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: noaa report heat deg day an cool deg day same day?
PostPosted: Mon Aug 22, 2011 12:39 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I need a rest! :lol:

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: BCJKiwi and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group