mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
configDB - modified: call GlobalAttr() on startup
git-svn-id: https://svn.fhem.de/fhem/trunk@5661 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c22687e33a
commit
5c3116dda8
@ -79,6 +79,7 @@ sub AnalyzeCommandChain($$;$);
|
|||||||
sub AttrVal($$$);
|
sub AttrVal($$$);
|
||||||
sub Debug($);
|
sub Debug($);
|
||||||
sub Log3($$$);
|
sub Log3($$$);
|
||||||
|
sub GlobalAttr($$$$);
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# Forward declarations inside this library
|
# Forward declarations inside this library
|
||||||
@ -191,6 +192,7 @@ sub cfgDB_GlobalAttr {
|
|||||||
$line[3] =~ s/#.*//;
|
$line[3] =~ s/#.*//;
|
||||||
$line[3] =~ s/ .*$//;
|
$line[3] =~ s/ .*$//;
|
||||||
$attr{global}{$line[2]} = $line[3];
|
$attr{global}{$line[2]} = $line[3];
|
||||||
|
GlobalAttr("set", "global", $line[2], $line[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sth = $fhem_dbh->prepare( "SELECT * FROM fhemconfig WHERE DEVICE = 'configdb' and VERSIONUUID = '$uuid'" );
|
$sth = $fhem_dbh->prepare( "SELECT * FROM fhemconfig WHERE DEVICE = 'configdb' and VERSIONUUID = '$uuid'" );
|
||||||
@ -201,6 +203,7 @@ sub cfgDB_GlobalAttr {
|
|||||||
$line[3] =~ s/#.*//;
|
$line[3] =~ s/#.*//;
|
||||||
$line[3] =~ s/ .*$//;
|
$line[3] =~ s/ .*$//;
|
||||||
$attr{configdb}{$line[2]} = $line[3];
|
$attr{configdb}{$line[2]} = $line[3];
|
||||||
|
GlobalAttr("set", "global", $line[2], $line[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$fhem_dbh->disconnect();
|
$fhem_dbh->disconnect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user