Skip to content

Commit

Permalink
use correct rain-field
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreKoepke committed Nov 5, 2022
1 parent 974245f commit ab315e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'ch.akop'
version = '0.1.0'
version = '0.1.1'

java {
sourceCompatibility = 17
Expand All @@ -18,7 +18,7 @@ repositories {
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.36'

implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.3'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.4'
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.2'
implementation 'org.jetbrains:annotations:23.0.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Weather scrape(String deviceId) {
.setWind(Wind.fromUnit(response.wspdCurrent().value(), WindSpeedUnit.METERS_PER_SECOND))
.setOuterTemperatur(Temperature.fromUnit(response.tempCurrent().value(), TemperatureUnit.DEGREE))
.setLight(Light.fromUnit(response.solarradCurrent().value(), LightUnit.KILO_LUX))
.setRain(Rain.fromUnit(response.rainCurrent().value(), RainUnit.MILLIMETER_PER_HOUR));
.setRain(Rain.fromUnit(response.rainrateCurrent().value(), RainUnit.MILLIMETER_PER_HOUR));
}

@SneakyThrows
Expand Down

0 comments on commit ab315e9

Please sign in to comment.