-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
217 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
red ff0000 | ||
green 00ff00 | ||
blue 0000ff | ||
|
||
yellow ffff00 | ||
magenta ff00ff | ||
cyan 00ffff | ||
|
||
orange ff8000 | ||
purple 8000ff | ||
|
||
dark red 400000 | ||
dark green 004000 | ||
dark blue 000040 | ||
|
||
dark yellow 404000 | ||
dark magenta 400040 | ||
dark cyan 004040 | ||
|
||
Background purple-green {group:background;color:#8000ff,#004000,#8000ff,#004000} bicolor purple-green 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=8000ff,004000,8000ff,004000,8000ff,004000,8000ff&turnOn=true& | ||
Background green-purple {group:background;color:#004000,#8000ff,#004000,#8000ff} bicolor green-purple 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=004000,8000ff,004000,8000ff,004000,8000ff,004000&turnOn=true& | ||
|
||
Background blue-green {group:background;color:#0000ff,#004000,#0000ff,#004000} bicolor blue-green 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=0000ff,00ff00,0000ff,00ff00,0000ff,00ff00,0000ff&turnOn=true& | ||
Background green-blue {group:background;color:#004000,#0000ff,#004000,#0000ff} bicolor green-blue 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=00ff00,0000ff,00ff00,0000ff,00ff00,0000ff,00ff00&turnOn=true& | ||
|
||
Background blue-cyan {group:background;color:#0000ff,#00ffff,#0000ff,#00ffff} bicolor blue-cyan 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=0000ff,00ffff,0000ff,00ffff,0000ff,00ffff,0000ff&turnOn=true& | ||
Background cyan-blue {group:background;color:#00ffff,#0000ff,#00ffff,#0000ff} bicolor cyan-blue 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=00ffff,0000ff,00ffff,0000ff,00ffff,0000ff,00ffff&turnOn=true& | ||
|
||
Background blue-yellow {group:background;color:#0000ff,#ffff00,#0000ff,#ffff00} bicolor blue-yellow 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=0000ff,ffff00,0000ff,ffff00,0000ff,ffff00,0000ff&turnOn=true& | ||
Background yellow-blue {group:background;color:#ffff00,#0000ff,#ffff00,#0000ff} bicolor yellow-blue 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=ffff00,0000ff,ffff00,0000ff,ffff00,0000ff,ffff00&turnOn=true& | ||
|
||
Background green-yellow {group:background;color:#00ff00,#ffff00,#00ff00,#ffff00} bicolor green-yellow 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=00ff00,ffff00,00ff00,ffff00,00ff00,ffff00,00ff00&turnOn=true& | ||
Background yellow-green {group:background;color:#ffff00,#00ff00,#ffff00,#00ff00} bicolor yellow-green 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=ffff00,00ff00,ffff00,00ff00,ffff00,00ff00,ffff00&turnOn=true& | ||
|
||
Background purple-yellow {group:background;color:#8000ff,#ffff00,#8000ff,#ffff00} bicolor purple-yellow 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=8000ff,ffff00,8000ff,ffff00,8000ff,ffff00,8000ff&turnOn=true& | ||
Background yellow-purple {group:background;color:#ffff00,#8000ff,#ffff00,#8000ff} bicolor yellow-purple 192.168.178.30:8888/v1/hybrid/json/hexColor?hexColors=ffff00,8000ff,ffff00,8000ff,ffff00,8000ff,ffff00&turnOn=true& |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>jar</packaging> | ||
|
||
<properties> | ||
<version.spring-boot>3.1.2</version.spring-boot> | ||
</properties> | ||
|
||
<parent> | ||
<groupId>de.visualdigits.kotlin</groupId> | ||
<artifactId>klanglicht-kt</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../pom.xml</relativePath> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>klanglicht-rest</artifactId> | ||
<version>${revision}</version> | ||
|
||
<dependencies> | ||
<!-- project dependencies --> | ||
<dependency> | ||
<groupId>de.visualdigits.kotlin</groupId> | ||
<artifactId>klanglicht-core</artifactId> | ||
<version>${revision}</version> | ||
</dependency> | ||
|
||
<!-- kotlin --> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-reflect</artifactId> | ||
<version>${version.kotlin}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-maven-noarg</artifactId> | ||
<version>${version.kotlin}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-maven-allopen</artifactId> | ||
<version>${version.kotlin}</version> | ||
</dependency> | ||
|
||
<!-- spring boot --> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>${version.spring-boot}</version> | ||
<type>pom</type> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
<version>${version.spring-boot}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-tomcat</artifactId> | ||
<version>${version.spring-boot}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-thymeleaf</artifactId> | ||
<version>${version.spring-boot}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-actuator</artifactId> | ||
<version>${version.spring-boot}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-logging</artifactId> | ||
<version>${version.spring-boot}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<version>${version.spring-boot}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
11 changes: 11 additions & 0 deletions
11
klanglicht-rest/src/main/kotlin/de/visualdigits/kotlin/klanglicht/rest/KlangLichtMain.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package de.visualdigits.kotlin.klanglicht.rest | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication | ||
import org.springframework.boot.runApplication | ||
|
||
@SpringBootApplication | ||
open class KlangLichtMain | ||
|
||
fun main(args: Array<String>) { | ||
runApplication<KlangLichtMain>(*args) | ||
} |
25 changes: 25 additions & 0 deletions
25
...src/main/kotlin/de/visualdigits/kotlin/klanglicht/rest/controller/KlangLichtController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package de.visualdigits.kotlin.klanglicht.rest.controller | ||
|
||
import de.visualdigits.kotlin.klanglicht.model.parameter.Scene | ||
import org.slf4j.LoggerFactory | ||
import org.springframework.stereotype.Controller | ||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
|
||
@Controller | ||
@RequestMapping("/dmx/v1") | ||
class KlangLichtController { | ||
|
||
private val log = LoggerFactory.getLogger(KlangLichtController::class.java) | ||
|
||
@GetMapping("hello") | ||
fun hello(): String { | ||
log.info("### hello world!") | ||
return "foo" | ||
} | ||
|
||
@GetMapping("setScene") | ||
fun setScene(scene: Scene) { | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/base.xml" /> | ||
|
||
<appender name="SERVER" class="ch.qos.logback.core.FileAppender"> | ||
<file>server.log</file> | ||
<append>true</append> | ||
<encoder> | ||
<pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="REQUEST" class="ch.qos.logback.core.FileAppender"> | ||
<file>request.log</file> | ||
<append>true</append> | ||
<encoder> | ||
<pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="de.visualdigits.common.configuration.SimpleRequestLoggingFilter" level="DEBUG" additivity="false"> | ||
<appender-ref ref="REQUEST"/> | ||
</logger> | ||
|
||
<logger name="org.springframework.web" level="INFO"> | ||
<appender-ref ref="SERVER"/> | ||
</logger> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="SERVER" /> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset = "ISO-8859-1" /> | ||
<link href = "css/styles.css" rel = "stylesheet"/> | ||
<title>Spring Boot Application</title> | ||
</head> | ||
<body> | ||
<h4>Welcome to Thymeleaf Spring Boot web application</h4> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters