conky read out?

This forum contains information about 3rd party applications which may be of use to those who run the FAH client and one place where you might be able to get help when using one of those apps.

Moderator: Site Moderators

conky read out?

Postby JLloyd13 » Wed Jul 04, 2012 8:08 pm

is there any way I can add a f@h monitor to my conky readout?
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby Jesse_V » Wed Jul 04, 2012 8:39 pm

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.
Pen tester at Cigital/Synopsys
User avatar
Jesse_V
 
Posts: 2773
Joined: Mon Jul 18, 2011 4:44 am
Location: USA

Re: conky read out?

Postby JLloyd13 » Wed Jul 04, 2012 11:29 pm

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.
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby JLloyd13 » Wed Jul 04, 2012 11:37 pm

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.
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby JLloyd13 » Wed Jul 04, 2012 11:54 pm

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.
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby JLloyd13 » Wed Jul 04, 2012 11:55 pm

If /opt/foldingathome/1/FAHlog.txt dosn't exist where is my FAHlog.txt?
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby JLloyd13 » Thu Jul 05, 2012 4:21 am

Anyone?
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby calxalot » Thu Jul 05, 2012 5:52 am

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.
calxalot
 
Posts: 436
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco

Re: conky read out?

Postby Jesse_V » Thu Jul 05, 2012 6:21 am

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.
User avatar
Jesse_V
 
Posts: 2773
Joined: Mon Jul 18, 2011 4:44 am
Location: USA

Re: conky read out?

Postby JLloyd13 » Thu Jul 05, 2012 2:49 pm

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?
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm

Re: conky read out?

Postby JLloyd13 » Fri Jul 06, 2012 2:23 am

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.
JLloyd13
 
Posts: 22
Joined: Fri May 04, 2012 7:59 pm


Return to 3rd party contributed software

Who is online

Users browsing this forum: No registered users and 1 guest

cron