saussact / openhab

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

Provide configuration through a single config file #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to provide a simple and common way to configure the openHAB runtime, 
there should be a single configuration file (something like openhab.cfg), which 
holds configuration information for all different types of bundles (core, 
bindings, etc).
The information of this file should be made available to the bundles through 
the OSGi Configuration Admin service, so that other means (such as the Felix 
Web Console) can be used at the same time.

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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Implemented a mechanism to read any kind of configuration data from a shared 
config file and dispatch it to the different bundles using the 
ConfigurationAdmin service.

 The name of the configuration file can be provided as a program argument "openhab.configfile". If this argument is not set, the default "configurations/openhab.cfg" will be used.
 In case the configuration file does not exist, a warning will be logged and no action will be performed.

The format of the configuration file is similar to a standard property file, 
with the exception that the property name must be prefixed by the service pid 
of the ManagedService:

 <service-pid>:<property>=<value>

The prefix "org.openhab" can be omitted on the service pid, it is automatically 
added if the pid does not contain any ".".

Original comment by kai.openhab on 8 Aug 2010 at 7:33

GoogleCodeExporter commented 9 years ago

Original comment by kai.openhab on 8 Aug 2010 at 7:35