From edfa74e8ed56859a0fa346603a3ab89028923a11 Mon Sep 17 00:00:00 2001 From: odroegehorn <> Date: Tue, 24 Jan 2012 10:17:38 +0000 Subject: [PATCH] Added support for InterTechno Module + added tables for unkown/new devices git-svn-id: https://svn.fhem.de/fhem/trunk@1216 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm5/README.txt | 2 +- fhem/webfrontend/pgm5/fhemweb.pl | 14 +++- fhem/webfrontend/pgm5/icons/IT.off.gif | Bin 0 -> 609 bytes fhem/webfrontend/pgm5/icons/IT.on.gif | Bin 0 -> 377 bytes fhem/webfrontend/pgm5/style.css | 94 +++++++++++++------------ 5 files changed, 62 insertions(+), 48 deletions(-) create mode 100644 fhem/webfrontend/pgm5/icons/IT.off.gif create mode 100644 fhem/webfrontend/pgm5/icons/IT.on.gif diff --git a/fhem/webfrontend/pgm5/README.txt b/fhem/webfrontend/pgm5/README.txt index 3a8e2ea2a..421d0c62a 100644 --- a/fhem/webfrontend/pgm5/README.txt +++ b/fhem/webfrontend/pgm5/README.txt @@ -7,7 +7,7 @@ Description of the pgm5 webfrontend: ################################################################################# # Copyright notice # -# (c) 2008-2009 +# (c) 2008-2012 # Copyright: Dr. Olaf Droegehorn # All rights reserved # diff --git a/fhem/webfrontend/pgm5/fhemweb.pl b/fhem/webfrontend/pgm5/fhemweb.pl index 23092efb3..341892dac 100644 --- a/fhem/webfrontend/pgm5/fhemweb.pl +++ b/fhem/webfrontend/pgm5/fhemweb.pl @@ -3,7 +3,7 @@ ################################################################################# # Copyright notice # -# (c) 2008-2009 +# (c) 2008-2012 # Copyright: Dr. Olaf Droegehorn # All rights reserved # @@ -572,6 +572,9 @@ showRoom() # Print the table headers my $t = $type; $t = "EM" if($t =~ m/^EM.*$/); + if (!(($t eq "FS20") || ($t eq "IT") || ($t eq "FHT") || ($t eq "FileLog") || ($t eq "at") || ($t eq "notify") || ($t eq "KS300") || ($t eq "FHZ") || ($t eq "FHEMWEB") || ($t eq "EM") || ($t eq "FHEMRENDERER"))) { + $t = "_internal_"; + } print " \n"; if($type eq "FS20") { @@ -579,6 +582,11 @@ showRoom() print ""; print "\n"; } + if($type eq "IT") { + print " "; + print ""; + print "\n"; + } if($type eq "FHT") { print " "; print ""; @@ -607,7 +615,7 @@ showRoom() my $v = $devs{$d}{state}; - if($type eq "FS20") { + if(($type eq "FS20") || ($type eq "IT")) { my $v = $devs{$d}{state}; my $iv = $v; @@ -651,7 +659,7 @@ showRoom() $v = int($v*20)/$v if($v =~ m/^[0-9].$/); print $q->hidden("arg.$d", "desired-temp"); print $q->hidden("dev.$d", $d); - print ""; diff --git a/fhem/webfrontend/pgm5/icons/IT.off.gif b/fhem/webfrontend/pgm5/icons/IT.off.gif new file mode 100644 index 0000000000000000000000000000000000000000..c4a2fc94f093f6cae4d7b678f41fc1384404dfa2 GIT binary patch literal 609 zcmZ?wbhEHbhqm5(|<~T#H5M2rL8^nz1{UwCbZ0$&@yFC$CRGQGy8g$ z&Y3=A?u?alCNEtxW$ns2YnRShyLQU@ZF9D6ow51Aip7a*R_1NoP`!3t@9GUp)^1#X z;9%R%eG5*UT6pQ&+)LM1FWq`@`K|+N_io*~bL+-~yZ7$hxnSqHwRWcJJoB^Ox@3+k5T#xqI(#K74lb>G$W)?>&0``u`vX zia%KxxftphbQpjD6ekSq`x@$-n!TIbnyihxj8){?6)ml-t<8JnTI-D`+B@1>oAgRI zsax7Px;opMt0_qf&a`rLcXze5F;$V5?Ao}>RnA7aS8}SAz3U3y?T2StT01&BIXRdr z@2Xcdwz9orBikz_QSaPkE@y6jRZgl|rOU)*hn#G`ii)I)vYbVGz1)AnXJ0>mKgi6& z>%^vZ@&cn%TVwsCm;)CcTsF?Z>Luoa6F*R0IjxS@LOy57|rmaN^l{=mVuo%ef4}$s{qz6--~Xo`Q2ZzAT$GwvlA5AW zo>`Ki5R#Fq;O^-gz@Ye(g^`QFobazu?A8p8oxP$Cb0HJluIVdw!Le zd|ItDL^RFy_J)j~r`vp^)ld2u?cDiz)3(3Qs!p9*E1i41`DLb3cyMB)b3v=GhipiQ zqDN8h1banq@9+uJ$|u`P&6AoVASx-yCNz1`5=Nd0qWnVA+>9Io6BKwvxH&i{%kYQ^ La_(_*WUvMRn_1ST literal 0 HcmV?d00001 diff --git a/fhem/webfrontend/pgm5/style.css b/fhem/webfrontend/pgm5/style.css index 5806c47ad..d44f30ef1 100644 --- a/fhem/webfrontend/pgm5/style.css +++ b/fhem/webfrontend/pgm5/style.css @@ -1,44 +1,50 @@ -body { color: black; background: #FFFFD7; } - -table { -moz-border-radius:8px; } - -table.room { border:thin solid; width: 100%; background: #D7FFFF; } -table.room tr.sel { background: #A0FFFF; } - -table.at { border:thin solid; width: 100%; background: #FFFFC0; } -table.at tr.odd { background: #FFFFD7; } - -table.notify { border:thin solid; width: 100%; background: #D7D7A0; } -table.notify tr.odd { background: #FFFFC0; } - -table.FileLog { border:thin solid; width: 100%; background: #FFC0C0; } -table.FileLog tr.odd { background: #FFD7D7; } - -table._internal_ { border:thin solid; width: 100%; background: #C0C0C0; } -table._internal_ tr.odd { background: #D7D7D7; } - -table.FS20 { border:thin solid; width: 100%; background: #C0FFFF; } -table.FS20 tr.odd { background: #D7FFFF; } - -table.FHT { border:thin solid; width: 100%; background: #FFC0C0; } -table.FHT tr.odd { background: #FFD7D7; } - -table.KS300 { border:thin solid; width: 100%; background: #C0FFC0; } -table.KS300 tr.odd { background: #A7FFA7; } - -table.FHZ { border:thin solid; width: 100%; background: #C0C0C0; } -table.FHZ tr.odd { background: #D7D7D7; } - -table.EM { border:thin solid; width: 100%; background: #E0E0E0; } -table.EM tr.odd { background: #F0F0F0; } - -table.FHEMWEB { border:thin solid; width: 100%; background: #E0E0E0; } -table.FHEMWEB tr.odd { background: #F0F0F0; } - -table.FHEMRENDERER { border:thin solid; width: 100%; background: #E0E0E0; } -table.FHEMRENDERER tr.odd { background: #F0F0F0; } - -#hdr { position:absolute; top:10px; left:10px; } -#left { position:absolute; top:50px; left:10px; width:130px; } -#right { position:absolute; top:50px; left:160px; - right:10px; bottom:10px; overflow:auto; } +body { color: black; background: #FFFFD7; } + +table { -moz-border-radius:8px; } +table { border:thin solid; width: 100%; background: #EAEAEA; } +table tr.odd { background: #F5F5F5; } + + +table.room { border:thin solid; width: 100%; background: #D7FFFF; } +table.room tr.sel { background: #A0FFFF; } + +table.at { border:thin solid; width: 100%; background: #FFFFC0; } +table.at tr.odd { background: #FFFFD7; } + +table.notify { border:thin solid; width: 100%; background: #D7D7A0; } +table.notify tr.odd { background: #FFFFC0; } + +table.FileLog { border:thin solid; width: 100%; background: #FFC0C0; } +table.FileLog tr.odd { background: #FFD7D7; } + +table._internal_ { border:thin solid; width: 100%; background: #EAEAEA; } +table._internal_ tr.odd { background: #F5F5F5; } + +table.FS20 { border:thin solid; width: 100%; background: #C0FFFF; } +table.FS20 tr.odd { background: #D7FFFF; } + +table.IT { border:thin solid; width: 100%; background: #C0FFFF; } +table.IT tr.odd { background: #D7FFFF; } + +table.FHT { border:thin solid; width: 100%; background: #FFC0C0; } +table.FHT tr.odd { background: #FFD7D7; } + +table.KS300 { border:thin solid; width: 100%; background: #C0FFC0; } +table.KS300 tr.odd { background: #A7FFA7; } + +table.FHZ { border:thin solid; width: 100%; background: #C0C0C0; } +table.FHZ tr.odd { background: #D7D7D7; } + +table.EM { border:thin solid; width: 100%; background: #E0E0E0; } +table.EM tr.odd { background: #F0F0F0; } + +table.FHEMWEB { border:thin solid; width: 100%; background: #E0E0E0; } +table.FHEMWEB tr.odd { background: #F0F0F0; } + +table.FHEMRENDERER { border:thin solid; width: 100%; background: #E0E0E0; } +table.FHEMRENDERER tr.odd { background: #F0F0F0; } + +#hdr { position:absolute; top:10px; left:10px; } +#left { position:absolute; top:50px; left:10px; width:130px; } +#right { position:absolute; top:50px; left:160px; + right:10px; bottom:10px; overflow:auto; }
Set to
IT dev.StateSet to
FHT dev.MeasuredSet to" . + print "" . $q->popup_menu(-name=>"val.$d", -values=>\@tv, -default=>$v) . $q->submit(-name=>"cmd.$d", -value=>"set") . "