Deviant Login Shop
 Join deviantART for FREE Take the Tour
×



Details

Submitted on
October 31, 2010
File Size
157 KB
Link
Thumb
Embed

Stats

Views
3,505 (2 today)
Favourites
5 (who?)
Comments
16
Downloads
528
×
Graph Widget for Conky 1.1 by wlourf Graph Widget for Conky 1.1 by wlourf
A little widget to draw some graphs with some options.

Update 07.01.11 for bug fix on memory leaks
Add a Comment:
 
:iconsasha1594:
sasha1594 Featured By Owner Dec 31, 2013  Hobbyist Traditional Artist
Dear Sir,

I am astounded by your conky scripts and various lua scripts and thank you for sharing with us,

I downloaded this graph widget and just simply ran it without any modification.
but I get a error
" Conky: llua_do_call: function conky_main_graph execution failed:graph.lua:424: bad argument #2 to 'max' (number expected, got nil)"

but still the graph is displayed, is it serious.
Please help.

Thankyou
Reply
:iconn00by4ever:
N00by4Ever Featured By Owner Apr 12, 2013
Just want to say that you've done an amazing job, this is a very nice extension of conky.

Thank you!
Reply
:iconjesuisnerd:
JeSuisNerd Featured By Owner Dec 6, 2011  Hobbyist Digital Artist
This is exactly what I needed! Thanks for the great widget.
Reply
:iconwlourf:
wlourf Featured By Owner Dec 9, 2011
you're welcome, and thanks for the multiple favs ;-)
Reply
:iconjesuisnerd:
JeSuisNerd Featured By Owner Dec 9, 2011  Hobbyist Digital Artist
My pleasure! Your conky work is great, and it wasn't very difficult to get it into londonali's script to work with multiple widgets.
Reply
:iconriprope:
RiPrope Featured By Owner Dec 4, 2011
Hi, great script, thank you.

When using diskio, diskio_write or diskio_read variables, it trows error:
Conky: llua_do_call: function conky_main_graph execution failed: /d/lpapps/scripts/graph.lua:292: bad argument #2 to 'max' (number expected, got nil)

This is probably because diskio variables have B,KiB,MiB,or GiB letters at the end, so it is not a number for script.
Is there a way to overcome this, and use script to graph disk usage also.

Thanks in advance !
Denis
Reply
:iconwlourf:
wlourf Featured By Owner Dec 4, 2011
You're right about letters at the end ! The workaround is to replace theses lines :
---
value=tonumber(conky_parse('${' ..
graph_settings[i].name .. " " ..
graph_settings[i].arg ..'}'))
---
by this :
---
value=conky_parse('${' ..
graph_settings[i].name .. " " ..
graph_settings[i].arg ..'}')
value=string.gsub(value,"%a","")
value=tonumber(value)
---
and use, in the table settings :
---
name="diskio",
arg="sdc",
max=100,
autoscale=true,
---
it should be better with autoscale, HTH
Reply
:iconriprope:
RiPrope Featured By Owner Dec 5, 2011
it show graph now (without autoscale is inaccurate and have a glitches :( ).

Thank you.

Best regards
Reply
:iconiacoporosso:
iacoporosso Featured By Owner Aug 25, 2011
firstly... a really good job!!!!

but I have a problem when loading your lua widgets , it give me back this error:


Conky: llua_do_call: function conky_main_graph execution failed: /home/XXX/graph.lua:211: attempt to compare number with nil

(the XXX it is only ma path to file )

do you know how to fix this error??
Reply
:iconwlourf:
wlourf Featured By Owner Sep 5, 2011
Hi and thanks, it's just an error when the script is loading the first time.
On line 371, you can change :
if updates ==1 then
with
if updates<=1 then

Hth
Reply
Add a Comment: