Yes, changing the ‘www’ to ‘classic’ in the Wunderground URL in Settings.php is a good way to bypass the issue and works for the English-only templates. The Multilingual version will fail as all the translations use the new site format.
Please note that there are two versions of the script, one for the English-only (World template) or standalone use, and
one for the World-ML template. Be sure you download the correct version for your website!
The $WUforecastupdated variable is no longer set by the script since their pages do not contain a ‘date of the forecast’.
All the forecasts are now in Metric units in both under-icon min/max and in the text forecasts. That does mean the wind forecast only appears in km/h (and not in mph and km/h). They don’t appear to be honoring the ‘both’ selection for type of units, so I set it to metric so it will not annoy folks with pesky imperial units anymore
A caveat about the multilingual forecasts: the script does not do any language translation of what WU returns. If you have an issue with wording of the forecasts, please send WeatherUnderground a note regarding updating their translation … it’s not something I can fix with the script.
Not sure if you saw but one of the features of the new website is a new forecast system they are employing. They now have their own “BestForecast” using a proprietary modeling system and then the standard ones.
It might be fun if there was a way to choose which one to use with the script, even for us in the U.S. that normally use NWS.
I freely admit I haven’t entirely figured out how to tell which one is displaying on their site though.
Yes, the translations for German are worse … hopefully folks will give them direct feedback about the translations, and
that ‘water equivalent of’ is missing a translation in all the other languages.
You don’t need this script Dan… the WU-forecast.php is only for non-USA, non-Canada users. Stick with the advforecast2.php (NOAA) forecast for the USA and the ec-forecast.php (Environment Canada) for Canada.
Regrettably, their forecasts for the USA are from the NWS (so you see the same data as advforecast2.php provides, minus the active alerts for the area). They switched Canada weather from the EC to their new forecast system, so the script could be used in Canada (but without reporting current conditions and alerts like the ec-forecast.php script does).