Skip to content

Commit cb5ef82

Browse files
committed
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 <[email protected]>
1 parent d6733cf commit cb5ef82

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

weather-api-widget/weather.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,6 @@ local function worker(user_args)
321321
for i, day in ipairs(forecast) do
322322
-- Free plan allows forecast for up to three days, each with hours
323323
if i > 3 then break end
324-
local day_night_extension = ""
325-
if not day.is_day then
326-
day_night_extension = "-night"
327-
end
328324

329325
local day_forecast = wibox.widget {
330326
{
@@ -336,9 +332,9 @@ local function worker(user_args)
336332
{
337333
{
338334
{
335+
-- No extension to decide between day and night
339336
image = ICONS_DIR
340337
.. icon_map[day.day.condition.code]
341-
.. day_night_extension
342338
.. icons_extension,
343339
resize = true,
344340
forced_width = 48,

0 commit comments

Comments
 (0)