For a quite long time I have no working forecast from the Weather Underground on my website. I updated WU-forecast.php file and inserted an API key. Yet I still have no data from WU.
How to solve the issue?
Website link: http://slesinpogoda.cba.pl/wxindex.php?lang=en#
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
No WU Weather Forecast on website
Moderator: saratogaWX
- saratogaWX
- Posts: 1185
- 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: No WU Weather Forecast on website
That is strange.
When I do view-source:http://slesinpogoda.cba.pl/wxforecast.php?force=1 it shows
The line:
Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs
is suspicious.. it looks like cUrl on your webserver is not working correctly.
I tried running check-fetch-times.php to see if other curl load is also working/broken and saw a series of Warning: messages
about all the curl functions saying "curl_{function}() has been disabled for security reasons"
You'll need to contact the tech support for your webhost and get them to enable curl functions for your site to work correctly.
When I do view-source:http://slesinpogoda.cba.pl/wxforecast.php?force=1 it shows
I tried both URLs in the browser (the raw and API url) and both worked fine.<!-- WU-forecast.php (ML) Version 3.03 - 22-Feb-2017 on PHP 5.3.29 -->
<!-- temps in C -->
<!-- autoSetTemplate using wide aspect. -->
<!-- WU_API Raw URL='http://www.wunderground.com/cgi-bin/fin ... 00.2.12345' -->
<!-- WU API New URL='http://api.wunderground.com/api/664f9a4 ... 12345.json' -->
<!-- loading from https://api.wunderground.com/api/664f9a ... 12345.json. -->
<!-- curl fetching 'https://api.wunderground.com/api/664f9a ... 12345.json' -->
<!-- HTTP stats: RC= dest=
Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs -->
<!-- headers:
-->
<!-- RC=, bytes=0 -->
<!-- saved cache to ./cache/WU-forecast-json-0-en.txt (0 bytes) -->
<!-- using charsetInput='UTF-8' charsetOutput='ISO-8859-1' doIconv='1' doRTL='' -->
<!-- processing JSON entries for forecast -->
<!-- rawJSON size is 0 bytes -->
<!-- WU_prepareJSON: Success. Valid UTF-8. -->
<!-- json_decode returns - No errors -->
The line:
Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs
is suspicious.. it looks like cUrl on your webserver is not working correctly.
I tried running check-fetch-times.php to see if other curl load is also working/broken and saw a series of Warning: messages
about all the curl functions saying "curl_{function}() has been disabled for security reasons"
You'll need to contact the tech support for your webhost and get them to enable curl functions for your site to work correctly.
-
- Posts: 79
- Joined: Thu 23 Aug 2012 8:53 pm
- Weather Station: Ecowitt HP3501
- Operating System: Windows 10
- Location: Konin, Poland
Re: No WU Weather Forecast on website
Unfortunately, cURL is turned off on free accounts of my webserver...
- saratogaWX
- Posts: 1185
- 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: No WU Weather Forecast on website
Ahh... you'll need to either pay, or find another hoster that allows curl for free. The scripts in the template use external resources (WU, temis.nl) for data, so without curl, your site will not be fully functional.