HOME | DD

Published: 2010-10-31 13:50:22 +0000 UTC; Views: 8267; Favourites: 13; Downloads: 1153
Redirect to original
Description
A little widget to draw some graphs with some options.Update 07.01.11 for bug fix on memory leaks
Related content
Comments: 17
sasha1594 [2013-12-31 16:23:42 +0000 UTC]
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
👍: 0 ⏩: 0
N00by4Ever [2013-04-12 17:28:21 +0000 UTC]
Just want to say that you've done an amazing job, this is a very nice extension of conky.
Thank you!
👍: 0 ⏩: 0
JeSuisNerd [2011-12-07 02:36:36 +0000 UTC]
This is exactly what I needed! Thanks for the great widget.
👍: 0 ⏩: 1
wlourf In reply to JeSuisNerd [2011-12-09 22:21:14 +0000 UTC]
you're welcome, and thanks for the multiple favs
👍: 0 ⏩: 1
JeSuisNerd In reply to wlourf [2011-12-10 03:15:39 +0000 UTC]
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.
👍: 0 ⏩: 0
RiPrope [2011-12-04 17:07:25 +0000 UTC]
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
👍: 0 ⏩: 1
wlourf In reply to RiPrope [2011-12-04 19:36:18 +0000 UTC]
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
👍: 0 ⏩: 1
RiPrope In reply to wlourf [2011-12-05 15:08:15 +0000 UTC]
it show graph now (without autoscale is inaccurate and have a glitches ).
Thank you.
Best regards
👍: 0 ⏩: 0
iacoporosso [2011-08-25 11:40:14 +0000 UTC]
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??
👍: 0 ⏩: 1
wlourf In reply to iacoporosso [2011-09-05 16:58:51 +0000 UTC]
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
👍: 0 ⏩: 1
iacoporosso In reply to iacoporosso [2011-09-07 11:32:56 +0000 UTC]
thx man!!!!!! i have tried and.... i have correct whit:
if updates>=1 then
and now it works!!!
👍: 0 ⏩: 1
iacoporosso In reply to iacoporosso [2011-09-07 11:36:56 +0000 UTC]
edit... whit this value the scripts draw me only the background without the graph..
👍: 0 ⏩: 0
arpinux [2010-10-31 15:37:05 +0000 UTC]
very nice ..
did you plain to post it in PitStop Conky website ?
👍: 0 ⏩: 1
wlourf In reply to arpinux [2010-10-31 16:17:26 +0000 UTC]
Tks arp!
Well, I have to ask the Chief ! I have to post a screen in real use before to ask
👍: 0 ⏩: 0