Re: Модуль - Погода от OpenWeatherMap
Добавлено: Вт май 17, 2016 10:50 am
модуль хороший, зачем убирать?
Обсуждение проекта
https://mjdm.ru/forum/
я не про модуль , а про код который вписывается в Timer.onNewHour (см по переписке выше).adzam писал(а):модуль хороший, зачем убирать?
Ключик поставил, сравнил погоду на сайте в модуле и на яндексе (картинки прилагаю) , а фактически в тени 19,8.serghei писал(а):А API ключ свой поставили? А то похоже на нашу погоду в Кишиневе))) наверное поэтому и город не выбирается))
Код: Выделить всё
Warning: file_get_contents(http://openweathermap.org/img/w/.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/modules/app_openweather/app_openweather.class.php on line 422
Warning: date() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 298
Warning: date() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 299
Warning: gmdate() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 300
Warning: file_get_contents(http://openweathermap.org/img/w/.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/modules/app_openweather/app_openweather.class.php on line 422
Warning: date() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 298
Warning: date() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 299
Warning: gmdate() expects parameter 2 to be long, string given in /var/www/modules/app_openweather/app_openweather.class.php on line 300Код: Выделить всё
http://192.168.1.70/objects/?script=Refresh-OpenWeather. Код: Выделить всё
include_once(DIR_MODULES . 'app_openweather/app_openweather.class.php');
$openweather = new app_openweather();
$openweather->get_weather(gg('ow_city.id')); Код: Выделить всё
<div class="backbutton" onclick="location.href ='/objects/?script=Refresh-OpenWeather';">
<div data-page="home" class="icon"><i class="fa fa-refresh" aria-hidden="true"></i></div>
</div>Спасибо! То, что нужно!nick7zmail писал(а):Пропиши не ссылкой, а в поле - "выполнить при клике" выбери свой сценарий. Не будет улетать на страницу белую.