mirror of https://github.com/lcpz/lain.git
widget.weather: remove invalid default API key; wiki updated; closes #493
This commit is contained in:
parent
21c0d157ac
commit
3d4bb0b1d3
|
@ -24,7 +24,7 @@ local function factory(args)
|
||||||
args = args or {}
|
args = args or {}
|
||||||
|
|
||||||
local weather = { widget = args.widget or wibox.widget.textbox() }
|
local weather = { widget = args.widget or wibox.widget.textbox() }
|
||||||
local APPID = args.APPID or "3e321f9414eaedbfab34983bda77a66e" -- lain's default
|
local APPID = args.APPID -- mandatory
|
||||||
local timeout = args.timeout or 60 * 15 -- 15 min
|
local timeout = args.timeout or 60 * 15 -- 15 min
|
||||||
local current_call = args.current_call or "curl -s 'https://api.openweathermap.org/data/2.5/weather?id=%s&units=%s&lang=%s&APPID=%s'"
|
local current_call = args.current_call or "curl -s 'https://api.openweathermap.org/data/2.5/weather?id=%s&units=%s&lang=%s&APPID=%s'"
|
||||||
local forecast_call = args.forecast_call or "curl -s 'https://api.openweathermap.org/data/2.5/forecast?id=%s&units=%s&lang=%s&APPID=%s'"
|
local forecast_call = args.forecast_call or "curl -s 'https://api.openweathermap.org/data/2.5/forecast?id=%s&units=%s&lang=%s&APPID=%s'"
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit ddc6aa0649d4fd091c1a73784d0507feb86eaf5f
|
Subproject commit 876a5a1d50f0306148c55d86937fd2f1d7b174ac
|
Loading…
Reference in New Issue