mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
stty/pgm2 fix for FHT summary
git-svn-id: https://svn.fhem.de/fhem/trunk@160 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fee4c0bc81
commit
c25b2fbf32
@ -381,6 +381,9 @@
|
|||||||
- feature: global attr allowfrom, as wished by Holger (8.1.2008)
|
- feature: global attr allowfrom, as wished by Holger (8.1.2008)
|
||||||
- feature: FHT: multiple commands, softbuffer changes, cmd rename, doc
|
- feature: FHT: multiple commands, softbuffer changes, cmd rename, doc
|
||||||
- feature: EM1010PC: automatic reset
|
- feature: EM1010PC: automatic reset
|
||||||
|
- feature: contrib/00_LIRC.pm (25.3, by Bernhard)
|
||||||
|
- bugfix : 00_FHZ: additional stty settings for strange Linux versions
|
||||||
|
- bugfix : pgm2 wrong temp summary for FHT's (reported by O.D., 16.4.2008)
|
||||||
|
|
||||||
- TODO
|
- TODO
|
||||||
emem -2.5kW / getDevData for emwz -1
|
emem -2.5kW / getDevData for emwz -1
|
||||||
|
@ -245,6 +245,14 @@ FHZ_Define($$)
|
|||||||
$po->stty_echok(0);
|
$po->stty_echok(0);
|
||||||
$po->stty_echoctl(0);
|
$po->stty_echoctl(0);
|
||||||
|
|
||||||
|
# Needed for some strange distros
|
||||||
|
$po->stty_echo(0);
|
||||||
|
$po->stty_icanon(0);
|
||||||
|
$po->stty_isig(0);
|
||||||
|
$po->stty_opost(0);
|
||||||
|
$po->stty_icrnl(0);
|
||||||
|
|
||||||
|
|
||||||
$hash->{PortObj} = $po;
|
$hash->{PortObj} = $po;
|
||||||
$hash->{FD} = $po->FILENO;
|
$hash->{FD} = $po->FILENO;
|
||||||
$hash->{DeviceName} = $dev;
|
$hash->{DeviceName} = $dev;
|
||||||
|
@ -121,7 +121,7 @@ EM_Set($@)
|
|||||||
|
|
||||||
my $d = EmGetData($name, "4545"); # Reset
|
my $d = EmGetData($name, "4545"); # Reset
|
||||||
return "Read error" if(!defined($d));
|
return "Read error" if(!defined($d));
|
||||||
sleep(5);
|
sleep(10);
|
||||||
EM_Set($hash, ($a[0], "time")); # Set the time
|
EM_Set($hash, ($a[0], "time")); # Set the time
|
||||||
sleep(1);
|
sleep(1);
|
||||||
$d = EmGetData($name, "67"); # "Push the button", we don't want usesr interaction
|
$d = EmGetData($name, "67"); # "Push the button", we don't want usesr interaction
|
||||||
|
@ -20,6 +20,8 @@ dummy_Set($@)
|
|||||||
my ($hash, @a) = @_;
|
my ($hash, @a) = @_;
|
||||||
|
|
||||||
return "no set value specified" if(int(@a) != 2);
|
return "no set value specified" if(int(@a) != 2);
|
||||||
|
return "Unknown argument $a[1], choose one of *" if($a[1] eq "?");
|
||||||
|
|
||||||
my $v = $a[1];
|
my $v = $a[1];
|
||||||
$hash->{CHANGED}[0] = $v;
|
$hash->{CHANGED}[0] = $v;
|
||||||
$hash->{STATE} = $v;
|
$hash->{STATE} = $v;
|
||||||
|
@ -97,6 +97,7 @@ description and <a href="faq.html">faq.html</a> for the F.A.Q.
|
|||||||
http://groups.google.com/group/FHZ1000-users-on-unix</a><br>
|
http://groups.google.com/group/FHZ1000-users-on-unix</a><br>
|
||||||
Martins Web frontend (webpgm3): <a href="http://www.martin-haas.de/fhz">
|
Martins Web frontend (webpgm3): <a href="http://www.martin-haas.de/fhz">
|
||||||
http://www.martin-haas.de/fhz</a><br>
|
http://www.martin-haas.de/fhz</a><br>
|
||||||
|
Another Martins Web frontend (myHCE): <a href="http://www.fischer-net.de/projekte/haustechnik/myhce.html">http://www.fischer-net.de/projekte/haustechnik/myhce.html</a><br>
|
||||||
CVS@berlios: <a href="http://developer.berlios.de/projects/fhem">
|
CVS@berlios: <a href="http://developer.berlios.de/projects/fhem">
|
||||||
http://developer.berlios.de/projects/fhem</a><br>
|
http://developer.berlios.de/projects/fhem</a><br>
|
||||||
LinViex (home automation frontend):
|
LinViex (home automation frontend):
|
||||||
|
@ -138,7 +138,7 @@ my %intAt; # Internal at timer hash.
|
|||||||
my $intAtCnt=0;
|
my $intAtCnt=0;
|
||||||
my $reread_active = 0;
|
my $reread_active = 0;
|
||||||
my $AttrList = "room comment";
|
my $AttrList = "room comment";
|
||||||
my $cvsid = '$Id: fhem.pl,v 1.38 2008-01-19 19:02:30 rudolfkoenig Exp $';
|
my $cvsid = '$Id: fhem.pl,v 1.39 2008-04-16 16:26:25 rudolfkoenig Exp $';
|
||||||
|
|
||||||
$init_done = 0;
|
$init_done = 0;
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ my %cmds = (
|
|||||||
"shutdown"=> { Fn=>"CommandShutdown",
|
"shutdown"=> { Fn=>"CommandShutdown",
|
||||||
Hlp=>",terminate the server" },
|
Hlp=>",terminate the server" },
|
||||||
"sleep" => { Fn=>"CommandSleep",
|
"sleep" => { Fn=>"CommandSleep",
|
||||||
Hlp=>"<sec>,sleep for sec, 3 decimal places are interpreted" },
|
Hlp=>"<sec>,sleep for sec, 3 decimal places" },
|
||||||
"trigger" => { Fn=>"CommandTrigger",
|
"trigger" => { Fn=>"CommandTrigger",
|
||||||
Hlp=>"<devspec> <state>,trigger notify command" },
|
Hlp=>"<devspec> <state>,trigger notify command" },
|
||||||
"xmllist" => { Fn=>"CommandXmlList",
|
"xmllist" => { Fn=>"CommandXmlList",
|
||||||
@ -1178,6 +1178,7 @@ CommandXmlList($$)
|
|||||||
my $str = "<FHZINFO>\n";
|
my $str = "<FHZINFO>\n";
|
||||||
my $lt = "";
|
my $lt = "";
|
||||||
|
|
||||||
|
delete($modules{""}) if(defined($modules{""}));
|
||||||
for my $d (sort { my $x = $modules{$defs{$a}{TYPE}}{ORDER} cmp
|
for my $d (sort { my $x = $modules{$defs{$a}{TYPE}}{ORDER} cmp
|
||||||
$modules{$defs{$b}{TYPE}}{ORDER};
|
$modules{$defs{$b}{TYPE}}{ORDER};
|
||||||
$x = ($a cmp $b) if($x == 0); $x; } keys %defs) {
|
$x = ($a cmp $b) if($x == 0); $x; } keys %defs) {
|
||||||
|
@ -235,6 +235,8 @@ FHEMWEB_AnswerCall($)
|
|||||||
open(FH, "$FHEMWEB_absicondir$1") || return;
|
open(FH, "$FHEMWEB_absicondir$1") || return;
|
||||||
pO join("", <FH>);
|
pO join("", <FH>);
|
||||||
close(FH);
|
close(FH);
|
||||||
|
} else {
|
||||||
|
Log 5, "Unknown document $arg requested";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -657,7 +659,9 @@ FHEMWEB_showRoom()
|
|||||||
|
|
||||||
} elsif($type eq "FHT") {
|
} elsif($type eq "FHT") {
|
||||||
|
|
||||||
$v =~ s/^[^0-9]*([.0-9]+).*$/$1/g;
|
$v = $__devs{$d}{STATE}{"measured-temp"}{VAL};
|
||||||
|
|
||||||
|
$v =~ s/ .*//;
|
||||||
pO "<td><a href=\"$__ME?detail=$d\">$d</a></td>";
|
pO "<td><a href=\"$__ME?detail=$d\">$d</a></td>";
|
||||||
pO "<td align=\"center\">$v°</td>";
|
pO "<td align=\"center\">$v°</td>";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user