Jacek Kowalski
2016-02-12 6411a4f462fcd039ce4d233aaf28a5186b20eeea
[mod_pogoda] Podbicie wersji API yr.no
1 files modified
2 ■■■ changed files
modules/30_pogoda/api_yrno.php 2 ●●● patch | view | raw | blame | history
modules/30_pogoda/api_yrno.php
@@ -203,7 +203,7 @@
}
function yrno_weather($lat, $lon) {
    $down = new DownloadHelper('http://api.yr.no/weatherapi/locationforecastlts/1.1/?lat='.urlencode($lat).';lon='.urlencode($lon));
    $down = new DownloadHelper('http://api.yr.no/weatherapi/locationforecastlts/1.2/?lat='.urlencode($lat).';lon='.urlencode($lon));
    $down->setopt(CURLOPT_USERAGENT, 'BotGG/'.main::VERSION_NUM.' WeatherModule/1.0 (http://bot.jacekk.net/weather.html)');
    try {
        $data = $down->exec();