Class OpenHAB


  • public class OpenHAB
    extends Object
    Some core static methods that provide information about the running openHAB instance.
    Author:
    Kai Kreuzer - Initial contribution
    • Field Detail

      • ADDONS_SERVICE_PID

        public static final String ADDONS_SERVICE_PID
        the service pid used for the definition of the base package and addons
        See Also:
        Constant Field Values
      • CFG_PACKAGE

        public static final String CFG_PACKAGE
        the configuraton parameter name used for the base package
        See Also:
        Constant Field Values
    • Constructor Detail

      • OpenHAB

        public OpenHAB()
    • Method Detail

      • getVersion

        public static String getVersion()
        Returns the current openHAB version, retrieving the information from the core bundle version.
        Returns:
        the openHAB runtime version
      • buildString

        public static String buildString()