mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
98_SVG.pm: fix plotAsPng with get allowed (Forum #123937)
git-svn-id: https://svn.fhem.de/fhem/trunk@25189 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fbd9d2a3f6
commit
8ab6390951
@ -76,6 +76,7 @@ use vars qw($FW_wname); # Web instance
|
|||||||
use vars qw($FW_subdir); # Sub-path in URL, used by FLOORPLAN/weblink
|
use vars qw($FW_subdir); # Sub-path in URL, used by FLOORPLAN/weblink
|
||||||
use vars qw(%FW_pos); # scroll position
|
use vars qw(%FW_pos); # scroll position
|
||||||
use vars qw($FW_cname); # Current connection name
|
use vars qw($FW_cname); # Current connection name
|
||||||
|
use vars qw($FW_chash); # client fhem hash
|
||||||
use vars qw(%FW_hiddenroom); # hash of hidden rooms, used by weblink
|
use vars qw(%FW_hiddenroom); # hash of hidden rooms, used by weblink
|
||||||
use vars qw($FW_plotmode);# Global plot mode (WEB attribute), used by SVG
|
use vars qw($FW_plotmode);# Global plot mode (WEB attribute), used by SVG
|
||||||
use vars qw($FW_plotsize);# Global plot size (WEB attribute), used by SVG
|
use vars qw($FW_plotsize);# Global plot size (WEB attribute), used by SVG
|
||||||
@ -120,7 +121,6 @@ my $FW_XHR; # Data only answer, no HTML
|
|||||||
my $FW_id=""; # id of current page
|
my $FW_id=""; # id of current page
|
||||||
my $FW_jsonp; # jasonp answer (sending function calls to the client)
|
my $FW_jsonp; # jasonp answer (sending function calls to the client)
|
||||||
my $FW_headerlines; #
|
my $FW_headerlines; #
|
||||||
my $FW_chash; # client fhem hash
|
|
||||||
my $FW_encoding="UTF-8";
|
my $FW_encoding="UTF-8";
|
||||||
my $FW_styleStamp=time();
|
my $FW_styleStamp=time();
|
||||||
my %FW_svgData;
|
my %FW_svgData;
|
||||||
|
@ -13,6 +13,7 @@ sub FW_pO(@);
|
|||||||
use vars qw($FW_ME); # webname (default is fhem), needed by 97_GROUP
|
use vars qw($FW_ME); # webname (default is fhem), needed by 97_GROUP
|
||||||
use vars qw($FW_RET); # Returned data (html)
|
use vars qw($FW_RET); # Returned data (html)
|
||||||
use vars qw($FW_RETTYPE); # image/png or the like
|
use vars qw($FW_RETTYPE); # image/png or the like
|
||||||
|
use vars qw($FW_chash); # client fhem hash
|
||||||
use vars qw($FW_cssdir); # css directory
|
use vars qw($FW_cssdir); # css directory
|
||||||
use vars qw($FW_detail); # currently selected device for detail view
|
use vars qw($FW_detail); # currently selected device for detail view
|
||||||
use vars qw($FW_dir); # base directory for web server
|
use vars qw($FW_dir); # base directory for web server
|
||||||
@ -2445,7 +2446,8 @@ plotAsPng(@)
|
|||||||
@webs=devspec2array("TYPE=FHEMWEB");
|
@webs=devspec2array("TYPE=FHEMWEB");
|
||||||
foreach(@webs) {
|
foreach(@webs) {
|
||||||
if(!InternalVal($_,'TEMPORARY',undef)) {
|
if(!InternalVal($_,'TEMPORARY',undef)) {
|
||||||
$FW_wname=InternalVal($_,'NAME','');
|
$FW_wname = InternalVal($_,'NAME','');
|
||||||
|
$FW_chash = $defs{$FW_wname};
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user