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
- nking
- Posts: 808
- Joined: Thu 17 Dec 2009 2:03 pm
- Weather Station: W-8681
- Operating System: Windows 10
- Location: Hurstpierpoint, West Sussex, UK
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Hi Beteljuice,
Thanks for replying. I do want to use your pack, in fact that is what I downloaded and attempted to follow but alas I must have got something wrong. Unfortunately, my knowledge is so poor that I don't have the skill to understand or resolve what I've done wrong and your suggestion to amend the css to resolve it is beyond my comprehension. I'm sure you probably feel like , but if you are able to provide idiot level instructions then I'll try to follow them to the best of my ability
Thanks for replying. I do want to use your pack, in fact that is what I downloaded and attempted to follow but alas I must have got something wrong. Unfortunately, my knowledge is so poor that I don't have the skill to understand or resolve what I've done wrong and your suggestion to amend the css to resolve it is beyond my comprehension. I'm sure you probably feel like , but if you are able to provide idiot level instructions then I'll try to follow them to the best of my ability
-
- Posts: 1832
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Have you got noaarep.css in the correct place on your server?nking wrote:Hi Beteljuice,
Thanks for replying. I do want to use your pack, in fact that is what I downloaded and attempted to follow but alas I must have got something wrong. Unfortunately, my knowledge is so poor that I don't have the skill to understand or resolve what I've done wrong and your suggestion to amend the css to resolve it is beyond my comprehension. I'm sure you probably feel like , but if you are able to provide idiot level instructions then I'll try to follow them to the best of my ability
-
- Posts: 38
- Joined: Tue 07 Feb 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Hi all, I ask your advice to resolve a display issue of some characters that the program does not display properly: for example, "Falzè " becomes "Falz�", "°C" becomes "�C".
Thank you!!!!
Thank you!!!!
My Weather Station: http://piavemeteo.altervista.org
- 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
Your page 'charset' is probably not correctly being applied - there have been problems like this on other things as well.
Hopefully someone using your language can come to the rescue.
A link to your page please ......
Hopefully someone using your language can come to the rescue.
A link to your page please ......
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 38
- Joined: Tue 07 Feb 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
This is link: http://piavemeteo.altervista.org/NOAA-reports.php
My Weather Station: http://piavemeteo.altervista.org
-
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Do the reports look ok when you look at them via Cumulus 'View' menu?
I'm guessing your problem is with the reports, not the web viewer?
Have you selected UTF-8 character set, or defaulted to your PC's code, in Cumulus 'Configuration' menu, 'NOAA Setup' screen?
From Wiki:
I wonder if I should be celebrating, or saddened, as this is my 300th post!
I'm guessing your problem is with the reports, not the web viewer?
Have you selected UTF-8 character set, or defaulted to your PC's code, in Cumulus 'Configuration' menu, 'NOAA Setup' screen?
From Wiki:
I'm unsure which is right for you (I actually have it ticked for me), but you could either untick (=0) or tick (=1) to reverse your current selection.0 = Uses the encoding used for the viewer's operating system's default ANSI code page.
1 = Uses UTF8 (UCS Transformation Format—8-bit) format - the dominant character encoding for the World-Wide Web as using one to three bytes it represents most characters in common use covering most languages.
I wonder if I should be celebrating, or saddened, as this is my 300th post!
-
- Posts: 38
- Joined: Tue 07 Feb 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Solved !! ... I had to tick the UTF-8 option from the configuration of the Cumulus NOOA report. Thanks for swfs reply !!!!
My Weather Station: http://piavemeteo.altervista.org
-
- Posts: 4
- Joined: Sun 15 Apr 2018 3:54 pm
- Weather Station: PCE-FWS 20
- Operating System: Wndows 10
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Hi all, I ask for advice to solve a problem with Noaa data. I can not view Cumulus Noaa data in the Saratoga template. You can see the year and month buttons but the data are not loaded. Can someone help me solve the problem? This is the web page http://www.meteoalbianotn.altervista.or ... eports.php thanks
- PaulMy
- Posts: 3881
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Do the NOAA YR and MO reports actually exist on your website?
Do you have the correct path in Settings-weather.php?
and important that spelling is correct for your file i.e. reports vs Reports
Enjoy,
Paul
Do you have the correct path in Settings-weather.php?
Code: Select all
# For NOAA reports
$SITE['NOAAdir'] = '../weather/reports/'; // relative location of the NOAA report files
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 4
- Joined: Sun 15 Apr 2018 3:54 pm
- Weather Station: PCE-FWS 20
- Operating System: Wndows 10
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
These are my parameters
You do not have the required permissions to view the files attached to this post.
- PaulMy
- Posts: 3881
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Your reports appear here http://www.meteoalbianotn.altervista.or ... YR2018.TXT
but in my set up i have it as http://www.komokaweather.com/weather/re ... YR2018.txt
Not sure of the file extension in capitals TXT vs txt would make a difference.
Paul
but in my set up i have it as http://www.komokaweather.com/weather/re ... YR2018.txt
Not sure of the file extension in capitals TXT vs txt would make a difference.
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 4
- Joined: Sun 15 Apr 2018 3:54 pm
- Weather Station: PCE-FWS 20
- Operating System: Wndows 10
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Now it works, changed from TXT to txt. Thank you
- PaulMy
- Posts: 3881
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Glad you have it working as should be. I am not very knowledgeable but have picked up a few key things overt the years from the many posts here.
Enjoy again.
Paul
Enjoy again.
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: PHP Web 'viewer' for Cumulus NOAA Style reports
Hi all.
Posted this on https://www.wxforum.net/index.php as well but - file name is different.
Running Cumulus MX in New Zealand (we see issues early!)
Found that
NOAA-reports.php (Version 3.4)
generates an error
Notice: Undefined index: NOAAYR2020.txt in C:\wamp64\www\weather\NOAA-reports.php on line 294
This fix seems to work:-
$nav_build = array(); // initialise, will become eg. $nav_build[2011][found_year, months[] ]
// Check if it is first day of the year. The reports are always for the previous day so for new years day reduce year by one.
if ( date('z') === '0' ) { $now_year = $now_year - 1 ; }
for ($y = $now_year; $y >= $first_year; $y--) { // populate $nav_build array()
Add the two lines that are bold between line 285 and 286.
Actually better placed between lines 169 and 170
$now_year = $now['year'];
// Check if it is first day of the year. The reports are always for the previous day so for new years day reduce year by one.
if ( date('z') === '0' ) { $now_year = $now_year - 1 ; }
$prior_month = $now['mon'] - 1;
You may notice these errors were reported on a local development server where most errors display. The error did not show on the public website as our hosting service suppresses most errors.
Posted this on https://www.wxforum.net/index.php as well but - file name is different.
Running Cumulus MX in New Zealand (we see issues early!)
Found that
NOAA-reports.php (Version 3.4)
generates an error
Notice: Undefined index: NOAAYR2020.txt in C:\wamp64\www\weather\NOAA-reports.php on line 294
This fix seems to work:-
$nav_build = array(); // initialise, will become eg. $nav_build[2011][found_year, months[] ]
// Check if it is first day of the year. The reports are always for the previous day so for new years day reduce year by one.
if ( date('z') === '0' ) { $now_year = $now_year - 1 ; }
for ($y = $now_year; $y >= $first_year; $y--) { // populate $nav_build array()
Add the two lines that are bold between line 285 and 286.
Actually better placed between lines 169 and 170
$now_year = $now['year'];
// Check if it is first day of the year. The reports are always for the previous day so for new years day reduce year by one.
if ( date('z') === '0' ) { $now_year = $now_year - 1 ; }
$prior_month = $now['mon'] - 1;
You may notice these errors were reported on a local development server where most errors display. The error did not show on the public website as our hosting service suppresses most errors.
- mcrossley
- Posts: 12925
- 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
I am running an *much* older version (3.1) but modified by me. I took a different approach and just subtract 1 day at the very start, it simplifies things greatly! It then copes with both the change of the month and the year. Maybe the betlejuice could incorporate something like this?...
Code: Select all
$now = date_create('now')->modify('-1 day');
$now_month = $now->format('m');
$now_year = $now->format('Y');