summaryrefslogtreecommitdiff
path: root/weather-widget/weather.lua
diff options
context:
space:
mode:
authorpmakhov <pavel.makhov@savoirfairelinux.com>2017-12-04 11:56:21 -0500
committerpmakhov <pavel.makhov@savoirfairelinux.com>2017-12-04 11:56:21 -0500
commit128aec5ef7cb8dbf2e9cee592188be7c54e4588f (patch)
tree9c3497bc997403e45592fb869968e25b9e403609 /weather-widget/weather.lua
parentd12e29a102cc2c363384bcf28e1d4dd53f56e4ed (diff)
externalize api key
Diffstat (limited to 'weather-widget/weather.lua')
-rw-r--r--weather-widget/weather.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index 5ee1d39..e5367f6 100644
--- a/weather-widget/weather.lua
+++ b/weather-widget/weather.lua
@@ -1,10 +1,12 @@
+package.path = package.path .. ";../../secrets.lua"
+local secrets = require("secrets")
local wibox = require("wibox")
local http = require("socket.http")
local json = require("json")
local naughty = require("naughty")
local city = "Montreal,ca"
-local open_map_key = "<openWeatherMap api key>"
+local open_map_key = secrets.weather_widget_api_key
local path_to_icons = "/usr/share/icons/Arc/status/symbolic/"
local icon_widget = wibox.widget {