mirror of https://github.com/lcpz/lain.git
"temp_min" and "temp_max" are useless as both show always the same value
This commit is contained in:
parent
e5774fd463
commit
799fab660b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue