From 799fab660b853091ad908ad9d7c1540a9a881f6b Mon Sep 17 00:00:00 2001 From: Aleksandr Beliaev Date: Tue, 30 Mar 2021 10:23:56 +1300 Subject: [PATCH] "temp_min" and "temp_max" are useless as both show always the same value --- widget/weather.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widget/weather.lua b/widget/weather.lua index 24d7d73..c683d42 100644 --- a/widget/weather.lua +++ b/widget/weather.lua @@ -37,10 +37,9 @@ local function factory(args) local notification_text_fun = args.notification_text_fun or function (wn) local day = os.date("%a %d", wn["dt"]) - local tmin = math.floor(wn["main"]["temp_min"]) - local tmax = math.floor(wn["main"]["temp_max"]) + local temp = math.floor(wn["main"]["temp"]) local desc = wn["weather"][1]["description"] - return string.format("%s: %s, %d - %d ", day, desc, tmin, tmax) + return string.format("%s: %s, %d ", day, desc, temp) end local weather_na_markup = args.weather_na_markup or " N/A " local followtag = args.followtag or false