Page 2 of 19

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

Posted: Wed 24 Aug 2011 11:38 am
by gemini06720
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:

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

Posted: Wed 24 Aug 2011 12:44 pm
by steve
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.

Experiment !

Posted: Thu 25 Aug 2011 12:03 am
by beteljuice

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

Posted: Fri 26 Aug 2011 5:05 am
by gemini06720
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:

Re: Experiment !

Posted: Fri 26 Aug 2011 5:39 am
by gemini06720
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)

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

Posted: Fri 26 Aug 2011 7:16 am
by steve
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.

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

Posted: Fri 26 Aug 2011 9:17 am
by gemini06720
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... ;)

Update

Posted: Fri 26 Aug 2011 11:36 am
by beteljuice

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

Posted: Fri 26 Aug 2011 12:29 pm
by captzero
gemini06720 wrote:".... Anyone interested ?"
Thanks beteljuice...its working well on my site. :D

Cheers

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

Posted: Sat 27 Aug 2011 6:16 pm
by saratogaWX
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

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

Posted: Sat 27 Aug 2011 10:04 pm
by beteljuice
Thank you, all I did was mess with your script :P

Co-operation is always more rewarding than confrontation ;)

Re: Experiment !

Posted: Mon 29 Aug 2011 1:30 am
by JennyLeez
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

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

Posted: Sun 04 Sep 2011 2:21 pm
by sunray24
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?

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

Posted: Sun 04 Sep 2011 3:15 pm
by n9mfk
Hi Scott,
It is a option beta cumulus 192 build 1009

Beau

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

Posted: Thu 15 Sep 2011 10:40 am
by southhedlandweather
how do i create the NOAA reports with cumulus???