You are not logged in.

#1 2012-02-11 14:56:19

narrakan
Member
From: Italy
Registered: 2012-02-06
Posts: 15

vicious.widgets.net not working properly

Hi guys, I've found a problem setting up my custom Awesome statusbar. The net widget from the vicious module is acting strange. In fact, if I have ${eth0 down_kb} and ${eth0 up_kb} in two different widgets, let's say netdlwidget and netulwidget, and I set the update interval to one second, the widgets are not updated together, but when netdlwidget is showing some activity (eg. 500 kB/s), the other one shows 0 even if I am uploading something. After a few seconds, the download drops to zero while the upload is updated with the correct value, and so on. Basically, they never show two values other than zero at the same time. Is it supposed to be so, or is it a bug in my configuration file?

Here is my rc.lua (it's quite long, so I only post the relevant part, tell me if I need to post more):

-- Ethernet download
netdlwidget = widget({ type = "textbox" })
vicious.register(netdlwidget, vicious.widgets.net, "<span color='#FF0000'>D: ${eth0 down_kb}</span>", 1)

-- Ethernet upload
netulwidget = widget({ type = "textbox" })
vicious.register(netulwidget, vicious.widgets.net, "<span color='#00FF00'>U: ${eth0 up_kb}</span>", 1)

-- {{{ Bottom wibox
bottombar = awful.wibox({ position = "bottom", screen = 1, name = "bottombar" })
bottombar.widgets = {  ...,  netulwidget, netdlwidget, ...}
-- }}}

Offline

#2 2012-03-21 22:20:09

leoc
Member
Registered: 2011-10-22
Posts: 6

Re: vicious.widgets.net not working properly

Hello,

I have the same issue. It does not matter whether I put upload and download in one widget or in separate ones. The speeds are dropping each 1-2 seconds to zero.

Does someone have an idea how to solve this?

Thanks!

Offline

#3 2012-03-25 20:18:49

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: vicious.widgets.net not working properly

> Is it supposed to be so, or is it a bug in my configuration file?

You didn't consult the README. If you separate up/dn into two (or more) widgets you should enable
caching of vicious.widgets.net.

> Does someone have an idea how to solve this?

Yes. You didn't do that either. If you have more than one screen then each of your widgets
is created twice - they are no longer the same object. Thus you also need caching regardless
if you did not separate up/dn in some of your failed attempts.

Last edited by anrxc (2012-03-25 20:20:28)


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB