Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

PHP Web 'viewer' for Cumulus NOAA Style reports

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by captzero »

Hi beteljuice,

I'm using the 'old' code successfully and I am thinking of upgrading to the new improved version but the examples linked to in the first post show 'Monthly Climatological Summary for Apr 2011' when viewing other months and year data. I'm assuming others are using the new script without any problems so is this only happening in the demo pages.

Cheers
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
User avatar
JennyLeez
Posts: 314
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by JennyLeez »

captzero wrote:Hi beteljuice,

I'm using the 'old' code successfully and I am thinking of upgrading to the new improved version but the examples linked to in the first post show 'Monthly Climatological Summary for Apr 2011' when viewing other months and year data. I'm assuming others are using the new script without any problems so is this only happening in the demo pages.

Cheers
Yep just the demo. All good here :)
http://wairoa.net/weather/noaa-reports.htm
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

captzero wrote:Hi beteljuice,

I'm using the 'old' code successfully and I am thinking of upgrading to the new improved version but the examples linked to in the first post show 'Monthly Climatological Summary for Apr 2011' when viewing other months and year data. I'm assuming others are using the new script without any problems so is this only happening in the demo pages. ...
If you mean the actual reports themselves - YES, the beteljuice no longer runs a weather station, ergo doesn't run Cumulus, ergo no reports of my own :?

They are just multiple copies of other peoples data for display / testing purposes ;)

EDIT: I'll change the titles to avoid confusion :bash:
Last edited by beteljuice on Mon 19 Sep 2011 10:24 am, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by captzero »

Great. Thanks. I'll give it a go.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
muppet77
Posts: 90
Joined: Wed 30 Dec 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by muppet77 »

beteljuice wrote:
muppet77 wrote:well done for finding the reports too beteljuice

I thought the line of code was enough...
It should have been !

If I put your script in my reports directory - everything works without any glitch.
http://www.dickie.webfusion.co.uk/NOAA2 ... s/noaa.php (you've opted for 'classic' nav)

EDIT: The opendir() function has problems working in the 'root' directory.
It will probably work if you put in the server path to your web pages root:
eg. "/home/bert/public_html/"

If that doesn't work you will have to create a sub-directory for your reports.

thanks and apologies!

is there an easy way to find my root address?
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

If you have a ftp program, just login and start going 'up' the directories. The 'full' path may already be displayed in your ftp prog.

My web pages root for example /(username)/public_html

Your username may or may not be displayed, try it both ways - if you can't work it out ask your webspace provider.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

Just checked godaddy very unhelpful support forum ..

"Our Hosting servers do not included a /public_html/ folder, ..."

They suggest that if a prog requires [root] to try "/" (no dot - I'm not optimistic :? )
Image
......................Imagine, what you will KNOW tomorrow !
muppet77
Posts: 90
Joined: Wed 30 Dec 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by muppet77 »

thanks for your help beteljuice.

according to a script my dirname is just a full stop .

which i tried with no success.

i then tried to eliminate the need for a dir to be opened in the script - without success


so for now i will have to stick with the reports being in a folder

http://www.maidenerleghweather.com/noaa.php

thanks everyone!

(if anyone can get rid or edit the script so $NOAAdir is not needed i would be interested)
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

After running some php addressing checks this was my PM response:
muppet77 wrote: - i'm looking at removing the need to open a sub directory in the script now...
but we have just proved that you must have a sub-directory !

It always was the best option.

The script inspects the contents of a (stated) directory, and looks for files with a particular naming format.

In the (html) root there is the future possibility of many files to be checked and the accidental naming of none related files that seem to match the expected format.

Unfortunately opendir() is unhappy in (html) root which for that function is a php nomansland. In your case, because of the lack of a higher directory structure php can't work out where it really is.
Image
......................Imagine, what you will KNOW tomorrow !
muppet77
Posts: 90
Joined: Wed 30 Dec 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by muppet77 »

ok - i understand now.

many thanks Beteljuice.
neil
Posts: 71
Joined: Sat 10 Jan 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 10
Location: Broadstairs, Kent
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by neil »

Thanks Beteljuice
This is superb I have sort of tried to produce records on my site but this is a lot better
My limited coding knowledge prevented me from anything more complex than pasting in the monthly screen shots from cumulus
Had it up & running in a few minutes works really well alongside David's daily data sheets

Neil
Thanetweather home page http://www.thanetweather.co.uk
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

Thank you for using it (and the acknowlegement ;) )
My limited coding knowledge prevented me from anything more complex than ...
STOP USING Frontpage !

You'll be confused by all the rubbish it puts in :?
Image
......................Imagine, what you will KNOW tomorrow !
neil
Posts: 71
Joined: Sat 10 Jan 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 10
Location: Broadstairs, Kent
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by neil »

My pleasure credit where its due :)
Just got to have a play and get it working as an include
im using Namo web editor which is a little dated now but i dont really have the time to learn how to code completely from scratch
Learn a new bit every time i change a page so i will get there in the end :!:
Neil

there you go
50 minutes later http://www.thanetweather.co.uk/weather/test.php
just got to edit the links to make it part of my weather pages :D
still couldnt do it without the excellent instructions though
Neil
Thanetweather home page http://www.thanetweather.co.uk
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by beteljuice »

Image
......................Imagine, what you will KNOW tomorrow !
neil
Posts: 71
Joined: Sat 10 Jan 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 10
Location: Broadstairs, Kent
Contact:

Re: PHP Web 'viewer' for Cumulus NOAA Style reports

Post by neil »

Ok everythings up and running I have copied all my records into a spreadsheet & worked out averages for temperature & precipitation 1/1/2009 to 1/11/2011
On the NOAA setup screen the bit thats got me stumped is the heating threshold & cooling threshold
Could anybody explain what this means & how to calculate the figures
Thanks in advance
Neil
Thanetweather home page http://www.thanetweather.co.uk
Post Reply