diff --git a/src/main/java/de/ph87/data/weather/BrightSkyDto.java b/src/main/java/de/ph87/data/weather/BrightSkyDto.java index 90f0238..7c0739d 100644 --- a/src/main/java/de/ph87/data/weather/BrightSkyDto.java +++ b/src/main/java/de/ph87/data/weather/BrightSkyDto.java @@ -60,6 +60,18 @@ public class BrightSkyDto { this.timestamp = timestamp.withZoneSameInstant(TimeZone.getDefault().toZoneId()); } + public double getSolar() { + return solar == null ? 0.0 : solar; + } + + public double getCloud_cover() { + return cloud_cover == null ? 0.0 : cloud_cover; + } + + public double getPrecipitation() { + return precipitation == null ? 0.0 : precipitation; + } + } }