Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

PHP Web 'viewer' for Cumulus NOAA Style reports

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

Moderators: daj, TNETWeather

User avatar
captzero
Posts: 363
Joined: Wed Mar 03, 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

Postby captzero » Mon Sep 19, 2011 9:55 am

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: 283
Joined: Wed Dec 16, 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

Postby JennyLeez » Mon Sep 19, 2011 9:58 am

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

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

Postby beteljuice » Mon Sep 19, 2011 10:02 am

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 Sep 19, 2011 10:24 am, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
captzero
Posts: 363
Joined: Wed Mar 03, 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

Postby captzero » Mon Sep 19, 2011 10:03 am

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 Dec 30, 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

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

Postby muppet77 » Mon Sep 19, 2011 1:27 pm

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

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

Postby beteljuice » Mon Sep 19, 2011 1:37 pm

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

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

Postby beteljuice » Mon Sep 19, 2011 1:52 pm

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 Dec 30, 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

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

Postby muppet77 » Mon Sep 19, 2011 5:11 pm

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

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

Postby beteljuice » Mon Sep 19, 2011 6:05 pm

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 Dec 30, 2009 6:45 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Berks, UK

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

Postby muppet77 » Mon Sep 19, 2011 6:44 pm

ok - i understand now.

many thanks Beteljuice.

neil
Posts: 66
Joined: Sat Jan 10, 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 7
Location: Broadstairs, Kent
Contact:

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

Postby neil » Sun Oct 30, 2011 11:40 am

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
Follow Thanetweather on Twitter http://twitter.com/#!/thanetweather
Thanetweather home page http://www.thanetweather.co.uk

Image

User avatar
beteljuice
Posts: 2456
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

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

Postby beteljuice » Sun Oct 30, 2011 3:06 pm

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: 66
Joined: Sat Jan 10, 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 7
Location: Broadstairs, Kent
Contact:

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

Postby neil » Sun Oct 30, 2011 5:02 pm

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
Follow Thanetweather on Twitter http://twitter.com/#!/thanetweather
Thanetweather home page http://www.thanetweather.co.uk

Image

User avatar
beteljuice
Posts: 2456
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

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

Postby beteljuice » Mon Oct 31, 2011 2:50 pm

Update: Intermediate 'Tweak' added

viewtopic.php?f=14&t=5754&p=49194#p49194
Image
......................Imagine, what you will KNOW tomorrow !

neil
Posts: 66
Joined: Sat Jan 10, 2009 8:36 pm
Weather Station: Maplin N96FY (WH1081)
Operating System: Windows 7
Location: Broadstairs, Kent
Contact:

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

Postby neil » Tue Nov 01, 2011 8:55 pm

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
Follow Thanetweather on Twitter http://twitter.com/#!/thanetweather
Thanetweather home page http://www.thanetweather.co.uk

Image


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 10 guests