move openweather to match new layout

This commit is contained in:
Jörg Thalheim 2017-01-25 20:06:45 +01:00
parent 4882377cb3
commit f63ab23583
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 10 additions and 6 deletions

View File

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

View File

@ -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 })