From 0735ce285fcc7f4fa59a987540911d4d04b4ca83 Mon Sep 17 00:00:00 2001 From: mrbwburns <> Date: Tue, 23 Jan 2024 20:44:21 +0100 Subject: [PATCH] add sunrise and sunset to the owm wrapper --- inkycal/custom/openweathermap_wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inkycal/custom/openweathermap_wrapper.py b/inkycal/custom/openweathermap_wrapper.py index da220d6..b157a7d 100644 --- a/inkycal/custom/openweathermap_wrapper.py +++ b/inkycal/custom/openweathermap_wrapper.py @@ -73,6 +73,8 @@ class OpenWeatherMap: ) # OWM Unit Default: meter/sec, Metric: meter/sec current_weather["wind_gust"] = self.get_converted_windspeed(current_data["wind"]["gust"]) current_weather["uvi"] = None # TODO: this is no longer supported with 2.5 API, find alternative + current_weather["sunrise"] = current_data["sys"]["sunrise"] # unix timestamp + current_weather["sunset"] = current_data["sys"]["sunset"] self.current_weather = current_weather