2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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:
rudolfkoenig 2008-04-16 16:26:25 +00:00
parent fee4c0bc81
commit c25b2fbf32
7 changed files with 23 additions and 4 deletions

View File

@ -381,6 +381,9 @@
- feature: global attr allowfrom, as wished by Holger (8.1.2008)
- feature: FHT: multiple commands, softbuffer changes, cmd rename, doc
- 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
emem -2.5kW / getDevData for emwz -1

View File

@ -245,6 +245,14 @@ FHZ_Define($$)
$po->stty_echok(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->{FD} = $po->FILENO;
$hash->{DeviceName} = $dev;

View File

@ -121,7 +121,7 @@ EM_Set($@)
my $d = EmGetData($name, "4545"); # Reset
return "Read error" if(!defined($d));
sleep(5);
sleep(10);
EM_Set($hash, ($a[0], "time")); # Set the time
sleep(1);
$d = EmGetData($name, "67"); # "Push the button", we don't want usesr interaction

View File

@ -20,6 +20,8 @@ dummy_Set($@)
my ($hash, @a) = @_;
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];
$hash->{CHANGED}[0] = $v;
$hash->{STATE} = $v;

View File

@ -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>
Martins Web frontend (webpgm3): <a href="http://www.martin-haas.de/fhz">
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">
http://developer.berlios.de/projects/fhem</a><br>
LinViex (home automation frontend):

View File

@ -138,7 +138,7 @@ my %intAt; # Internal at timer hash.
my $intAtCnt=0;
my $reread_active = 0;
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;
@ -191,7 +191,7 @@ my %cmds = (
"shutdown"=> { Fn=>"CommandShutdown",
Hlp=>",terminate the server" },
"sleep" => { Fn=>"CommandSleep",
Hlp=>"<sec>,sleep for sec, 3 decimal places are interpreted" },
Hlp=>"<sec>,sleep for sec, 3 decimal places" },
"trigger" => { Fn=>"CommandTrigger",
Hlp=>"<devspec> <state>,trigger notify command" },
"xmllist" => { Fn=>"CommandXmlList",
@ -1178,6 +1178,7 @@ CommandXmlList($$)
my $str = "<FHZINFO>\n";
my $lt = "";
delete($modules{""}) if(defined($modules{""}));
for my $d (sort { my $x = $modules{$defs{$a}{TYPE}}{ORDER} cmp
$modules{$defs{$b}{TYPE}}{ORDER};
$x = ($a cmp $b) if($x == 0); $x; } keys %defs) {

View File

@ -235,6 +235,8 @@ FHEMWEB_AnswerCall($)
open(FH, "$FHEMWEB_absicondir$1") || return;
pO join("", <FH>);
close(FH);
} else {
Log 5, "Unknown document $arg requested";
}
return;
}
@ -657,7 +659,9 @@ FHEMWEB_showRoom()
} 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 align=\"center\">$v&deg;</td>";