X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..e46fa5a6df6474f430c40de5a2da1081731dea07:/widgets/weather.lua?ds=inline diff --git a/widgets/weather.lua b/widgets/weather.lua index 9f83dc8..1e398cc 100644 --- a/widgets/weather.lua +++ b/widgets/weather.lua @@ -25,7 +25,7 @@ local setmetatable = setmetatable -- lain.widgets.weather local function worker(args) - local weather = helpers.make_widget_textbox() + local weather = { widget = wibox.widget.textbox() } local args = args or {} local APPID = args.APPID or "3e321f9414eaedbfab34983bda77a66e" -- lain default local timeout = args.timeout or 900 -- 15 min @@ -68,6 +68,7 @@ local function worker(args) end if not weather.notification_text then + weather.update() weather.forecast_update() end