parent
16b2bdc289
commit
e498262365
|
@ -49,7 +49,7 @@ function weather_get($lat, $lon)
|
|||
|
||||
$url = "https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=$lat&lon=$lon";
|
||||
$c = curl_init();
|
||||
curl_setopt($c, CURLOPT_USERAGENT, "eWeatherProxy/1.0");
|
||||
curl_setopt($c, CURLOPT_USERAGENT, "eWeatherProxy/1.0 (www.enlightenment.org)");
|
||||
curl_setopt($c, CURLOPT_URL, $url);
|
||||
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue