"temp_min" and "temp_max" are useless as both show always the same value

This commit is contained in:
Aleksandr Beliaev 2021-03-30 10:23:56 +13:00 committed by Luca Capezzuto
parent e5774fd463
commit 799fab660b
1 changed files with 2 additions and 3 deletions

View File

@ -37,10 +37,9 @@ local function factory(args)
local notification_text_fun = args.notification_text_fun or local notification_text_fun = args.notification_text_fun or
function (wn) function (wn)
local day = os.date("%a %d", wn["dt"]) local day = os.date("%a %d", wn["dt"])
local tmin = math.floor(wn["main"]["temp_min"]) local temp = math.floor(wn["main"]["temp"])
local tmax = math.floor(wn["main"]["temp_max"])
local desc = wn["weather"][1]["description"] local desc = wn["weather"][1]["description"]
return string.format("<b>%s</b>: %s, %d - %d ", day, desc, tmin, tmax) return string.format("<b>%s</b>: %s, %d ", day, desc, temp)
end end
local weather_na_markup = args.weather_na_markup or " N/A " local weather_na_markup = args.weather_na_markup or " N/A "
local followtag = args.followtag or false local followtag = args.followtag or false