Hi Guido,
ich hab grad deinen Eintrag in der 99_MyUtils.pm mit meinem verglichen:
###################################################################################
# Adapted WeatherOutput from FHEMWEB
# Store weathericons in new subdir FHEM/weathericons
# Check comment 10 lines below to switch between google icons and local
icons
# Include into fhem using
# define MyWeatherWeblink weblink htmlCode {
WeatherAsHtmlLocal("MyWeatherName") }
sub WeatherAsHtmlLocal($) {
my ($d) = @_;
$d = "
return "$d is not a Weather instance
"
if(!$defs{$d} || $defs{$d}{TYPE} ne "Weather");
my $imgHome="http://www.google.com";
##########################
# to use google icons, comment line below and reload this program
# $imgHome="/fhem/weathericons"; #turn this line into a comment
to use google icons
##########################
my $ret = "
%s temp %s, hum %s, %s | |
%s: %s min %s max %s |
return $ret;
}
Unterschied konnte ich keinen erkennen.
Bei dir werden die Icons angezeigt bei mir nicht

Wenn ich diese Zeile
$imgHome="/fhem/icons"; #turn this line into a comment to use
google icons, uncomment it to use local icons
auskommentiere dann werden die Google-Icons angezeigt.
Nur die Weather-Icons klappen nicht (und ich hab die mittlerweile in JEDEN
Ordner auf der FB kopiert!!).
Hast du noch ne Idee woran ich schrauben könnte?
Grüße
Am Dienstag, 24. Juli 2012 17:13:09 UTC+2 schrieb Guido:
>
> Hallo,
>
>
> mein Code in 99_MyUtils.pm sieht so aus:
>
>
>
> ###################################################################################
> # Adapted WeatherOutput from FHEMWEB
> # Store weathericons in www/pgm2/
> # Check comment 10 lines below to switch between google icons and local
> icons
> # Include into fhem using
> # define MyWeatherWeblink weblink htmlCode {
> WeatherAsHtmlLocal("MyWeatherName") }
> sub
> WeatherAsHtmlLocal($)
> {
> my ($d) = @_;
> $d = "
> return "$d is not a Weather instance
"
> if(!$defs{$d} || $defs{$d}{TYPE} ne "Weather");
>
> my $imgHome="http://www.google.com";
>
> ##########################
> # to use google icons, comment line below and reload this program
> $imgHome="/fhem/icons"; #turn this line into a comment to use
> google icons, uncomment it to use local icons
> ##########################
>
> my $ret = "
%s temp %s, hum %s, > %s | |
%s: %s min %s max > %s |