fix: always use day icons

The API response did not contain an is_day flag for the summary.
Therefore the code always opted for using the night icon. Doesn't make
sense.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2025-01-13 08:24:50 +01:00
parent d6733cf2b6
commit cb5ef827d0
No known key found for this signature in database
GPG Key ID: 5A668E771F1ED854
1 changed files with 1 additions and 5 deletions

View File

@ -321,10 +321,6 @@ local function worker(user_args)
for i, day in ipairs(forecast) do
-- Free plan allows forecast for up to three days, each with hours
if i > 3 then break end
local day_night_extension = ""
if not day.is_day then
day_night_extension = "-night"
end
local day_forecast = wibox.widget {
{
@ -336,9 +332,9 @@ local function worker(user_args)
{
{
{
-- No extension to decide between day and night
image = ICONS_DIR
.. icon_map[day.day.condition.code]
.. day_night_extension
.. icons_extension,
resize = true,
forced_width = 48,