I know how to retrieve configuration of a custom addon in /service/ folder. But, how do I retrieve those custom (i.e. custom UI) saved in PaperUI? My code to retrieve settings saved in xxxx.cfg are as below, which return a list of property map. Thanks
I have looked at OpenHabCloud connector and HabPanel examples, but couldn’t figure out why the configs are not passed to my code. Here are what I have extracted from OpenHabCloud and i also followed OSGI-INF file format as well. Please give me some pointers what I am missing. Cheers
Actual Java Code
protected void activate(BundleContext context, Map<String, ?> config) {
clientVersion = StringUtils.substringBefore(context.getBundle().getVersion().toString(), ".qualifier");
localPort = HttpServiceUtil.getHttpServicePort(context);
if (localPort == -1) {
logger.warn("openHAB Cloud connector not started, since no local HTTP port could be determined");
} else {
logger.debug("openHAB Cloud connector activated");
checkJavaVersion();
modified(config);
}
}