Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
Moderator: daj
- 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
Update V3.1 - bug fix for 'twitch level' error reporting
https://cumulus.hosiene.co.uk/viewtopic.p ... 194#p49194
NB: If you have an earlier version running without problems ..........
https://cumulus.hosiene.co.uk/viewtopic.p ... 194#p49194
NB: If you have an earlier version running without problems ..........
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
I've been working my way through the instructions kindly provided by beteljuice to get NOAA reports available on my website.
I've hit a brick wall and I'm sure it's path related but for the life of me I cannot see where the problem lies.
This is the error being reported on my server:-
[12-Dec-2011 20:01:36] PHP Warning: opendir(./NOAA-reports) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /home/admin4/public_html/NOAA-reports/NOAA-reports.php on line 195
And here is the page I've created:- http://www.cheadlehulmeweather.co.uk/NOAA.php
Neither of the two reports (Dec or 2011) will display even though they exist in the NOAA-reports subfolder under my root public_html.
In public_html/NOAA-reports I have:-
NOAA-reports.php
noaarep.css
NOAAMO1211.txt
NOAAYR2011.txt
In public_html I have:-
NOAAT.php
NOAA.php
weatherstyle.css
Any help gratefully appreciated.
I've hit a brick wall and I'm sure it's path related but for the life of me I cannot see where the problem lies.
This is the error being reported on my server:-
[12-Dec-2011 20:01:36] PHP Warning: opendir(./NOAA-reports) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /home/admin4/public_html/NOAA-reports/NOAA-reports.php on line 195
And here is the page I've created:- http://www.cheadlehulmeweather.co.uk/NOAA.php
Neither of the two reports (Dec or 2011) will display even though they exist in the NOAA-reports subfolder under my root public_html.
In public_html/NOAA-reports I have:-
NOAA-reports.php
noaarep.css
NOAAMO1211.txt
NOAAYR2011.txt
In public_html I have:-
NOAAT.php
NOAA.php
weatherstyle.css
Any help gratefully appreciated.
- saratogaWX
- Posts: 1211
- 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
I'd suggest you change the directory specification fromRayProudfoot wrote:I've been working my way through the instructions kindly provided by beteljuice to get NOAA reports available on my website.
I've hit a brick wall and I'm sure it's path related but for the life of me I cannot see where the problem lies.
This is the error being reported on my server:-
[12-Dec-2011 20:01:36] PHP Warning: opendir(./NOAA-reports) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /home/admin4/public_html/NOAA-reports/NOAA-reports.php on line 195
And here is the page I've created:- http://www.cheadlehulmeweather.co.uk/NOAA.php
Neither of the two reports (Dec or 2011) will display even though they exist in the NOAA-reports subfolder under my root public_html.
In public_html/NOAA-reports I have:-
NOAA-reports.php
noaarep.css
NOAAMO1211.txt
NOAAYR2011.txt
In public_html I have:-
NOAAT.php
NOAA.php
weatherstyle.css
Any help gratefully appreciated.
./NOAA-reports
to
./NOAA-reports/
and see if that fixes the issue.
Best regards,
Ken
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Thanks Ken. I think that has fixed one problem but I appear to have another related to my location adapted for England.
The error log is now complaining about line 433:-
[12-Dec-2011 21:19:07] PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in /home/admin4/public_html/NOAA-reports.php on line 433
That line is as follows:-
$rpt = preg_replace('State: Cheshire', 'County: Cheshire Country: UK', $rpt, 1);
The error log is now complaining about line 433:-
[12-Dec-2011 21:19:07] PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in /home/admin4/public_html/NOAA-reports.php on line 433
That line is as follows:-
$rpt = preg_replace('State: Cheshire', 'County: Cheshire Country: UK', $rpt, 1);
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
I reverted to the standard piece of code for the location and it seems to have fixed the problem.
http://www.cheadlehulmeweather.co.uk/NOAA.php
One last question. How do I generate files for all the months I have data for? Had a look in the Help but nothing jumped out at me.
http://www.cheadlehulmeweather.co.uk/NOAA.php
One last question. How do I generate files for all the months I have data for? Had a look in the Help but nothing jumped out at me.
- saratogaWX
- Posts: 1211
- 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
Hi Ray,RayProudfoot wrote:Thanks Ken. I think that has fixed one problem but I appear to have another related to my location adapted for England.
The error log is now complaining about line 433:-
[12-Dec-2011 21:19:07] PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in /home/admin4/public_html/NOAA-reports.php on line 433
That line is as follows:-
$rpt = preg_replace('State: Cheshire', 'County: Cheshire Country: UK', $rpt, 1);
The preg_replace would need to have a delimiter in the regex on the first argument like:
$rpt = preg_replace('/State: Cheshire/i', 'County: Cheshire Country: UK', $rpt, 1);
then it would execute correctly.
Best regards,
Ken
- saratogaWX
- Posts: 1211
- 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
Glad the spec on the directory fixed the issue.RayProudfoot wrote:I reverted to the standard piece of code for the location and it seems to have fixed the problem.
http://www.cheadlehulmeweather.co.uk/NOAA.php
One last question. How do I generate files for all the months I have data for? Had a look in the Help but nothing jumped out at me.
In the Cumulus, View, NOAA Monthly Report (and NOAA Yearly Report) there's an option at the bottom of the window to specify the Month/Year (or just Year) for the report. Select 'Update Report' then you can do a "Save" selecting ANSI file type.
Repeat for your missing reports, then manually upload the historical file(s) to your NOAA-reports/ directory.
Best regards,
Ken
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Hi Ken,
Thanks for your help with both questions. Given the location code works I'll leave that alone for now.
Regarding choosing another month/year for NOAA data I don't see an option at the bottom of that window. I'm running Cumulus on a netbook with a 1024*600 resolution. Might that be the reason?
Steve, should I be able to see the option at the bottom of that window to generate data for another period?
Thanks for your help with both questions. Given the location code works I'll leave that alone for now.
Regarding choosing another month/year for NOAA data I don't see an option at the bottom of that window. I'm running Cumulus on a netbook with a 1024*600 resolution. Might that be the reason?
Steve, should I be able to see the option at the bottom of that window to generate data for another period?
- 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
- caught between regex and str replace - example corrected, cheersKen wrote:The preg_replace would need to have a delimiter in the regex on the first argument like:
$rpt = preg_replace('/State: Cheshire/i', 'County: Cheshire Country: UK', $rpt, 1);
then it would execute correctly.
......................Imagine, what you will KNOW tomorrow !
- mcrossley
- Posts: 12951
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Probably, can you remote desktop into your netbook and specify a larger desktop size?RayProudfoot wrote:Regarding choosing another month/year for NOAA data I don't see an option at the bottom of that window. I'm running Cumulus on a netbook with a 1024*600 resolution. Might that be the reason?
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
It is created when you launch NOAA.php. It should then be uploaded to the NOAA-Reports folder on your server.dane wrote:Where do I find the noaarep.css
- dane
- Posts: 417
- Joined: Wed 10 Sep 2008 2:15 pm
- Weather Station: Rosenborg 68700
- Operating System: Win10 Ult., 64-bit, RaspberryPi
- Location: Gilleleje, Denmark
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
NOAA.php what's that? All I have is NOAA-reports.php...RayProudfoot wrote:It is created when you launch NOAA.php. It should then be uploaded to the NOAA-Reports folder on your server.dane wrote:Where do I find the noaarep.css
Ib
-
- Posts: 3403
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
That will display the climate reports but if you want a webpage with the same look and feel as your other pages that's where NOAA.php comes in. http://www.cheadlehulmeweather.co.uk/NOAA.php
- dane
- Posts: 417
- Joined: Wed 10 Sep 2008 2:15 pm
- Weather Station: Rosenborg 68700
- Operating System: Win10 Ult., 64-bit, RaspberryPi
- Location: Gilleleje, Denmark
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
I just took the vanilla NOAA-reports.php and uploaded it to my web-server.
And this is what I get: http://www.ibtest.dk/vejr/NOAA-reports.php
It doesn't look as nice as Beteljuice's sample display....
And this is what I get: http://www.ibtest.dk/vejr/NOAA-reports.php
It doesn't look as nice as Beteljuice's sample display....
Ib