2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-05 08:20:23 +00:00

changed: _UnDef in modules

55_GDS.pm
55_Infopanel.pm

git-svn-id: https://svn.fhem.de/fhem/trunk@7875 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-04 21:56:44 +00:00
parent ef74977829
commit 720ed0fa2d
2 changed files with 2 additions and 15 deletions

View File

@ -132,7 +132,7 @@ sub GDS_Undef($$) {
my $name = $hash->{NAME};
RemoveInternalTimer($hash);
my $url = '/gds';
$data{FWEXT}{$url} = undef if int(devspec2array('TYPE=GDS')) == 1;
delete $data{FWEXT}{$url} if int(devspec2array('TYPE=GDS')) == 1;
return undef;
}

View File

@ -114,7 +114,7 @@ sub btIP_Undef($$) {
my ($hash, $arg) = @_;
# check if last device
my $url = '/btip';
$data{FWEXT}{$url} = undef if int(devspec2array('TYPE=InfoPanel')) == 1;
delete $data{FWEXT}{$url} if int(devspec2array('TYPE=InfoPanel')) == 1;
return undef;
}
@ -324,19 +324,6 @@ sub btIP_itemImg {
return $output;
}
# # embed link to plot
# #
# my $url;
# $url = "$FW_ME/SVG_showLog?dev=". $plotName[0].
# "&logdev=". InternalVal($plotName[0], "LOGDEVICE", "").
# "&gplotfile=". InternalVal($plotName[0], "GPLOTFILE", "").
# "&logfile=". InternalVal($plotName[0], "LOGFILE", "CURRENT").
# "&plotsize=". "$newWidth,$newHeight";
# $url .= "&pos=". ($plotName[1]) ? $plotName[1] : 'day';
# $url .= "&zoom=". ($plotName[2]) ? $plotName[2] : undef;
#
# $output = "<image id=\"$id\" x=\"$x\" y=\"$y\" width=\"".$width."px\" height=\"".$height."px\" \nxlink:href=\"$url\" />\n";
sub _btIP_imgData {
my ($arg,$scale) = @_;
my $info = image_info(\$arg);