Unwetterwarnung in OpenHAB

Für welche Projekte verwendet Ihr OpenHAB? Was habt Ihr automatisiert? Stellt eure Projekte hier vor.

Moderatoren: Cyrelian, seppy

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

Das habe ich alles gemacht, nur leider wird mir auf meiner Seite nix angezeigt, die Seite ist nur weiß. Fehlt mir da noch etwas in der .sitemap? Ich habe exakt das da reinkopiert was ganz oben im ersten Post steht. Sorry für die vielen Fragen. Ich nutzt OH2 jetzt seit gut 2 Wochen und scheitere immernoch an den scheinbar einfachsten Dingen. Danke für eure Gedult.

Gruß Tobi.

Benutzeravatar
alkaline
Beiträge: 173
Registriert: 20. Apr 2017 13:25

Re: Unwetterwarnung in OpenHAB

Beitrag von alkaline »

Jetzt bist du soweit wie ich, Konfiguration erledigt, aber das teil schnurrt nicht. Deswegen hatte ich ja bereits um Hilfe bei Seppy gebeten ....
Interessant wäre, was bei dir in den Log Dateien steht:
Öffne doch mal die openhab.log und schaue, was bei dir so steht.

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

Ok, also im openhab.log steht erst mal jede menge davon:

Code: Alles auswählen

2017-07-19 07:40:49.669 [ERROR] [hab.binding.exec.handler.ExecHandler] - An exception occurred while formatting the command line with the current time and input values : 'Format specifier '%2$s''
keine Ahnung wo das herkommt.

Im Log steht auch ganz viel von Java, was ich auch nicht verstehe:

Code: Alles auswählen

2017-07-18 19:50:13.012 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-07-18 19:50:23.205 [WARN ] [eclipse.jetty.servlet.ServletHandler] -
javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:50:23.222 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/sitemaps/unwetter/unwetter?_=36ed069f0049b4
javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        ... 8 more
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:50:23.236 [WARN ] [org.eclipse.jetty.server.HttpChannel] - Could not send response error 500: javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

2017-07-18 19:50:24.686 [WARN ] [eclipse.jetty.servlet.ServletHandler] -
javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:50:24.701 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/sitemaps/unwetter/unwetter?_=aae89036c6e3e
javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        ... 8 more
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:50:24.713 [WARN ] [org.eclipse.jetty.server.HttpChannel] - Could not send response error 500: javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

2017-07-18 19:51:13.926 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'unwetter.sitemap'
2017-07-18 19:53:22.275 [ERROR] [t.internal.XsltTransformationService] - transformation throws exception
javax.xml.transform.TransformerConfigurationException: /etc/openhab2/transform/wunderground_weather_alert.xsl (Datei oder Verzeichnis nicht gefunden)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1016)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:789)[:1.8.0_121]
        at org.eclipse.smarthome.transform.xslt.internal.XsltTransformationService.transform(XsltTransformationService.java:77)[194:org.eclipse.smarthome.transform.xslt:0.9.0.b5]
        at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:60)[188:org.openhab.core.compat1x:2.1.0]
        at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:189)[193:org.openhab.binding.http:1.10.0]
        at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:157)[188:org.openhab.core.compat1x:2.1.0]
        at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169)[188:org.openhab.core.compat1x:2.1.0]
Caused by: java.io.FileNotFoundException: /etc/openhab2/transform/wunderground_weather_alert.xsl (Datei oder Verzeichnis nicht gefunden)
        at java.io.FileInputStream.open0(Native Method)[:1.8.0_121]
        at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_121]
        at java.io.FileInputStream.<init>(FileInputStream.java:138)[:1.8.0_121]
        at java.io.FileInputStream.<init>(FileInputStream.java:93)[:1.8.0_121]
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.8.0_121]
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:623)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)[:1.8.0_121]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:429)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:506)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:464)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:566)[:1.8.0_121]
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:975)[:1.8.0_121]
        ... 6 more
2017-07-18 19:53:22.281 [ERROR] [ab.binding.http.internal.HttpBinding] - Transformation 'XSLT(wunderground_weather_alert.xsl)' threw an exception. [response=
<response>
        <version>0.1</version>
        <termsofService>http://www.wunderground.com/weather/api/d/terms.html</termsofService>
        <features>
                <feature>alerts</feature>
        </features>
                <alerts>
        </alerts>
</response>
]
org.openhab.core.transform.TransformationException: transformation throws exception
        at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:62)[188:org.openhab.core.compat1x:2.1.0]
        at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:189)[193:org.openhab.binding.http:1.10.0]
        at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:157)[188:org.openhab.core.compat1x:2.1.0]
        at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169)[188:org.openhab.core.compat1x:2.1.0]
2017-07-18 19:55:34.711 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-07-18 19:55:36.661 [ERROR] [org.eclipse.smarthome.io.rest.sse   ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:955)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1336)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://21.fwk1727316/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://21.fwk1727316/javax/ws/rs/ext/RuntimeDelegate.class
        at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
        at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
        at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)
        at org.glassfish.jersey.media.sse.SseFeature.<clinit>(SseFeature.java:62)
        at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:44)
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_121]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        ... 14 more
2017-07-18 19:55:37.201 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-07-18 19:55:38.622 [WARN ] [eclipse.jetty.servlet.ServletHandler] -
javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:55:38.633 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/sitemaps/unwetter/unwetter?_=0e77de6b3c392c
javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[9:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        ... 8 more
Caused by: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        ... 26 more
Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down
        at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[150:org.glassfish.hk2.locator:2.4.0.b34]
        at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[150:org.glassfish.hk2.locator:2.4.0.b34]
        ... 34 more
2017-07-18 19:55:38.646 [WARN ] [org.eclipse.jetty.server.HttpChannel] - Could not send response error 500: javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,2909827) has been shut down

2017-07-18 19:58:24.951 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'WeatherAlert_RAWMessage_Changed': An error occurred during the script execution: Couldn't invoke 'assignValueTo' for feature JvmVoid:  (eProxyURI: unwertter.rules#|::0.2.0.2.0.0::0::/1)

installierte Transforms:
Unbenannt2.png
Binding:
Unbenannt3.png
Gruß Tobi
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

So sieht meine Seite aus:
Unbenannt4.png
hier die http.cfg

Code: Alles auswählen

ttp:cacheWeatherAlertsWunderground.url=http://api.wunderground.com/api/<mein api key>/alerts/lang:DL/q/pws:IHEIDENA16.xml
http:cacheWeatherAlertsWunderground.updateInterval=600000
die items

Code: Alles auswählen

String WeatherAlert "Unwetterwarnung [%s]" (gWetter)
Switch WeatherAlertActive (gWetter)
String WeatherAlert_RAWMessage (gWetter) {http="<[cacheWeatherAlertsWunderground:300000:XSLT(wunderground_weather_alert.xsl)]" }
String WeatherAlert_Message
sitemap

Code: Alles auswählen

sitemap unwetter label="Unwetterwarnung"
{
                        Text item=WeatherAlertActive label="Unwetterwarnung" icon="alert" labelcolor=[WeatherAlertActive==ON="red"]  visibility=[WeatherAlertActive==ON]  {
                                Text item=WeatherAlert
                                Image label="Regenradar" url="http://www.wetteronline.de/?ireq=true&pid=p_radar_map&src=radar/vermarktung/p_radar_map_forecast/forecastLoop/RHP/latestForecastLoop.gif"
                }
}
transforms xsl

Code: Alles auswählen

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">

        <xsl:output indent="yes" method="xml" encoding="ISO-8859-1" omit-xml-declaration="yes" cdata-section-elements="message" />
        <xsl:template match="/">
                        <xsl:value-of select="response/alerts/alert/message"/>
        </xsl:template>
</xsl:stylesheet>
und die rules

Code: Alles auswählen

rule "WeatherAlert_RAWMessage_Changed"
when
        Item WeatherAlert_RAWMessage changed
then
        //Leerzeichen am Anfang und Ende entfernen, sowie doppelte Leerzeichen im Text
        alertmessage = WeatherAlert_RAWMessage.state.toString.trim().replaceAll("[\\s]+"," ")
        //Prüfung ob eine Unwetterwarnung vorliegt (String länger als ein Zeichen und nicht uninitialisiert)
        if (alertmessage.length() > 1 && alertmessage != "Uninitialized"){
                //Wenn JA Umlaute und falsche Zeichen der API ersetzen bzw. entfernen
                logInfo("HomeBox.WeatherAlert_Message_Changed", "Unwetterwarnung erkannt")
                val umlaute = newArrayList('Ä','Ö',"Ü","ä","ö","ü","ß","é","è","ê","â","á","à","§","°","ß","","","","","","Ö","Ä","Extrem Temperatur: ")
                val replace = newArrayList("Ä","Ö","Ãœ","ä","ö","ü","ß","é","è","ê","â","á","Ã","§","°","à&#159;","&","nbsp","\n","\r","  ","Thunderstorms ","à&#150;"," à&#132;","Extreme high temperature")
                umlaute.forEach[x,i|
                        alertmessage = alertmessage.replace(replace.get(i),x)
                ]
                //Item für Nachricht mit formatiertem String aktualisieren aktualisieren
                WeatherAlert_Message.postUpdate(alertmessage)
                WeatherAlert.postUpdate(alertmessage)

                // Prüfung ob neue Unwettermeldung vorliegt (Aktivität == OFF)
                if (WeatherAlertActive.state == OFF){
                        // Unwetterwarnung aktivieren
                        sendCommand(WeatherAlertActive,ON)
                        //Bewohner per WhatsApp informieren
                        //executeCommandLine("/opt/yowsup/yowsup-cli@@demos@@-c@@/opt/yowsup/homebox.config@@-s@@49151XXXXXXX-XXXXXXX@@UNWETTERWARNUNG:\n" + alertmessage)
                }
        //Wenn NEIN
        } else {
                //Zurücksetzen der Nachricht
                WeatherAlert_Message.postUpdate("Uninitialized")
                WeatherAlert.postUpdate("Uninitialized")
                //Wenn Aktivität noch ON
                if (WeatherAlertActive.state == ON){
                        //Aktivierung abschalten
                        sendCommand(WeatherAlertActive,OFF)
                        //Bewohner per WhatsApp informieren
                        //executeCommandLine("/opt/yowsup/yowsup-cli@@demos@@-c@@/opt/yowsup/homebox.config@@-s@@491511XXXXXX-XXXX@@UNWETTERWARNUNG AUFGEHOBEN")
                }
        }

        // Aktualisierungsdatum setzen
        postUpdate(WeatherLastUpdate, new DateTimeType())
        logInfo("HomeBox.WeatherRainForecast_Changed", "Updated WeatherLastUpdate: " + WeatherLastUpdate.state)
end
ich denke mal, das ich das nicht einfach so eins zu eins übernehmen kann aber mir fehlt momentan noch der richtige Durchblick was ich da abändern muss.
Besonders die rules sind mir noch sehr fremd.

Gruß Tobi
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.

Benutzeravatar
alkaline
Beiträge: 173
Registriert: 20. Apr 2017 13:25

Re: Unwetterwarnung in OpenHAB

Beitrag von alkaline »

Sehe schon dieselbe Meldung wie bei mir:

Code: Alles auswählen

2017-07-18 19:58:24.951 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'WeatherAlert_RAWMessage_Changed': An error occurred during the script execution: Couldn't invoke 'assignValueTo' for feature JvmVoid:  (eProxyURI: unwertter.rules#|::0.2.0.2.0.0::0::/1)
Das Script läuft in einen Fehler, deshalb die Seite leer. Ohne Seppy (oder jemand, der dieses Script auseinandernehmen und prüfen kann) geht es nicht weiter.

Deine anderer Fehler ist nach einem Schreibfehler aus, denke mal irgendwo in den Items:

Code: Alles auswählen

2017-07-19 07:40:49.669 [ERROR] [hab.binding.exec.handler.ExecHandler] - An exception occurred while formatting the command line with the current time and input values : 'Format specifier '%2$s''
Suche mal in deinen Items nach %2$s und finde heraus, welches es ist...es kommt zumindest nicht in den Weather items vor, also muss es ein anderes sein.

Deine weiteren Einträge in der Logdatei kommen (nach meinem Dafürhalten) alle von der Tatsache, das das Wetterscript nicht tut

Code: Alles auswählen

2017-07-18 19:50:24.701 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/sitemaps/unwetter/unwetter?_=aae89036c6e3e
javax.servlet.ServletException: javax.servlet.ServletException: A MultiException has 1 exceptions.  They are:
1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_0,0,11369217) has been shut down

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

Ok danke.

Das einzige was ich gefunden habe ist das hier.

Code: Alles auswählen

Thing exec:command:lueftungschalten [ command="/var/lib/openhab2/script/lueftung_schalten.sh %2$s", interval=0, timeout=20, autorun=false ]
Ist die Syntax falsch oder fehlt da noch etwas?

Gruß Tobi

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

Wie kann ich mir die in der .rules Datei verarbeiteten Daten anzeigen lassen?
Also was ich mein, was wird von wem an die .rules übergeben?

wenn ich die URL, die in der http.cfg steht, im Browser aufrufe, dann bekomme ich eine XML Webseite angezeigt, so weit so gut.
Aber wo definiere ich, welches Feld der XML Datei auf meiner .sitemap angezeigt werden? In der .rules Datei vermute ich mal, wird in den "XML Stream???" reingeschaut oder? ich verstehe den Zusammenhang noch nicht ganz.
Ich würde gern eine Wettervorhersage machen.
Hier mal der XML Output:

Code: Alles auswählen

<?xml version="1.0"?>

-<response>

<version>0.1</version>

<termsofService>http://www.wunderground.com/weather/api/d/terms.html</termsofService>


-<features>

<feature>forecast</feature>

</features>


-<forecast>


-<txt_forecast>

<date>16:41 CEST</date>


-<forecastdays>


-<forecastday>

<period>0</period>

<icon>clear</icon>

<icon_url>http://icons.wxug.com/i/c/k/clear.gif</icon_url>

<title>Mittwoch</title>


-<fcttext>

<![CDATA[Meistens klar. Tiefsttemperatur 67F.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Meistens klar. Tiefsttemperatur 20C.]]>

</fcttext_metric>

<pop>10</pop>

</forecastday>


-<forecastday>

<period>1</period>

<icon>nt_clear</icon>

<icon_url>http://icons.wxug.com/i/c/k/nt_clear.gif</icon_url>

<title>Mittwoch Nacht</title>


-<fcttext>

<![CDATA[Meistens klar. Tiefsttemperatur 67F. Wind aus SO mit 5 bis 10 mph.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Meistens klar. Tiefsttemperatur 20C. Wind aus SO mit 10 bis 15 km/h.]]>

</fcttext_metric>

<pop>10</pop>

</forecastday>


-<forecastday>

<period>2</period>

<icon>tstorms</icon>

<icon_url>http://icons.wxug.com/i/c/k/tstorms.gif</icon_url>

<title>Donnerstag</title>


-<fcttext>

<![CDATA[Gewitter. Höchsttemperatur 84F. Wind aus SSW mit 10 bis 15 mph. Regenrisiko 80 %.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Gewitter. Höchsttemperatur 29C. Wind aus SSW mit 15 bis 25 km/h. Regenrisiko 80 %.]]>

</fcttext_metric>

<pop>80</pop>

</forecastday>


-<forecastday>

<period>3</period>

<icon>nt_chancerain</icon>

<icon_url>http://icons.wxug.com/i/c/k/nt_chancerain.gif</icon_url>

<title>Donnerstag Nacht</title>


-<fcttext>

<![CDATA[Zunächst Schauer. Tiefsttemperatur 64F. Wind aus WSW mit 5 bis 10 mph. Regenrisiko 40 %.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Zunächst Schauer. Tiefsttemperatur 18C. Wind aus WSW und wechselhaft. Regenrisiko 40 %.]]>

</fcttext_metric>

<pop>40</pop>

</forecastday>


-<forecastday>

<period>4</period>

<icon>partlycloudy</icon>

<icon_url>http://icons.wxug.com/i/c/k/partlycloudy.gif</icon_url>

<title>Freitag</title>


-<fcttext>

<![CDATA[Teilweise bedeckt. Höchsttemperatur 81F. Wind aus NW und wechselhaft.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Teilweise bedeckt. Höchsttemperatur 27C. Wind aus NW und wechselhaft.]]>

</fcttext_metric>

<pop>20</pop>

</forecastday>


-<forecastday>

<period>5</period>

<icon>nt_partlycloudy</icon>

<icon_url>http://icons.wxug.com/i/c/k/nt_partlycloudy.gif</icon_url>

<title>Freitag Nacht</title>


-<fcttext>

<![CDATA[Teilweise bedeckt. Vereinzelt sind Schauer oder Gewitter möglich. Tiefsttemperatur 63F. Wind aus O und wechselhaft.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Teilweise bedeckt. Tiefsttemperatur 17C. Wind aus O und wechselhaft.]]>

</fcttext_metric>

<pop>20</pop>

</forecastday>


-<forecastday>

<period>6</period>

<icon>tstorms</icon>

<icon_url>http://icons.wxug.com/i/c/k/tstorms.gif</icon_url>

<title>Samstag</title>


-<fcttext>

<![CDATA[Gewitter. Höchsttemperatur 82F. Wind aus OSO und wechselhaft. Regenrisiko 80 %.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Gewitter. Höchsttemperatur 28C. Wind aus OSO und wechselhaft. Regenrisiko 80 %.]]>

</fcttext_metric>

<pop>80</pop>

</forecastday>


-<forecastday>

<period>7</period>

<icon>nt_chancetstorms</icon>

<icon_url>http://icons.wxug.com/i/c/k/nt_chancetstorms.gif</icon_url>

<title>Samstag Nacht</title>


-<fcttext>

<![CDATA[Zunächst Gewitter. Tiefsttemperatur 65F. Wind aus S und wechselhaft. Regenrisiko 40 %.]]>

</fcttext>


-<fcttext_metric>

<![CDATA[Zunächst Gewitter. Tiefsttemperatur 18C. Wind aus S und wechselhaft. Regenrisiko 40 %.]]>

</fcttext_metric>

<pop>40</pop>

</forecastday>

</forecastdays>

</txt_forecast>


-<simpleforecast>


-<forecastdays>


-<forecastday>


-<date>

<epoch>1500483600</epoch>

<pretty_short>19:00 CEST</pretty_short>

<pretty>07:00 PM CEST am 19. Juli 2017</pretty>

<day>19</day>

<month>7</month>

<year>2017</year>

<yday>199</yday>

<hour>19</hour>

<min>00</min>

<sec>0</sec>

<isdst>1</isdst>

<monthname>Juli</monthname>

<monthname_short>Jul</monthname_short>

<weekday_short>Mi</weekday_short>

<weekday>Mittwoch</weekday>

<ampm>PM</ampm>

<tz_short>CEST</tz_short>

<tz_long>Europe/Berlin</tz_long>

</date>

<period>1</period>


-<high>

<fahrenheit>95</fahrenheit>

<celsius>35</celsius>

</high>


-<low>

<fahrenheit>67</fahrenheit>

<celsius>19</celsius>

</low>

<conditions>Heiter</conditions>

<icon>clear</icon>

<icon_url>http://icons.wxug.com/i/c/k/clear.gif</icon_url>

<skyicon/>

<pop>10</pop>


-<qpf_allday>

<in>0.00</in>

<mm>0</mm>

</qpf_allday>


-<qpf_day>

<in/>

<mm/>

</qpf_day>


-<qpf_night>

<in>0.00</in>

<mm>0</mm>

</qpf_night>


-<snow_allday>

<in>0.0</in>

<cm>0.0</cm>

</snow_allday>


-<snow_day>

<in/>

<cm/>

</snow_day>


-<snow_night>

<in>0.0</in>

<cm>0.0</cm>

</snow_night>


-<maxwind>

<mph>0</mph>

<kph>0</kph>

<dir/>

<degrees>0</degrees>

</maxwind>


-<avewind>

<mph>0</mph>

<kph>0</kph>

<dir>Nord</dir>

<degrees>0</degrees>

</avewind>

<avehumidity>65</avehumidity>

<maxhumidity>0</maxhumidity>

<minhumidity>0</minhumidity>

</forecastday>


-<forecastday>


-<date>

<epoch>1500570000</epoch>

<pretty_short>19:00 CEST</pretty_short>

<pretty>07:00 PM CEST am 20. Juli 2017</pretty>

<day>20</day>

<month>7</month>

<year>2017</year>

<yday>200</yday>

<hour>19</hour>

<min>00</min>

<sec>0</sec>

<isdst>1</isdst>

<monthname>Juli</monthname>

<monthname_short>Jul</monthname_short>

<weekday_short>Do</weekday_short>

<weekday>Donnerstag</weekday>

<ampm>PM</ampm>

<tz_short>CEST</tz_short>

<tz_long>Europe/Berlin</tz_long>

</date>

<period>2</period>


-<high>

<fahrenheit>84</fahrenheit>

<celsius>29</celsius>

</high>


-<low>

<fahrenheit>64</fahrenheit>

<celsius>18</celsius>

</low>

<conditions>Gewitter</conditions>

<icon>tstorms</icon>

<icon_url>http://icons.wxug.com/i/c/k/tstorms.gif</icon_url>

<skyicon/>

<pop>80</pop>


-<qpf_allday>

<in>0.23</in>

<mm>6</mm>

</qpf_allday>


-<qpf_day>

<in>0.21</in>

<mm>5</mm>

</qpf_day>


-<qpf_night>

<in>0.02</in>

<mm>1</mm>

</qpf_night>


-<snow_allday>

<in>0.0</in>

<cm>0.0</cm>

</snow_allday>


-<snow_day>

<in>0.0</in>

<cm>0.0</cm>

</snow_day>


-<snow_night>

<in>0.0</in>

<cm>0.0</cm>

</snow_night>


-<maxwind>

<mph>15</mph>

<kph>24</kph>

<dir>SSW</dir>

<degrees>211</degrees>

</maxwind>


-<avewind>

<mph>10</mph>

<kph>16</kph>

<dir>SSW</dir>

<degrees>211</degrees>

</avewind>

<avehumidity>62</avehumidity>

<maxhumidity>0</maxhumidity>

<minhumidity>0</minhumidity>

</forecastday>


-<forecastday>


-<date>

<epoch>1500656400</epoch>

<pretty_short>19:00 CEST</pretty_short>

<pretty>07:00 PM CEST am 21. Juli 2017</pretty>

<day>21</day>

<month>7</month>

<year>2017</year>

<yday>201</yday>

<hour>19</hour>

<min>00</min>

<sec>0</sec>

<isdst>1</isdst>

<monthname>Juli</monthname>

<monthname_short>Jul</monthname_short>

<weekday_short>Fr</weekday_short>

<weekday>Freitag</weekday>

<ampm>PM</ampm>

<tz_short>CEST</tz_short>

<tz_long>Europe/Berlin</tz_long>

</date>

<period>3</period>


-<high>

<fahrenheit>81</fahrenheit>

<celsius>27</celsius>

</high>


-<low>

<fahrenheit>63</fahrenheit>

<celsius>17</celsius>

</low>

<conditions>Teils Wolkig</conditions>

<icon>partlycloudy</icon>

<icon_url>http://icons.wxug.com/i/c/k/partlycloudy.gif</icon_url>

<skyicon/>

<pop>20</pop>


-<qpf_allday>

<in>0.00</in>

<mm>0</mm>

</qpf_allday>


-<qpf_day>

<in>0.00</in>

<mm>0</mm>

</qpf_day>


-<qpf_night>

<in>0.00</in>

<mm>0</mm>

</qpf_night>


-<snow_allday>

<in>0.0</in>

<cm>0.0</cm>

</snow_allday>


-<snow_day>

<in>0.0</in>

<cm>0.0</cm>

</snow_day>


-<snow_night>

<in>0.0</in>

<cm>0.0</cm>

</snow_night>


-<maxwind>

<mph>10</mph>

<kph>16</kph>

<dir>NW</dir>

<degrees>318</degrees>

</maxwind>


-<avewind>

<mph>5</mph>

<kph>8</kph>

<dir>NW</dir>

<degrees>318</degrees>

</avewind>

<avehumidity>65</avehumidity>

<maxhumidity>0</maxhumidity>

<minhumidity>0</minhumidity>

</forecastday>


-<forecastday>


-<date>

<epoch>1500742800</epoch>

<pretty_short>19:00 CEST</pretty_short>

<pretty>07:00 PM CEST am 22. Juli 2017</pretty>

<day>22</day>

<month>7</month>

<year>2017</year>

<yday>202</yday>

<hour>19</hour>

<min>00</min>

<sec>0</sec>

<isdst>1</isdst>

<monthname>Juli</monthname>

<monthname_short>Jul</monthname_short>

<weekday_short>Sa</weekday_short>

<weekday>Samstag</weekday>

<ampm>PM</ampm>

<tz_short>CEST</tz_short>

<tz_long>Europe/Berlin</tz_long>

</date>

<period>4</period>


-<high>

<fahrenheit>82</fahrenheit>

<celsius>28</celsius>

</high>


-<low>

<fahrenheit>65</fahrenheit>

<celsius>18</celsius>

</low>

<conditions>Gewitter</conditions>

<icon>tstorms</icon>

<icon_url>http://icons.wxug.com/i/c/k/tstorms.gif</icon_url>

<skyicon/>

<pop>80</pop>


-<qpf_allday>

<in>0.22</in>

<mm>6</mm>

</qpf_allday>


-<qpf_day>

<in>0.21</in>

<mm>5</mm>

</qpf_day>


-<qpf_night>

<in>0.02</in>

<mm>1</mm>

</qpf_night>


-<snow_allday>

<in>0.0</in>

<cm>0.0</cm>

</snow_allday>


-<snow_day>

<in>0.0</in>

<cm>0.0</cm>

</snow_day>


-<snow_night>

<in>0.0</in>

<cm>0.0</cm>

</snow_night>


-<maxwind>

<mph>10</mph>

<kph>16</kph>

<dir>OSO</dir>

<degrees>120</degrees>

</maxwind>


-<avewind>

<mph>5</mph>

<kph>8</kph>

<dir>OSO</dir>

<degrees>120</degrees>

</avewind>

<avehumidity>69</avehumidity>

<maxhumidity>0</maxhumidity>

<minhumidity>0</minhumidity>

</forecastday>

</forecastdays>

</simpleforecast>

</forecast>

</response>
Ich hoffe mein gestammel war einigermaßen verständlich?

Gruß Tobi

Benutzeravatar
alkaline
Beiträge: 173
Registriert: 20. Apr 2017 13:25

Re: Unwetterwarnung in OpenHAB

Beitrag von alkaline »

tobidd hat geschrieben: 19. Jul 2017 17:02 Ok danke.

Das einzige was ich gefunden habe ist das hier.

Code: Alles auswählen

Thing exec:command:lueftungschalten [ command="/var/lib/openhab2/script/lueftung_schalten.sh %2$s", interval=0, timeout=20, autorun=false ]
Ist die Syntax falsch oder fehlt da noch etwas?
Ich glaube, das einfach die Erweiterung %2$s raus bzw. weg muss. Du rufst doch ein sh Script auf und nach meinem Dafürhalten braucht es die Erweiterung nicht. (Muss aber fairerweise dazusagen, das ich diese Möglichkeiten gar nicht nutze)
Evtl. aber muss der Zusatz bleiben aber muss anders heißen? :?:

Wenn du "lediglich" ein Forecast des Wetters machen willst schau dich mal hier um: http://docs.openhab.org/addons/bindings ... eadme.html
Das ist ggf. einfacher. Das habe ich ebefalls laufen und funktioniert gut.

Hierzu gibt es auch eine neuere version, die derzeit noch nicht mal im IoT Market vorhanden ist, Doku hier:
https://github.com/lolodomo/smarthome/b ... /README.md
Download des Jar files hier: http://lg.hc.free.fr/openHAB/org.eclips ... APSHOT.jar
Mir geht es bei diesem Treat eher um die Wetterwarnungen .....

tobidd
Beiträge: 14
Registriert: 10. Jul 2017 20:16

Re: Unwetterwarnung in OpenHAB

Beitrag von tobidd »

Danke für die Hinweise, die werde ich mir mal nach meinem Urlaub anschauen.
Ich bin erst am 7.8 wieder da.

Gruß Tobi

Benutzeravatar
seppy
Beiträge: 738
Registriert: 24. Sep 2015 20:25
Answers: 4
Wohnort: Bonn

Re: Unwetterwarnung in OpenHAB

Beitrag von seppy »

Hi,
nachdem wunderground in ihrer API scheinbar (bereits vor geraumer Zeit) bei den Unwetterwarnungen etwas umgestellt haben, wurde bei mir quasi immer eine Unwetterwarnung angezeigt. Ich habe heute mal recherchiert was dahinter stecken könnte. Folgendes habe ich herausgefunden:
Die Warnungsinformationen bezieht wunderground wohl von http://meteoalarm.eu
Die Infos von dort sind in 5 Level eingeteilt:
snip_meteoalarm.JPG
Scheinbar ist Level 2 quasi immer aktiv. Also habe ich meine Regel entsprechend erweitert. Es gibt ein neues Item

Code: Alles auswählen

Number WeatherAlert_RAWAlertLevel (gWetter) {http="<[cacheWeatherAlertsWunderground:300000:XSLT(wunderground_weather_alertlevel.xsl)]" } 
welches über die entsprechende transform (wunderground_weather_alertlevel.xsl) den Level erhält.
Als echte Unwetterwarnungen sind für mich nur Warnungen ab Level 3 (rot) relevant, also habe ich meine Regel entsprechend erweitert:

Code: Alles auswählen

/**
 * Änderung am Unwetterwarnungsstatus
 */
rule "WeatherAlert_RAWMessage_Changed"
when
	Item WeatherAlert_RAWMessage changed
then
	//Leerzeichen am Anfang und Ende entfernen, sowie doppelte Leerzeichen im Text
	alertmessage = WeatherAlert_RAWMessage.state.toString.trim().replaceAll("[\\s]+"," ")
	//Prüfung ob eine Unwetterwarnung vorliegt (String länger als ein Zeichen und nicht uninitialisiert)
	//Update Nov. 2017 wenn der Alertlevel > 2 ist laut http://meteoalarm.eu/
	if (alertmessage.length() > 1 && alertmessage != "Uninitialized" && WeatherAlert_RAWAlertLevel.state > 2){
		//Wenn JA Umlaute und falsche Zeichen der API ersetzen bzw. entfernen
		logInfo("HomeBox.WeatherAlert_Message_Changed", "Unwetterwarnung erkannt")
		val umlaute = newArrayList('Ä','Ö',"Ü","ä","ö","ü","ß","é","è","ê","â","á","à","§","°","ß","","","","","","Ö","Ä","Extrem Temperatur: ","")
		val replace = newArrayList("Ä","Ö","Ãœ","ä","ö","ü","ß","é","è","ê","â","á","Ã","§","°","à&#159;","&amp;","nbsp","\n","\r","  ","Thunderstorms ","à&#150;"," à&#132;","Extreme high temperature","deutsch:")
		umlaute.forEach[x,i|
			alertmessage = alertmessage.replace(replace.get(i),x)
		]
		alertmessage = alertmessage.replaceAll("deutsch: ","")
		//Item für Nachricht mit formatiertem String aktualisieren aktualisieren
		WeatherAlert_Message.postUpdate(alertmessage)
		WeatherAlert.postUpdate(alertmessage)
		
		// Prüfung ob neue Unwettermeldung vorliegt (Aktivität == OFF) 
		if (WeatherAlertActive.state == OFF){
			// Unwetterwarnung aktivieren
			WeatherAlertActive.sendCommand(ON)
			//Bewohner per WhatsApp informieren
			//executeCommandLine("/opt/yowsup/yowsup-cli@@demos@@-c@@/opt/yowsup/homebox.config@@-s@@4915116217227-1435683963@@UNWETTERWARNUNG:\n" + alertmessage)
		} 
	//Wenn NEIN
	} else {
		//Zurücksetzen der Nachricht
		WeatherAlert_Message.postUpdate("Uninitialized")
		WeatherAlert.postUpdate("Uninitialized")
		//Wenn Aktivität noch ON 
		if (WeatherAlertActive.state == ON){
			//Aktivierung abschalten
			WeatherAlertActive.sendCommand(OFF)
			//Bewohner per WhatsApp informieren
			pushover("UNWETTERWARNUNG AUFGEHOBEN")			
		}
	}
	
	// Aktualisierungsdatum setzen	
	WeatherLastUpdate.postUpdate(new DateTimeType())
	logDebug("HomeBox.WeatherRainForecast_Changed", "Updated WeatherLastUpdate: " + WeatherLastUpdate.state)
end
Eventuell hilft diese kleine Erweiterung dem einen oder anderen.

Grüße,
Seppy
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Homematic und HomematicIP über Raspberrymatic (RaspPi 4 4GB) mit 2x HMLAN. Steuerung und Visualisierung durch OpenHAB2 auf RaspPi in Hutschienengehäuse im Sicherungskasten. Rund 100 Aktoren/Sensoren

- Abgesichert durch APC USV
- Bewässerungssteuerung mit Hunter Magnetventilen (HM-LC-Sw4-DR)
- Beleuchtungssteuerung Innen und Aussen (HM-LC-Sw4-DR + HM-LC-SW1-FM + HMW-IO-12-SW7-DR)
- Rolladensteuerung mit Beschattungsautomatik über Temperaturdifferenzsensor (HM-LC-Bl1PBU-FM)
- Wetter und Unwetterinformationen von wunderground
- Benachrichtigung der Bewohner via Pushover
- Multimediawand und Dreambox Steuerung (HM-LC-SW1-FM)
- Heizungssteuerung mit Komfort und Energiesparfunktionen (HM-CC-RT-DN + HM-Sec-SC-2 + HMIP-eTRV-2)
- Werkstatt Kompressorsteuerung (HMW-IO-12-SW7-DR)
- Weihnachtsbeleuchtung außen
- Präsenzerkennung über Geolocation (iCloud Binding), iBeacon und WLAN (Unifi Binding)
- Philips HUE & Tasmota Devices (Tuya) Einbindung

Antworten