From 4502524a1912bb0d8759562d8e2a0386e223f9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 25 Jan 2017 20:15:56 +0100 Subject: [PATCH] move wpa widget to match new layout --- contrib/README.md | 12 ++++++++---- contrib/{wpa.lua => wpa_all.lua} | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) rename contrib/{wpa.lua => wpa_all.lua} (93%) diff --git a/contrib/README.md b/contrib/README.md index bf1e155..3cd4471 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -142,11 +142,15 @@ manipulate them **vicious.contrib.sensors** -vicious.contrib.wpa - - provides information about the wifi status - - requires 'wpa_cli' from wpa_supplicant +**vicious.contrib.wpa** + +Provides information about the wifi status +Supported Platforms: platform independent (`wpa_cli`) + +- Arguments - takes the interface as an argument, i.e "wlan0" or "wlan1" - - returns a table with string keys: {ssid}, {qual}, {ip}, {bssid} +- Returns + - a table with string keys: {ssid}, {qual}, {ip}, {bssid} **vicious.contrib.buildbot** diff --git a/contrib/wpa.lua b/contrib/wpa_all.lua similarity index 93% rename from contrib/wpa.lua rename to contrib/wpa_all.lua index f42e852..462068f 100644 --- a/contrib/wpa.lua +++ b/contrib/wpa_all.lua @@ -20,7 +20,7 @@ local string = { -- Wifi: provides wireless information for a requested interface -local wpa = {} +local wpa_all = {} local info = { ["{ssid}"] = "N/A", @@ -62,4 +62,4 @@ local function worker(format, warg) end -- }}} -return setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(wpa_all, { __call = function(_, ...) return worker(...) end })