Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › folding at home in conky
New Posts  All Forums:Forum Nav:

folding at home in conky

post #1 of 5
Thread Starter 
ok, so I was looking for a f@h monitor for my conky and found one online. turned out it was for the v6 client, but with a little digging and some help from good old axi down at the folding sub-forum I now have it working. sort of.

${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}

which is in the middle of this:

691

as one can see, the percentage works but the progress bar dosn't. so the line that needs correcting is this:

${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}

if anyone can tell me whats wrong with it fingers on the rep button.
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
post #2 of 5
Thread Starter 
I did it!!!

for those interested, the f@h part of my conky is now this:


${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 '%'}


yes, work unit does nothing right now. its just a place holder until I figure out how to get it to display the actual work unit. or I might leave it. it kind of fits with the percentage. it was a bit of a doh! moment when I realized I could just change execi to execibar
Edited by jrl1357 - 7/5/12 at 8:27pm
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
post #3 of 5
I haven't seen the text output at all, so take this with a grain of salt, but there's a lot of | tr and | grep going on in there. You may be able to do that a little more efficiently and cut down on the fork syscalls with | awk . Awk is one of the worlds greatest tools, if you haven't seen it yet, you should learn it, I use it everyday and would be lost without it.

Does the linux folding client work with GPUs yet? Last I checked it did not, so I gave up, but I would like to revisit it..
untitled
(30 items)
 
  
CPUMotherboardGraphicsGraphics
2x E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) ASUS 7870HD (win7 VM) 
RAMHard DriveHard DriveCooling
64GB G.SKILL 2133 2x Crucial M4 256GB raid1 2x (2x 1TB raid1) 2x Apogee HD  
CoolingCoolingCoolingCooling
2x RX 480 2x MCP 655 RP-452x2 rev1 (deprecated.) 16x AP-29  
CoolingOSOSOS
EK FC 580 Gentoo + around 14 other VMs + windows 7 gaming VM 
MonitorMonitorKeyboardPower
Viewsonic 23" 1080P Viewsonic 19" Logitech G510 Corsair AX 1200 
CaseMouseAudioAudio
Case Labs TH10 Logitech G500 Onboard (Linux host) Usb sound adapter (win7 VM) 
AudioOtherOtherOther
2 sets of Logitech speakers (Linux host / win7 VM) 2x Lamptron FC-5 IOGEAR 2 way HDMI KVM Switch Sonnet USB2 controller (win7 VM) 
  hide details  
Reply
untitled
(30 items)
 
  
CPUMotherboardGraphicsGraphics
2x E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) ASUS 7870HD (win7 VM) 
RAMHard DriveHard DriveCooling
64GB G.SKILL 2133 2x Crucial M4 256GB raid1 2x (2x 1TB raid1) 2x Apogee HD  
CoolingCoolingCoolingCooling
2x RX 480 2x MCP 655 RP-452x2 rev1 (deprecated.) 16x AP-29  
CoolingOSOSOS
EK FC 580 Gentoo + around 14 other VMs + windows 7 gaming VM 
MonitorMonitorKeyboardPower
Viewsonic 23" 1080P Viewsonic 19" Logitech G510 Corsair AX 1200 
CaseMouseAudioAudio
Case Labs TH10 Logitech G500 Onboard (Linux host) Usb sound adapter (win7 VM) 
AudioOtherOtherOther
2 sets of Logitech speakers (Linux host / win7 VM) 2x Lamptron FC-5 IOGEAR 2 way HDMI KVM Switch Sonnet USB2 controller (win7 VM) 
  hide details  
Reply
post #4 of 5
Thread Starter 
No, you must run the gpu client in wine. Which kinds of sucks but whatever. Its made up for by the fact that the cpu is faster.
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Phenom II X4 B55 Biostar A880GZ  AMD Radeon HD 4250 iGPU 8GB (2x4GB) Patriot Sector 5 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda 1TB (ST1000DM003) Western Digital Caviar SE 250GB Seagate External 1TB LG DVD Burner 
OSOSOSPower
Debian GNU/Linux 6.0.6 'Squeeze' 64-bit Arch Linux 64-bit FreeBSD 9.0 64-bit LPS Ultra 550 watt 
Case
Thermaltake V4  
  hide details  
Reply
post #5 of 5
Not to revive a dead thread, but have we found a way to do this with v7. It is just a loop back address with a port. Seems it would be doable.
Wet Willy
(17 items)
 
Oold man 555
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7 920 @4.217 1.24 v's 24/7 Asus p6t6 ws Revolution (full water blocks) GTX 480 SLI @867-1734 samsung 30nm at 2040mhz. 8-9-9-26 1.54v's 
Hard DriveOptical DriveCoolingCooling
OCZ Agility 3 RAID0 lite on dvd burner Raystorm Danger Den 480 Full copper (paralleled)  
OSMonitorMonitorKeyboard
Dual boot, Windows7 64bit/Linux ubuntu64bit 1hpw2207h1680/1050  Sharp 60" LED 120hz s510 
PowerCaseMouseAudio
Ultra 1600w X4 NZXT, Tempest EVO logitech s510 combo Harmon Kardon AVR245 
CPUMotherboardGraphicsRAM
Phenom II X4 B55 m4n82 deluxe ghetto gtx 460 patriot viper 1066 
Hard DriveOptical DriveCoolingOS
some crap sata dvd thermal take big typhoon windows 7 ultimate  
MonitorPowerCase
hp 2207h ultra lsp 750watt cooler master elite 
  hide details  
Reply
Wet Willy
(17 items)
 
Oold man 555
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7 920 @4.217 1.24 v's 24/7 Asus p6t6 ws Revolution (full water blocks) GTX 480 SLI @867-1734 samsung 30nm at 2040mhz. 8-9-9-26 1.54v's 
Hard DriveOptical DriveCoolingCooling
OCZ Agility 3 RAID0 lite on dvd burner Raystorm Danger Den 480 Full copper (paralleled)  
OSMonitorMonitorKeyboard
Dual boot, Windows7 64bit/Linux ubuntu64bit 1hpw2207h1680/1050  Sharp 60" LED 120hz s510 
PowerCaseMouseAudio
Ultra 1600w X4 NZXT, Tempest EVO logitech s510 combo Harmon Kardon AVR245 
CPUMotherboardGraphicsRAM
Phenom II X4 B55 m4n82 deluxe ghetto gtx 460 patriot viper 1066 
Hard DriveOptical DriveCoolingOS
some crap sata dvd thermal take big typhoon windows 7 ultimate  
MonitorPowerCase
hp 2207h ultra lsp 750watt cooler master elite 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › folding at home in conky