Read city and api key from env first

Corresponding env vars are:
* AWW_WEATHER_CITY
* AWW_WEATHER_API_KEY
This commit is contained in:
Sviatoslav Sydorenko 2018-03-21 19:16:43 +01:00
parent 74f3d82bdd
commit 5a5c9eb8f0
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 2 additions and 2 deletions

View File

@ -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 {