Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki 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

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

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

Post by gemini06720 » Wed 24 Aug 2011 11:38 am

Steve, I have two questions concerning the NOAA-style reports:
- Could the reports be automatically generated/produced by Cumulus on a daily basis (just a bit after midnight - both the current month and the current year reports)?
- Could there be an option to have those reports generated/produced in a specific sub-directory (to be setup within the 'NOAA Setup' window or with modifications to the 'cumulus.ini' configuration file)?

A few days ago, in the 'NOAA Setup' window, I have placed a check mark in front of 'Auto save after daily reset' (hoping that a report would be automatically generated) but, as of today (04:30AM), no file with the name NOAA has been generated either in the Cumulus sub-directories or in the sub-directories where my web files are located...

Or am I missing something... :roll:

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

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

Post by steve » Wed 24 Aug 2011 12:44 pm

The 'auto save' option should save the reports for the current month and year to the Reports folder - it seems to work fine for me, at least. If you look in the diags files there may be an error message just after midnight which may give some clues as to why it's not working for you.
Steve

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

Experiment !

Post by beteljuice » Thu 25 Aug 2011 12:03 am

Last edited by beteljuice on Sat 17 Sep 2011 10:42 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

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

Post by gemini06720 » Fri 26 Aug 2011 5:05 am

steve wrote:The 'auto save' option should save the reports for the current month and year to the Reports folder - it seems to work fine for me, at least. If you look in the diags files there may be an error message just after midnight which may give some clues as to why it's not working for you.
I cannot remember reading anywhere that a sub-directory with the name 'Reports' had to be created before any NOAA-style reports could be saved... :oops:

You only gave me half a reply... :mrgreen:

Could there eventually be an option to setup Cumulus to save those reports into another directory - I thought of using the 'cumulus.ini' file to automatically do that copy/move to another directory but quickly realised that I will have to remember to edit the 'cumulus.ini' file at the end of every months (and at the end of the year)... :evil: ...unless there is an option somewhere (again, I cannot remember reading about that) to automatically modify the name of a file within 'cumulus.ini'.

Steve, the main reason I have somewhat lost touch with Cumulus over the past 3-4 weeks is that I have been 'intensely' involved in updating/upgrading and older PHP 4 downloading system (with about 15 different scripts) - thus I have not been reading many of the forums unless I receive an e-mail noticed for forums I have been subscribing... :roll:

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Experiment !

Post by gemini06720 » Fri 26 Aug 2011 5:39 am

beteljuice wrote:Experiment - Now with added CSS
beteljuice, the code for in your 'noaarep.css' file is quite good ... really... :mrgreen: ...You only need to work on the shadow... :D

One point thought... When using the 'border-radius', which will renders only in CSS3 capable browsers (Chrome, Firefox 4+, IE9+, Opera and Safari 5+), you should also use '-moz-border-radius' (for the older Mozilla browsers) and '-webkit-border-radius' (for the older Safari and Chrome browsers) - the syntaxe is the same, so in your 'noaarep.css' file you would have (not tested):

Code: Select all

border-radius: 10px; /* for CSS3 capable browsers.*/
-moz-border-radius: 10px; /* older Mozilla */
-webkit-border-radius: 10px; /* Safari and Chrome */
/* -- button shadow -- */
box-shadow: 5px 5px 10px 1pz #A9A9A9; /* for CSS3 capable browsers.*/
-moz-box-shadow: 1px 1px 1px 1px #A9A9A9; /* older Mozilla */
-webkit-box-shadow: 1px 1px 1px 1px #A9A9A9; /* Safari and Chrome */
With 'border-radius', there is no need to repeat the dimension if it is the same value is being used for of all 4 radii (corners: top-left, top-right, bottom-right, bottom-left)

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

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

Post by steve » Fri 26 Aug 2011 7:16 am

gemini06720 wrote:I cannot remember reading anywhere that a sub-directory with the name 'Reports' had to be created before any NOAA-style reports could be saved... :oops:
That's because the installer creates it, automatically.
Could there eventually be an option to setup Cumulus to save those reports into another directory
Yes, quite possibly.
unless there is an option somewhere (again, I cannot remember reading about that) to automatically modify the name of a file within 'cumulus.ini'.
One thing I that I acknowledged somewhere recently was that Cumulus needs to provide some sort of way of handling the 'current' NOAA reports (as it already does for the current monthly log file) as otherwise it's quite tricky to work out the name for yourself (in a batch file, for example). It is possible, though.
Steve

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

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

Post by gemini06720 » Fri 26 Aug 2011 9:17 am

Thank you Steve.

Should I keep my fingers crossed... :D

No rush Steve ... I have just created a DOS batch file to move the NOAA files from the Cumulus 'Reports' sub-directory to one of the Cumulus web pages sub-directory - a CRON/schedule job will take care of the move once-a-day... ;)

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

Update

Post by beteljuice » Fri 26 Aug 2011 11:36 am

Last edited by beteljuice on Sat 17 Sep 2011 10:43 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
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 » Fri 26 Aug 2011 12:29 pm

gemini06720 wrote:".... Anyone interested ?"
Thanks beteljuice...its working well on my site. :D

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
saratogaWX
Posts: 904
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

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

Post by saratogaWX » Sat 27 Aug 2011 6:16 pm

First of all kudos to Ken True aka saratogaWX, probably the weather communitys most respected and magmanimous codester.

If you have a php script or an ajax page the chances are that it contains chunks of Kens code or reasoning.
This is a modified version of one his scripts which will display a WeatherLink or VWS created NOAA style report and produce a navigation menu for the reports it finds.
Wow, beteljuice .. thank you very much for the kind words! :oops:

I've taken the liberty of using your mods to the older single-language version of the script and ported them into the multilingual template sets to add the Cumulus NOAA-style report capability to them too. I have the generated HTML marked-up with your class statements, and inserted an inline CSS into the wxnoaareports.php page (which calls the script).

The updates are now available (along with an updated tags set for Cumulus) at the updates page.

I did modify the styling just a bit to make it 635px wide and a dark grey for missing reports (instead of red), and kept the non-browser-specific styling for the rounded borders. Seems to display fine in FF6, Chrome, Opera, Safari, and only IE8 ignores the rounded corners (still looks fine). 'Course the rounded borders now causes it to fail CSS 2.1 validation on wxnoaareports.php, but it's not a biggie.

Thanks again for your work to provide the display of the NOAA-style reports from Cumulus. :clap: :clap: :clap:

I hope Steve adds the ability to upload the \Reports files routinely in a future release of Cumulus.

Best regards,
Ken

User avatar
beteljuice
Posts: 2507
Joined: Tue 09 Dec 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

Post by beteljuice » Sat 27 Aug 2011 10:04 pm

Thank you, all I did was mess with your script :P

Co-operation is always more rewarding than confrontation ;)
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
JennyLeez
Posts: 266
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: Experiment !

Post by JennyLeez » Mon 29 Aug 2011 1:30 am

beteljuice wrote: ".... Anyone interested ?"
Or am typing to myself :o
.
Many many thanks beteljuice. I made a separate noaarep.css in the end to get it working.
Much nicer with that css you enjoy :)
...... you are never wasting your time, I try anything you throw in here ...lol

http://wairoa.net/weather/noaa-reports.htm
Cheers
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image

User avatar
sunray24
Posts: 38
Joined: Wed 20 Oct 2010 1:05 pm
Weather Station: La Crosse 2355
Operating System: Windows 7
Location: Perth, Western Australia
Contact:

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

Post by sunray24 » Sun 04 Sep 2011 2:21 pm

Time for a silly question.
How do you produce the noaa report in the first place.
Is there an option in cumulus somewhere to produce the report?

n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

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

Post by n9mfk » Sun 04 Sep 2011 3:15 pm

Hi Scott,
It is a option beta cumulus 192 build 1009

Beau

southhedlandweather
Posts: 7
Joined: Wed 14 Sep 2011 11:02 pm
Weather Station: Fine Offset
Operating System: Windows Vista
Location: Australia

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

Post by southhedlandweather » Thu 15 Sep 2011 10:40 am

how do i create the NOAA reports with cumulus???

Post Reply