So in my Cumulus Settings.php file, I changed this line accordingly:
$SITE['fcsturlWC'] = 'Maryborough, Queensland, Australia|-25.5385,152.7034'; // default forecast, should match first line in $SITE['WCforecasts']
So then below, as specified I add:
$SITE['WCforecasts'] = array(
// Location name to display|lat,long (separated by | character)
'Maryborough, Queensland, Australia|-25.5385,152.7034',
'Saratoga, CA, USA|37.27465,-122.02295',
<more towns here>
But after I reupload my Settings file, the forecasts are still stuck on the default (Saratoga's) conditions, despite adding my city to the $SITE['fcsturlWC'] line.
But here's the kicker; if I just add the line 'Maryborough, Queensland, Australia|-25.5385,152.7034', at the bottom of the other cities under ['WCforecasts'], without modifying the ['fcsturlWC'] line, it works perfectly. But of course, the drawback is my city is not the default and I instead have to select it at the bottom of the dropdown box.
Any help would be greatly appreciated. My website is here, still in progress of setting up.
Big Edit:: It's working fine now, and I should mention to anyone else who runs into this problem, the settings above were correct; it just took a little time to take effect.
But I do have a second query; I'm about to look into it but any ideas as to why CumulusMX weather data is NOT Current? If I pull my CUtags from my site they appear to be up to date yeah?
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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 V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Trouble with WU forecasts
Moderator: saratogaWX
- saratogaWX
- Posts: 1187
- 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: Trouble with WU forecasts
Using the web developer tools in Firefox to look at the webserver response headers shows that Cloudflare is active on your website, so some/all of your site is cached. Depending on the cache expiration, you may see results that are 'stale' when doing updates to your site.
You should either disable Cloudflare caching for your site, or at least, exempt .php and .txt extensions from any caching.
You should either disable Cloudflare caching for your site, or at least, exempt .php and .txt extensions from any caching.
- saratogaWX
- Posts: 1187
- 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: Trouble with WU forecasts
Looking at your Settings.php, you have while the date format in CUtags.php shows and those dates are in MM/DD/YYYY format.
You should either change CumulusMX setup to use DD/MM/YYYY format, OR change Settings.php to have so your wxstatus.php (and other pages) can correctly format the dates.
Code: Select all
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year. =false for day/month/year
Code: Select all
$WX['time'] = '03:40 on 18 January 2022';
$WX['date'] = '1/18/2022';
$WX['version'] = '3.14.1';
$WX['build'] = '3160';
$WX['update'] = '1/18/2022 3:40:06 AM';
You should either change CumulusMX setup to use DD/MM/YYYY format, OR change Settings.php to have
Code: Select all
$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year. =false for day/month/year
-
- Posts: 31
- Joined: Tue 19 Sep 2017 9:16 am
- Weather Station: Davis Vantage Pro2
- Operating System: Ubuntu
Re: Trouble with WU forecasts
That worked. Thanks so much!