move openweather to match new layout
This commit is contained in:
parent
4882377cb3
commit
f63ab23583
|
@ -79,10 +79,14 @@ vicious.contrib.netcfg
|
||||||
|
|
||||||
**vicious.contrib.net**
|
**vicious.contrib.net**
|
||||||
|
|
||||||
vicious.contrib.openweather
|
**vicious.contrib.openweather**
|
||||||
- provides weather information for a requested city
|
|
||||||
- takes OpenWeatherMap city ID as an argument, i.e. "1275339"
|
Provides weather information for a requested city
|
||||||
- returns a table with string keys: {city}, {wind deg}, {wind aim},
|
|
||||||
|
- Arguments
|
||||||
|
* takes OpenWeatherMap city ID as an argument, i.e. "1275339"
|
||||||
|
- Returns
|
||||||
|
* a table with string keys: {city}, {wind deg}, {wind aim},
|
||||||
{wind kmh}, {wind mps}, {sky}, {weather}, {temp c}, {humid}, {press}
|
{wind kmh}, {wind mps}, {sky}, {weather}, {temp c}, {humid}, {press}
|
||||||
|
|
||||||
**vicious.contrib.nvinf**
|
**vicious.contrib.nvinf**
|
||||||
|
|
|
@ -17,7 +17,7 @@ local math = {
|
||||||
|
|
||||||
-- Openweather: provides weather information for a requested station
|
-- Openweather: provides weather information for a requested station
|
||||||
-- vicious.widgets.openweather
|
-- vicious.widgets.openweather
|
||||||
local openweather = {}
|
local openweather_all = {}
|
||||||
|
|
||||||
|
|
||||||
-- Initialize function tables
|
-- Initialize function tables
|
||||||
|
@ -91,4 +91,4 @@ local function worker(format, warg)
|
||||||
end
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
return setmetatable(openweather, { __call = function(_, ...) return worker(...) end })
|
return setmetatable(openweather_all, { __call = function(_, ...) return worker(...) end })
|
Loading…
Reference in New Issue