parent
c30ccc4944
commit
969f22b4e7
@ -0,0 +1 @@
|
|||||||
|
Src changed
|
||||||
@ -1,41 +1,40 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="test" value="true"/>
|
<attribute name="test" value="true"/>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="test" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
</attributes>
|
||||||
<attribute name="optional" value="true"/>
|
</classpathentry>
|
||||||
</attributes>
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
</classpathentry>
|
<attributes>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
<attributes>
|
</attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
</classpathentry>
|
||||||
</attributes>
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||||
</classpathentry>
|
<attributes>
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
<attributes>
|
<attribute name="test" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
</attributes>
|
||||||
</attributes>
|
</classpathentry>
|
||||||
</classpathentry>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
</classpath>
|
||||||
</classpath>
|
|
||||||
|
|||||||
@ -1,10 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
<wb-module deploy-name="webportal">
|
|
||||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
<wb-module deploy-name="webportal">
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
|
||||||
<property name="context-root" value="webportal"/>
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
<property name="java-output-path" value="/webportal/target/classes"/>
|
|
||||||
</wb-module>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
</project-modules>
|
|
||||||
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||||
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
|
||||||
|
|
||||||
|
<property name="context-root" value="webportal"/>
|
||||||
|
|
||||||
|
<property name="java-output-path" value="/webportal/target/classes"/>
|
||||||
|
|
||||||
|
</wb-module>
|
||||||
|
|
||||||
|
</project-modules>
|
||||||
|
|||||||
@ -0,0 +1,26 @@
|
|||||||
|
package de.games.nanoleaf.server;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import io.github.rowak.nanoleafapi.NanoleafDevice;
|
||||||
|
import io.github.rowak.nanoleafapi.util.NanoleafDeviceMeta;
|
||||||
|
import io.github.rowak.nanoleafapi.util.NanoleafSetup;
|
||||||
|
|
||||||
|
public class NanoleafEventServer {
|
||||||
|
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int timeout = 2000;
|
||||||
|
// List<NanoleafDeviceMeta> devices = NanoleafSetup.findNanoleafDevices(timeout);
|
||||||
|
// NanoleafDeviceMeta meta = devices.get(0); // Beispiel: Erster Gerät in der Liste
|
||||||
|
// String accessToken = NanoleafSetup.createAccessToken(meta.getHostName(), meta.getPort());
|
||||||
|
// NanoleafDevice device = NanoleafSetup.createDevice(meta, accessToken);
|
||||||
|
//
|
||||||
|
// // Event Handling
|
||||||
|
// device.setOnStateChangedListener(state -> {
|
||||||
|
// System.out.println("State changed: " + state.isOn());
|
||||||
|
// });
|
||||||
|
|
||||||
|
// Weitere Event-Listener hinzufügen, falls erforderlich
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +0,0 @@
|
|||||||
<hotdeploy>
|
|
||||||
<webappdir name="/eclnthotdeploy/classes"/>
|
|
||||||
<webappdir name="/eclnthotdeploy/lib"/>
|
|
||||||
</hotdeploy>
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<t:layoutdefinition xmlns:t="http://www.CaptainCasa.com/controllibrary/t" >
|
<t:layoutdefinition xmlns:t="http://www.CaptainCasa.com/controllibrary/t" >
|
||||||
|
|
||||||
<t:beanprocessing id="g_1" beanbinding="#{d.MainPage}" />
|
<t:beanprocessing id="g_1" beanbinding="#{d.MainPage}" />
|
||||||
<t:rowpagebeaninclude id="g_8" pagebeanbinding="#{d.MainPage.currentPage}" shownullcontent="true" />
|
<t:rowpagebeaninclude id="g_8" pagebeanbinding="#{d.MainPage.currentPage}" shownullcontent="true" />
|
||||||
|
|
||||||
</t:layoutdefinition>
|
</t:layoutdefinition>
|
||||||
Loading…
Reference in new issue