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:
parent
d6733cf2b6
commit
cb5ef827d0
|
@ -321,10 +321,6 @@ local function worker(user_args)
|
||||||
for i, day in ipairs(forecast) do
|
for i, day in ipairs(forecast) do
|
||||||
-- Free plan allows forecast for up to three days, each with hours
|
-- Free plan allows forecast for up to three days, each with hours
|
||||||
if i > 3 then break end
|
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 {
|
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
|
image = ICONS_DIR
|
||||||
.. icon_map[day.day.condition.code]
|
.. icon_map[day.day.condition.code]
|
||||||
.. day_night_extension
|
|
||||||
.. icons_extension,
|
.. icons_extension,
|
||||||
resize = true,
|
resize = true,
|
||||||
forced_width = 48,
|
forced_width = 48,
|
||||||
|
|
Loading…
Reference in New Issue