openhab / org.openhab.ui.habpanel

OUTDATED repo - HABPanel has moved to the openhab-webui repo!
https://github.com/openhab/openhab-webui
Eclipse Public License 1.0
97 stars 92 forks source link

[FAQ] How to install on Eclipse_Smarthome #139

Closed kirantpatil closed 7 years ago

kirantpatil commented 7 years ago

Hi,

I would like to know how to install habpanel on eclipse_smarthome.

Please provide the steps to install.

Thanks.

ghys commented 7 years ago

Hi, have you tried dropping HABPanel's *.jar (from https://openhab.ci.cloudbees.com/job/openHAB2-Bundles/org.openhab.ui$org.openhab.ui.habpanel/) into SmartHome's addons folder? Just taking a chance here, I haven't tried it.

kirantpatil commented 7 years ago

Sir,

I have added habpanel jar file in to addons folder and smarthome is not recognizing it.

I am getting below log details from console.


$ sh start.sh
Using java: /usr/lib/jvm/java-8-oracle/bin/java
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
JAVA_COMPACT_PROFILE=fulljre
JAVA_VENDOR=Oracle
---------------------------------------------------------
  Concierge OSGi 5.0.0 on Linux 3.19.0-79-generic starting ... (eclipse-smarthome) startlevel=3
---------------------------------------------------------
---------------------------------------------------------
  Framework started in 0.001 seconds.
---------------------------------------------------------

Concierge> 2017-01-31 15:20:14.649 [INFO   ] [org.eclipse.jetty.util.log.Log initialized] - Logging initialized @1995ms
2017-01-31 15:20:14.722 [INFO   ] [org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome] - Configuring the default jetty server with [file:/home/fabritronix/eclipse_smart-home/runtime/etc/jetty.xml, file:/home/fabritronix/eclipse_smart-home/runtime/etc/jetty-deployer.xml, file:/home/fabritronix/eclipse_smart-home/runtime/etc/jetty-selector.xml]
2017-01-31 15:20:14.724 [INFO   ] [org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome] - JETTY.HOME=/home/fabritronix/eclipse_smart-home/runtime
2017-01-31 15:20:14.725 [INFO   ] [org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome] - JETTY.BASE=/home/fabritronix/eclipse_smart-home/runtime
2017-01-31 15:20:14.960 [INFO   ] [org.eclipse.jetty.server.Server doStart] - jetty-9.3.z-SNAPSHOT
2017-01-31 15:20:15.770 [INFO   ] [org.eclipse.jetty.server.AbstractConnector doStart] - Started 0.0.0.0:8443@44c73c26{SSL,[ssl, http/1.1]}{0.0.0.0:8443}
2017-01-31 15:20:15.772 [INFO   ] [org.eclipse.jetty.server.AbstractConnector doStart] - Started ServerConnector@41005828{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2017-01-31 15:20:15.773 [INFO   ] [org.eclipse.jetty.server.Server doStart] - Started @3123ms
2017-01-31 15:20:15.774 [INFO   ] [org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome] - Default jetty server configured
2017-01-31 15:20:15.889 [INFO   ] [org.eclipse.jetty.server.handler.ContextHandler doStart] - Started o.e.j.s.ServletContextHandler@1c93f6e1{/,null,AVAILABLE}
2017-01-31 15:20:18.648 [INFO   ] [org.eclipse.smarthome.ui.paper.internal.PaperUIApp activate] - Started Paper UI at /paperui
2017-01-31 15:20:18.755 [SEVERE ] [org.eclipse.smarthome.core.service.AbstractWatchService initializeWatchService] - Cannot activate folder watcher for folder '/home/fabritronix/eclipse_smart-home/conf/services': /home/fabritronix/eclipse_smart-home/conf/services
2017-01-31 15:20:18.952 [INFO   ] [org.jupnp.UpnpServiceImpl startup   ] - Starting UPnP service...
2017-01-31 15:20:19.105 [INFO   ] [org.jupnp.transport.impl.osgi.HttpServiceServletContainerAdapter registerServlet] - Registering UPnP callback servlet as /upnpcallback
ghys commented 7 years ago

Looks like it didn't load it. Maybe try to follow instructions here: https://github.com/eclipse/smarthome-packaging-sample#concierge-configuration-with-xargs-file to specify the .jar explicitely.

kirantpatil commented 7 years ago

Sir, Thanks, it is loading now and can be accessed as http://localhost:8080/habpanel/index.html#/

I added two jar files as below.

-istart ${system.dir}/org.openhab.ui.dashboard-2.0.0.b3.jar.jar -istart ${system.dir}/org.openhab.ui.habpanel-2.1.0-SNAPSHOT.jar

I will test further and let you know, if there are any issues.

kirantpatil commented 7 years ago

Major issue, We could not load sitemap and items to habpanel

kirantpatil commented 7 years ago

Sir, it has below limitation. So what can we do now ?

Limitations

It's not possible to run XText under concierge due to dependencies on equinox runtime. For this reason all modeling packages have been removed from this distribution. There are no .items, .rule, .thing, etc. files. Try to use new generation rule engine to manage rules.

ghys commented 7 years ago

not sure

Try to raise your issue on the smarthome-packaging-sample repository?

ghys commented 7 years ago

@kirantpatil I think I will close this since the main problem (not being able to run HABPanel) seems solved, hope you find a way to configure the SmartHome package for your needs. Feel free to reopen (or create a new issue) if you run into further problems related to HABPanel running with the SmartHome package, I'm definitely interested! Thanks.