Read city and api key from env first
Corresponding env vars are: * AWW_WEATHER_CITY * AWW_WEATHER_API_KEY
This commit is contained in:
parent
74f3d82bdd
commit
5a5c9eb8f0
|
@ -11,8 +11,8 @@ local json = require("json")
|
|||
local naughty = require("naughty")
|
||||
local wibox = require("wibox")
|
||||
|
||||
local city = "Montreal,ca"
|
||||
local open_map_key = 'c3d7320b359da4e48c2d682a04076576'
|
||||
local city = os.getenv("AWW_WEATHER_CITY") or "Montreal,ca"
|
||||
local open_map_key = os.getenv("AWW_WEATHER_API_KEY") or 'c3d7320b359da4e48c2d682a04076576'
|
||||
local path_to_icons = "/usr/share/icons/Arc/status/symbolic/"
|
||||
|
||||
local icon_widget = wibox.widget {
|
||||
|
|
Loading…
Reference in New Issue