2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00

configDB: add RHASSPY and LightScene to list of supported modules

git-svn-id: https://svn.fhem.de/fhem/trunk@26446 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2022-09-26 08:03:12 +00:00
parent e954501862
commit a5d62ce04a
2 changed files with 19 additions and 1 deletions

View File

@ -313,7 +313,7 @@ sub _cfgDB_readConfig() {
Starting with version 5079, fhem can be used with a configuration database instead of a plain text file (e.g. fhem.cfg).<br/> Starting with version 5079, fhem can be used with a configuration database instead of a plain text file (e.g. fhem.cfg).<br/>
This offers the possibility to completely waive all cfg-files, "include"-problems and so on.<br/> This offers the possibility to completely waive all cfg-files, "include"-problems and so on.<br/>
Furthermore, configDB offers a versioning of several configuration together with the possibility to restore a former configuration.<br/> Furthermore, configDB offers a versioning of several configuration together with the possibility to restore a former configuration.<br/>
Detailled informations about the available recovery and rescue modes can be found in this forum thread:<br/> Detailed information about the available recovery and rescue modes can be found in this forum thread:<br/>
<a href=https://forum.fhem.de/index.php/topic,86225.0.html>https://forum.fhem.de/index.php/topic,86225.0.html</a> </br> <a href=https://forum.fhem.de/index.php/topic,86225.0.html>https://forum.fhem.de/index.php/topic,86225.0.html</a> </br>
Access to database is provided via perl's database interface DBI.<br/> Access to database is provided via perl's database interface DBI.<br/>
<br/> <br/>
@ -323,6 +323,8 @@ sub _cfgDB_readConfig() {
Currently the fhem modules<br/> Currently the fhem modules<br/>
<br/> <br/>
<li>02_RSS.pm</li> <li>02_RSS.pm</li>
<li>10_RHASSPY.pm</li>
<li>31_Lightscene.pm</li>
<li>55_InfoPanel.pm</li> <li>55_InfoPanel.pm</li>
<li>91_eventTypes</li> <li>91_eventTypes</li>
<li>93_DbLog.pm</li> <li>93_DbLog.pm</li>

View File

@ -664,6 +664,22 @@ sub cfgDB_MigrationImport {
push @files, $fn; push @files, $fn;
} }
# find LightScene configurations
@def = '';
@def = _cfgDB_findDef('TYPE=LightScene','CONFIGFILE');
foreach my $fn (@def) {
next unless $fn;
push @files, $fn;
}
# find RHASSPY configurations
@def = '';
@def = _cfgDB_findDef('TYPE=RHASSPY','CONFIGFILE');
foreach my $fn (@def) {
next unless $fn;
push @files, $fn;
}
# find holiday files # find holiday files
@def = ''; @def = '';
@def = _cfgDB_findDef('TYPE=holiday','NAME'); @def = _cfgDB_findDef('TYPE=holiday','NAME');