Skip to content

Commit

Permalink
"temp_min" and "temp_max" are useless as both show always the same value
Browse files Browse the repository at this point in the history
  • Loading branch information
trap000d authored and lcpz committed Mar 30, 2021
1 parent e5774fd commit 799fab6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions widget/weather.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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("<b>%s</b>: %s, %d - %d ", day, desc, tmin, tmax)
return string.format("<b>%s</b>: %s, %d ", day, desc, temp)
end
local weather_na_markup = args.weather_na_markup or " N/A "
local followtag = args.followtag or false
Expand Down

0 comments on commit 799fab6

Please sign in to comment.