Skip to content

Commit

Permalink
Fix pom file
Browse files Browse the repository at this point in the history
  • Loading branch information
sknull committed Jun 23, 2024
1 parent 46be78c commit a7cacd3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions klanglicht-module-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,12 @@
<version>2.16.1</version>
</dependency>

<!-- commons -->
<dependency>
<groupId>org.shredzone.commons</groupId>
<artifactId>commons-suncalc</artifactId>
<version>3.11</version>
</dependency>

</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -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)
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<repository>
<id>github</id>
<name>GitHub sknull Apache Maven Packages</name>
<url>https://maven.pkg.github.com/sknull/twinkly-kt</url>
<url>https://maven.pkg.github.com/sknull/klanglicht-kt</url>
<releases>
<enabled>true</enabled>
</releases>
Expand Down

0 comments on commit a7cacd3

Please sign in to comment.