Weather Module not working

I want to use the weather module, but it doesn’t work. I already installed the forecast, but when I try to add at the layout and click to “reques a forecast”, it say “No data returned, please check error log.” What can I do.

I checked the log it is showing
Unable to reach Forecast API. No Host Found (HTTP Code 0). Curl Error = SSL certificate problem: unable to get local issuer certificate

Do you have API key? http://xibo.org.uk/manual/en/media_module_weather.html

Regarding this curl error, please have a look here Using Tickers, Forecast, Twitter and other external resources that make use of HTTPS connections

i change the php line in to

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =c:\xampp\php\cacert.pem

still same problem

Pls Help to close this problem

Did you follow the thread Peter posted? I don’t think disabling parts of the code is the way to go. Curl and the “latest CA root certificates” are both requirements to get the weather module working. Have you downloaded the latest root certificates and placed them in the correct location?

Your curl.cainfo line is still commented out. You need to uncomment it, so it looks like this:

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo=c:\xampp\php\cacert.pem

Assuming that you’ve downloaded the certificate bundle and saved it in c:\xampp\php\cacert.pem

Then restart your webserver service (Apache or whatever you’re running)

Thank a lot .Solved the problem.

1 Like