Page 1 of 2

conky read out?

Posted: Wed Jul 04, 2012 8:08 pm
by JLloyd13
is there any way I can add a f@h monitor to my conky readout?

Re: conky read out?

Posted: Wed Jul 04, 2012 8:39 pm
by Jesse_V
By "conky" I assume you mean http://conky.sourceforge.net/ right? If so, it's open-source and thus very third-party. I have no idea how to add V7 to it.

Re: conky read out?

Posted: Wed Jul 04, 2012 11:29 pm
by JLloyd13
yes the open souce thrid party linux/unix conky. I'm just hoping for a wu readout so I can see how for along it is and that.

Re: conky read out?

Posted: Wed Jul 04, 2012 11:37 pm
by JLloyd13
ok I found one. just for anyone that wants to know, it is:

${font sans-serif:bold:size=8}${color FF9900}FOLDING AT HOME ${hr 2}${font sans-serif:normal:size=8}${color
FFFF00}
${color yellow}${execi 15 cat /opt/foldingathome/1/FAHlog.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'} % ${execbar echo "scale=2; $(cat /opt/foldingathome/1/FAHlog.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%')/100" | bc -q}

I found it on the ubuntu forums and did my own color coding and that.

Re: conky read out?

Posted: Wed Jul 04, 2012 11:54 pm
by JLloyd13
problem. no progress is given, and on a restart of conky I get these errors:

jlloyd13@A880GZ ~ $ conky
Conky: forked to background, pid is 3481
jlloyd13@A880GZ ~ $
Conky: desktop window (1000022) is subwindow of root window (14f)
Conky: window type - desktop
Conky: drawing to created window (0x2a00001)
Conky: drawing to double buffer
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.txt: No such file or directory
(standard_in) 1: syntax error
cat: /opt/foldingathome/1/FAHlog.

my conky read out shows cpus at %100 (folding) but f@h readout shows nothing.

Re: conky read out?

Posted: Wed Jul 04, 2012 11:55 pm
by JLloyd13
If /opt/foldingathome/1/FAHlog.txt dosn't exist where is my FAHlog.txt?

Re: conky read out?

Posted: Thu Jul 05, 2012 4:21 am
by JLloyd13
Anyone?

Re: conky read out?

Posted: Thu Jul 05, 2012 5:52 am
by calxalot
I think V7 on linux uses
/var/lib/fahclient/log.txt
The log will look different than the fah6 FAHlog.txt.

You might want to check out net-fahclient as a command line monitoring tool to call from conky. Announcement thread is here.

Re: conky read out?

Posted: Thu Jul 05, 2012 6:21 am
by Jesse_V
Conky is not mentioned a lot on this forum. search.php?keywords=conky but there may be some useful info on some of the older threads, idk.

Re: conky read out?

Posted: Thu Jul 05, 2012 2:49 pm
by JLloyd13
I have something that sort of works:

${font sans-serif:bold:size=8}${color FF9900}FOLDING AT HOME ${hr 2}${font sans-serif:normal:size=8}
${color yellow}${execi 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'} % ${execbar echo "scale=2; $(cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%')/100" | bc -q}

the first part gives me a percentage fine but the second part won't give me a workin progress bar any ideas?

Re: conky read out?

Posted: Fri Jul 06, 2012 2:23 am
by JLloyd13
fixed it!!!!

finial readout:

${font sans-serif:bold:size=8}${color FF9900}FOLDING AT HOME ${hr 2}${font sans-serif:normal:size=8}
${color yellow}Work Unit: ${execi 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'} %
${execibar 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'}

anyones welcome to take it.

Re: conky read out?

Posted: Sun Nov 17, 2019 2:50 pm
by sashmxm
Hi!
How to adopted this conky command for dual GPU?

Re: conky read out?

Posted: Sun Nov 17, 2019 8:05 pm
by bruce
Somebody can rewrite HFM.Net for Linux. It's open-source, and the script above is a good start.

Re: conky read out?

Posted: Sun Nov 17, 2019 8:43 pm
by jimerickson
bruce,
hfm runs fine under mono on linux. running right now as a matter of fact!

Re: conky read out?

Posted: Sun Nov 17, 2019 10:57 pm
by bruce
I didn't know that. Wouldn't it provide the necessary display for clients with multiple slots?