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