From a7cacd32adfb72daafe5ef7dcff3947b3a4e07fa Mon Sep 17 00:00:00 2001 From: Stephan Knull Date: Sun, 23 Jun 2024 11:51:03 +0200 Subject: [PATCH] Fix pom file --- klanglicht-module-base/pom.xml | 7 +++++++ .../hardware/lightmanager/SunriseTest.kt | 19 +++++++++++++++++++ pom.xml | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 klanglicht-module-base/src/test/kotlin/de/visualdigits/klanglicht/hardware/lightmanager/SunriseTest.kt diff --git a/klanglicht-module-base/pom.xml b/klanglicht-module-base/pom.xml index deeadf1..4a7ac25 100644 --- a/klanglicht-module-base/pom.xml +++ b/klanglicht-module-base/pom.xml @@ -47,5 +47,12 @@ 2.16.1 + + + org.shredzone.commons + commons-suncalc + 3.11 + + diff --git a/klanglicht-module-base/src/test/kotlin/de/visualdigits/klanglicht/hardware/lightmanager/SunriseTest.kt b/klanglicht-module-base/src/test/kotlin/de/visualdigits/klanglicht/hardware/lightmanager/SunriseTest.kt new file mode 100644 index 0000000..9e45294 --- /dev/null +++ b/klanglicht-module-base/src/test/kotlin/de/visualdigits/klanglicht/hardware/lightmanager/SunriseTest.kt @@ -0,0 +1,19 @@ +package de.visualdigits.klanglicht.hardware.lightmanager + +import org.junit.jupiter.api.Test +import org.shredzone.commons.suncalc.SunTimes +import java.time.LocalDateTime + +class SunriseTest { + + @Test + fun testSunriseAndSunset() { + val sunTimes = SunTimes.compute() + .on(LocalDateTime.now()) + .at(53.551, 9.994) + .execute() + println(sunTimes.rise) + println(sunTimes.noon) + println(sunTimes.set) + } +} diff --git a/pom.xml b/pom.xml index 6ed2e44..6409829 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ github GitHub sknull Apache Maven Packages - https://maven.pkg.github.com/sknull/twinkly-kt + https://maven.pkg.github.com/sknull/klanglicht-kt true