mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
Small changes
git-svn-id: https://svn.fhem.de/fhem/trunk@654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7c91041218
commit
2ebd3cfe36
@ -1,5 +1,5 @@
|
|||||||
- =DATE= (4.10)
|
- =DATE= (4.10)
|
||||||
- feature: KM271: Read only
|
- feature: KM271
|
||||||
- bugfix: 99_SUNRISE_EL endless loop bug
|
- bugfix: 99_SUNRISE_EL endless loop bug
|
||||||
- feature: CUL: optional baudrate spec in definition
|
- feature: CUL: optional baudrate spec in definition
|
||||||
- feature: CUL: sendpool attribute
|
- feature: CUL: sendpool attribute
|
||||||
|
@ -567,6 +567,9 @@ CUL_XmitLimitCheck($$)
|
|||||||
$hash->{NR_CMD_LAST_H} = int(@b);
|
$hash->{NR_CMD_LAST_H} = int(@b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Translate data prepared for an FHZ to CUL syntax, so we can reuse
|
||||||
|
# the FS20 and FHZ modules.
|
||||||
sub
|
sub
|
||||||
CUL_WriteTranslate($$$)
|
CUL_WriteTranslate($$$)
|
||||||
{
|
{
|
||||||
@ -605,7 +608,7 @@ CUL_Write($$$)
|
|||||||
($fn, $msg) = CUL_WriteTranslate($hash, $fn, $msg);
|
($fn, $msg) = CUL_WriteTranslate($hash, $fn, $msg);
|
||||||
return if(!defined($fn));
|
return if(!defined($fn));
|
||||||
|
|
||||||
Log 5, "CUL sending $fn$msg";
|
Log 5, "$hash->{NAME} sending $fn$msg";
|
||||||
my $bstring = "$fn$msg";
|
my $bstring = "$fn$msg";
|
||||||
|
|
||||||
if($fn eq "F") {
|
if($fn eq "F") {
|
||||||
|
@ -7,4 +7,4 @@ FHEM:
|
|||||||
Webpgm2
|
Webpgm2
|
||||||
- plot data from multiple files in a single picture
|
- plot data from multiple files in a single picture
|
||||||
- setting the dummy state via dropdown is not possible
|
- setting the dummy state via dropdown is not possible
|
||||||
- SVG gimmicks for the plot
|
- click on the graph only correct for the day zoom
|
||||||
|
@ -160,7 +160,7 @@ my $nextat; # Time when next timer will be triggered.
|
|||||||
my $intAtCnt=0;
|
my $intAtCnt=0;
|
||||||
my %duplicate; # Pool of received msg for multi-fhz/cul setups
|
my %duplicate; # Pool of received msg for multi-fhz/cul setups
|
||||||
my $duplidx=0; # helper for the above pool
|
my $duplidx=0; # helper for the above pool
|
||||||
my $cvsid = '$Id: fhem.pl,v 1.107 2010-05-18 08:08:53 rudolfkoenig Exp $';
|
my $cvsid = '$Id: fhem.pl,v 1.108 2010-07-18 08:17:48 rudolfkoenig Exp $';
|
||||||
my $namedef =
|
my $namedef =
|
||||||
"where <name> is either:\n" .
|
"where <name> is either:\n" .
|
||||||
"- a single device name\n" .
|
"- a single device name\n" .
|
||||||
@ -2093,7 +2093,7 @@ Dispatch($$$)
|
|||||||
|
|
||||||
my @found;
|
my @found;
|
||||||
foreach my $m (sort { $modules{$a}{ORDER} cmp $modules{$b}{ORDER} }
|
foreach my $m (sort { $modules{$a}{ORDER} cmp $modules{$b}{ORDER} }
|
||||||
grep {defined($modules{$_}{ORDER});}keys %modules) {
|
grep {defined($modules{$_}{ORDER})} keys %modules) {
|
||||||
next if($iohash->{Clients} !~ m/:$m:/);
|
next if($iohash->{Clients} !~ m/:$m:/);
|
||||||
|
|
||||||
# Module is not loaded or the message is not for this module
|
# Module is not loaded or the message is not for this module
|
||||||
|
@ -42,20 +42,19 @@ uncompressPoints(cmpData)
|
|||||||
|
|
||||||
|
|
||||||
function
|
function
|
||||||
get_cookie(name)
|
get_cookie()
|
||||||
{
|
{
|
||||||
var c = parent.document.cookie;
|
var c = parent.document.cookie;
|
||||||
if(c == null)
|
if(c == null)
|
||||||
return "";
|
return "";
|
||||||
var results = c.match("fw_"+escape(name)+'=(.*?)(;|$)' );
|
var results = c.match('fhemweb=(.*?)(;|$)' );
|
||||||
return (results ? unescape(results[1]) : "");
|
return (results ? unescape(results[1]) : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
function
|
function
|
||||||
set_cookie(name, value)
|
set_cookie(value)
|
||||||
{
|
{
|
||||||
name = "fw_"+escape(name);
|
parent.document.cookie="fhemweb="+escape(value);
|
||||||
parent.document.cookie=name+"="+escape(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -65,8 +64,7 @@ svg_copy(evt)
|
|||||||
var d = evt.target.ownerDocument;
|
var d = evt.target.ownerDocument;
|
||||||
var cp = d.getElementById("svg_copy");
|
var cp = d.getElementById("svg_copy");
|
||||||
cp.firstChild.nodeValue = " ";
|
cp.firstChild.nodeValue = " ";
|
||||||
set_cookie(old_sel.getAttribute("title"),
|
set_cookie(old_sel.getAttribute("y_min")+":"+
|
||||||
old_sel.getAttribute("y_min")+":"+
|
|
||||||
old_sel.getAttribute("y_mul")+":"+
|
old_sel.getAttribute("y_mul")+":"+
|
||||||
compressPoints(old_sel.getAttribute("points")));
|
compressPoints(old_sel.getAttribute("points")));
|
||||||
}
|
}
|
||||||
@ -80,7 +78,7 @@ svg_paste(evt)
|
|||||||
|
|
||||||
var o=d.createElementNS(xmlns, "polyline");
|
var o=d.createElementNS(xmlns, "polyline");
|
||||||
o.setAttribute("class", "pasted");
|
o.setAttribute("class", "pasted");
|
||||||
var data = get_cookie(old_sel.getAttribute("title")).split(":", 3);
|
var data = get_cookie().split(":", 3);
|
||||||
o.setAttribute("points", uncompressPoints(data[2]));
|
o.setAttribute("points", uncompressPoints(data[2]));
|
||||||
|
|
||||||
var h = parseFloat(old_sel.getAttribute("y_h"));
|
var h = parseFloat(old_sel.getAttribute("y_h"));
|
||||||
@ -124,8 +122,7 @@ svg_labelselect(evt)
|
|||||||
if(sel.getAttribute("points") != null) {
|
if(sel.getAttribute("points") != null) {
|
||||||
tl.firstChild.nodeValue = evt.target.getAttribute("title");
|
tl.firstChild.nodeValue = evt.target.getAttribute("title");
|
||||||
cp.firstChild.nodeValue = "Copy";
|
cp.firstChild.nodeValue = "Copy";
|
||||||
ps.firstChild.nodeValue = (
|
ps.firstChild.nodeValue = (get_cookie()==""?" ":"Paste");
|
||||||
get_cookie(sel.getAttribute("title"))==""?" ":"Paste");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user