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.openweather
|
||||
- provides weather information for a requested city
|
||||
- takes OpenWeatherMap city ID as an argument, i.e. "1275339"
|
||||
- returns a table with string keys: {city}, {wind deg}, {wind aim},
|
||||
**vicious.contrib.openweather**
|
||||
|
||||
Provides weather information for a requested city
|
||||
|
||||
- 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}
|
||||
|
||||
**vicious.contrib.nvinf**
|
||||
|
|
|
@ -17,7 +17,7 @@ local math = {
|
|||
|
||||
-- Openweather: provides weather information for a requested station
|
||||
-- vicious.widgets.openweather
|
||||
local openweather = {}
|
||||
local openweather_all = {}
|
||||
|
||||
|
||||
-- Initialize function tables
|
||||
|
@ -91,4 +91,4 @@ local function worker(format, warg)
|
|||
end
|
||||
-- }}}
|
||||
|
||||
return setmetatable(openweather, { __call = function(_, ...) return worker(...) end })
|
||||
return setmetatable(openweather_all, { __call = function(_, ...) return worker(...) end })
|
Loading…
Reference in New Issue