saussact / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Introduce a single main configuration file #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Although openHAB has a modular architecture and OSGi suggest to configure each 
bundle through a dedicated config file, it is very cumbersome to administrate 
the system, if the configuration information is spread out that much.

For openHAB, there should be a single "openhab.cfg" configuration file in the 
plain old property format.
Still, bundles should not directly access this file, but there should be a 
dispatcher which reads the configuration entries and sends them to the bundles 
through the OSGi Configuration Admin service.

This way, it is still possible to use any OSGi admin console to administrate 
openHAB, while it is easy to provide a default configuration that people can 
start with in a single place.

Original issue reported on code.google.com by kai.openhab on 1 Sep 2010 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by kai.openhab on 1 Sep 2010 at 8:25

GoogleCodeExporter commented 9 years ago
This has been implemented.
There are now two configuration files:
1. openhab_default.cfg, which contains default settings and examples and which 
is part of the distribution
2. openhab.cfg, which can contain user specific settings that override the 
default settings; this file is not part of the distribution, so that it does 
not get overwritten on upgrades.

Original comment by kai.openhab on 4 Feb 2011 at 11:05