added openweather api key to config; some fixes

This commit is contained in:
Johannes Findeisen 2020-07-07 04:40:17 +02:00
commit 2e77d946c1
No known key found for this signature in database
GPG key ID: 2128DE136929E573
3 changed files with 4 additions and 3 deletions

View file

@ -137,6 +137,7 @@ local thermalwidget = wibox.widget.textbox()
vicious.register(thermalwidget, vicious.widgets.thermal, "$1°C ", 20, config.thermal_zone )
local myweather = lain.widget.weather({
APPID = config.openweather_api_key,
city_id = config.cityid,
notification_preset = { font = beautiful.font },
notification_text_fun = function (wn)
@ -146,7 +147,6 @@ local myweather = lain.widget.weather({
local desc = wn["weather"][1]["description"]
return string.format("<b>%s</b>: %s, %d°C/%d°C ", day, desc, tmin, tmax)
end,
})
myweather.attach(myweather.icon)