Page 1 of 1

Trouble with WU forecasts

Posted: Mon 17 Jan 2022 8:00 am
by bort483
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?

Re: Trouble with WU forecasts

Posted: Mon 17 Jan 2022 5:32 pm
by saratogaWX
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.

Re: Trouble with WU forecasts

Posted: Mon 17 Jan 2022 5:44 pm
by saratogaWX
Looking at your Settings.php, you have

Code: Select all

$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
while the date format in CUtags.php shows

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';
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

Code: Select all

$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year
so your wxstatus.php (and other pages) can correctly format the dates.

Re: Trouble with WU forecasts

Posted: Tue 18 Jan 2022 5:08 am
by bort483
That worked. Thanks so much!