mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 14:10:21 +00:00
make the icon using the image proxy
This commit is contained in:
parent
7c6ae901d9
commit
d25a0f6d72
2 changed files with 4 additions and 3 deletions
|
@ -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'],
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<h4 title="{{$lastupdate}}">{{$title}}: {{$city}}</h4>
|
||||
</div>
|
||||
<p>
|
||||
<img src="http://openweathermap.org/img/w/{{$icon}}.png" title="{{$description}}">
|
||||
<img src="{{$icon}}" title="{{$description}}">
|
||||
<ul class="curweather-details">
|
||||
<li><strong>{{$temp}}</strong></li>
|
||||
<li>{{$relhumidity['caption']}}: {{$relhumidity['val']}}</li>
|
||||
|
|
Loading…
Reference in a new issue