From d63343efda83a24c52abfd58159c212a918d951d Mon Sep 17 00:00:00 2001 From: Andrzej Bieniek Date: Sat, 1 Sep 2012 00:34:57 +0200 Subject: contrib: add buildbot monitoring widget Signed-off-by: Adrian C. (anrxc) --- contrib/README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'contrib/README') diff --git a/contrib/README b/contrib/README index 4be896b..665592e 100644 --- a/contrib/README +++ b/contrib/README @@ -85,6 +85,12 @@ vicious.contrib.rss vicious.contrib.sensors - +vicious.contrib.buildbot + - provides last build status for configured buildbot builders (http://trac.buildbot.net/) + - returns build status in the format: [..] + - if is the same as only one number is displayed + - colors: red - failed, green - successful, yellow - in progress + - it depends on lua json parser (e.g. liblua5.1-json on Ubuntu 12.04) Usage examples -------------- @@ -95,3 +101,11 @@ Pulse Audio widget awful.button({ }, 4, function () vicious.contrib.pulse.add(5,"alsa_output.pci-0000_00_1b.0.analog-stereo") end), awful.button({ }, 5, function () vicious.contrib.pulse.add(-5,"alsa_output.pci-0000_00_1b.0.analog-stereo") end) )) + +Buildbot widget + local buildbotwidget = widget({ type = "textbox" }) + local buildbotwidget_warg = { + {builder="coverage", url="http://buildbot.buildbot.net"}, + {builder="tarball-slave", url="http://buildbot.buildbot.net"} + } + vicious.register(buildbotwidget, vicious.contrib.buildbot, "$1,", 3600, buildbotwidget_warg) -- cgit v1.2.3