On 26.10.2011 09:29, Uli Schlachter wrote:
> Hm, ok, let's get creative:
>
> $ lua -e 'f=io.open("/proc/stat") l=f:read() for k in l:gmatch("%d+") do
> print(k) end'
>
> That's what the cpu widget does to gets its data. The rest is some maths on 
> the
> result. Does that work for you?
>
> Uli
>
Yes, works so far (spits out some cpu values). I also found out that the
"non-working" widgets use obvious.lib.widget, so it might just be a
usage error on my side.

myStatus[s].widgets =
    [...]
     obvious.cpu(), -- doesnt work
    wisep, -- seperator
    obvious.loadavg(), -- works
    wisep,
    obvious.mem(), -- doesnt work
    wisep,
    obvious.net.recv("eth0"), -- doesnt work
    obvious.net.send("eth0"), -- neither
    wisep,
    obvious.basic_mpd(), -- a little buggy on my arch box, works on
debian -> have to look for myself
    wisep,
    obvious.volume_alsa(), -- works, great widget
    wisep,
    obvious.fs_usage(), -- doesnt work
    [...]


Did I miss something? There's no readme or such, so I used those like
the others...

Thorsten

-- 
To unsubscribe, send mail to [email protected].

Reply via email to