2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

74_HOMBOT: include Detail_Fn link to Luigi Contro Center

git-svn-id: https://svn.fhem.de/fhem/trunk@10860 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markooldenburg 2016-02-15 21:33:47 +00:00
parent 1b155ce4d1
commit 1dfadcd4aa
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- feature 74_HOMBOT: include Detail_Fn link to Luigi Contro Center
- feature 49_SSCAM: control of exposure mode day, night & auto is
possible now
- bugfix: 74_HOMBOT: some set commands not work

View File

@ -35,7 +35,7 @@ use Time::HiRes qw(gettimeofday);
use HttpUtils;
use Blocking;
my $version = "0.2.1";
my $version = "0.2.2";
@ -48,6 +48,7 @@ sub HOMBOT_Initialize($) {
$hash->{DefFn} = "HOMBOT_Define";
$hash->{UndefFn} = "HOMBOT_Undef";
$hash->{AttrFn} = "HOMBOT_Attr";
$hash->{FW_detailFn} = "HOMBOT_DetailFn";
$hash->{AttrList} = "interval ".
"disable:1 ".
@ -963,6 +964,16 @@ sub HOMBOT_Aborted_Bot_Alive($) {
Log3 $name, 3, "HOMBOT ($name) - The BlockingCall Process terminated unexpectedly. Timedout";
}
sub HOMBOT_DetailFn() { # Patch von Andre (justme1968)
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
my $hash = $defs{$d};
return if( !defined( $hash->{HOST} ) );
return "<b><u><a href=\"http://$hash->{HOST}:6260\" target=\"_blank\">Control Center</a></u></b><br>"
}