From f63ab23583b33247afbe1abf85515215c2b32cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 25 Jan 2017 20:06:45 +0100 Subject: [PATCH] move openweather to match new layout --- contrib/README.md | 12 ++++++++---- contrib/{openweather.lua => openweather_all.lua} | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) rename contrib/{openweather.lua => openweather_all.lua} (96%) diff --git a/contrib/README.md b/contrib/README.md index 554e89f..622ba24 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -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** diff --git a/contrib/openweather.lua b/contrib/openweather_all.lua similarity index 96% rename from contrib/openweather.lua rename to contrib/openweather_all.lua index d3d2ffd..dfeabf7 100644 --- a/contrib/openweather.lua +++ b/contrib/openweather_all.lua @@ -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 })