]> git.mxchange.org Git - friendica-addons.git/blobdiff - curweather/curweather.php
make the icon using the image proxy
[friendica-addons.git] / curweather / curweather.php
index 88eee9c9713acccfd6f0ec32836517d2164aec2f..59d7e37886118caad7ea1f7d430f390225d53872 100644 (file)
@@ -10,7 +10,8 @@
  */
 
 require_once('include/network.php');
-include_once('include/text.php');
+require_once("mod/proxy.php");
+require_once('include/text.php');
 
 //  get the weather data from OpenWeatherMap
 function getWeather( $loc, $units='metric', $lang='en', $appid='', $cachetime=0) {
@@ -108,7 +109,7 @@ function curweather_network_mod_init(&$fk_app,&$b) {
        $t = get_markup_template("widget.tpl", "addon/curweather/" );
        $curweather = replace_macros ($t, array(
            '$title' => t("Current Weather"),
-           '$icon' => $res['icon'],
+           '$icon' => proxy_url('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
            '$city' => $res['city'],
            '$lon' => $res['lon'],
            '$lat' => $res['lat'],