Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › How to setup a F@H Progress & Display Module with Samurize
New Posts  All Forums:Forum Nav:

How to setup a F@H Progress & Display Module with Samurize

post #1 of 7
Thread Starter 
How to setup a Folding@Home Progress & Display Module with Samurize

What is Samurize?

Samurize is a system monitoring software used to make a seamless transition between form and functionality. All the information you may need such as CPU temps or memory usage are just at a glance. However, it is not limited to system information. It can also pull information from the internet and update you on the next breaking headline. The best part about it is it is HIGHLY customizable and the possibilities are endless. Visit the Samurize website for more information and downloads.


Description:

Today, we will be setting up a little display module for our folding units. It will be a simple config, but once you know your way around the scripts and plugins, you'll find plenty of ways to use the information. Below is my current folding display module. Sadly, I do not know how to get PPD to show.


Required Components:
  • FAH GPU Tracker V2 - Not required, but this is the folding software I used. You may use whichever you wish as long as you know where the work unit folders are.
  • Samurize 1.64.3 - The core software. Along with it comes the Config Tool we will be using throughout the guide. I don't know if there are any newer versions, but this is the one I am currently running.
  • PageScraper.dll - Will be attached to this guide. Used to check website sources to 'scrape' information.
  • fah.vbs - Will be attached to this guide. Used to read the unitinfo.txt in F@H work folders.

Installation:
  1. Install Samurize if it is not yet installed.
  2. Copy and paste the PageScraper.dll into your plugins folder. (C:/Program Files/Samurize/plugins)
  3. Copy and paste the fah.vbs into your Scripts folder. (C:/Program Files/Samurize/Scripts)

Beginning of Tutorial:


Let's start things off by creating the .ini file. Open the Config Tool. Click File and Save As. Save it into the Configs folder. (C:/Program Files/Samurize/Configs)


We'll begin with the progress bars of the work units. Right-click the gray workspace and choose Add Active Script.


A box should appear. On the right toolbar, change Draw Type to ProgressBar.


You should now see the above. Change any of the properties you would like. I will be adding a border, and making the bar color dark gray.


You can add a border by scrolling down and checking the 'Meter Border' checkbox.


Clicking the Display tab will bring up more customizable features of the bar. Mess with it as you wish. I will be removing the Split Spacing.


That is one sexy bar. But it really has no information. Let us retrieve some information using the fah script.


Click the Source tab. Select fah.vbs from the drop down menu under 'Select Script'. Choose 'getUnitProgress' from under 'Select Function to Run'.


A window should pop up. You must now find your work folder. This will be our SMP progress bar, so I found the SMP folder and pasted it into the text box. What it looks for in that folder is the unitinfo.txt.


Go ahead and click Test Script. The progress bar should change to whatever percent the progress of that work unit is at. But how do we add the percent number you ask?


Let's add another Active Script. But this time leave the Draw Type as Text.


Same information as the progress bar, but this time it will be displayed as text.


Click the Display tab. The output of the script is under 'Text:'. %v is the variable. So in this case, SMP: %v% will change to SMP: 59% because %v equals 59.


Go ahead and line it all up. Doesn't look too bad does it. Repeat this process for your other GPU clients.


To simplify things, just highlight the meters, copy, and paste.


Now just select your newly pasted meters, and click Source. Click 'Change Parameters' and change the folder that meter will be pointing to. The SMP meter pointed to the SMP folder. This GPU0 meter will be pointing to the GPU0 folder. Again, it will be looking for the unitinfo.txt. Make sure to change the bar and text parameters to reflect the GPU0 information so they update accordingly.

Phew, part 1 is done. You can go ahead and stand up, walk around, and take a breather. But come back, because Folding @ Home stats is next!


Now, we will be adding a plugin. Right-click the canvas, and click 'Add Plugin'.


A box should appear. Select 'PageScraper.dll' on the first drop-down menu. Select 'GetWebpage' as the function to run. Now click Configure.

**Configure will not work without a function chosen**


An overwhelming window should come up. We'll break it down as we go along. On the address bar, copy and paste this url:

Code:
http://folding.extremeoverclocking.com/xml/user_summary.php?u=
Then at the end, type your UserID. Next click Download. The XML should load if everything worked properly.


Scroll down the loaded XML page and look for the tag '<user>'. Check the 'Set starting position...' check box, and type that tag into the text box. This will tell the plugin where to start looking.


Check the %Match1 box to the left. This will open up the fields to the right. We will be getting our points from the EOC page. So look for the <Points> and </Points> tags. Type those into the respective boxes. Below it, you will see the isolated data if properly setup. Edit the output below if you wish.

*** To add thousand separators, leave ONLY %Match1 in the box. More information a little bit later. ***


By default, the update interval is 5 minutes. So every 5 minutes, it will check the EOC stats, and update your module. If you would like to change the frequency, click Advanced options and change the amount of seconds.


And there you have it! Information taken straight from the EOC stats page, updated regularly. Just follow the above steps for the other stats you would like, and you are solid. If you want Workunits, you will be using the <WUs> and </WUs> tags. If you want your username, you will be using the <User_Name> and </User_Name> tags.


*** To add thousand separators, the resulting output from the plugin MUST only be the number. Meaning %Match1 is the only thing in the box. To add extra text, you will have to use the text box in the Display tab.***


Then if you scroll down a bit, there should be a 'Use thousand separators' check box.


Save! And there you have it. A simple F@H Progress & Stat display in Samurize. Now all you have to do is run Samurize, right click the tray icon, mouse over Select Config File, and choose the foldingTutorial.ini. If you make anymore corrections on your .ini file, you can simply right click the tray icon, and click Reload Config.

And that concludes my very first guide. I know this may have no use for most people because it will just use up resources and they can just check their F@H clients for info, but I had time on my hands and wanted to just share my Samurize experiences. If you have any questions, comments, or suggestions please post them here. Thank you for your time and I hope it helped.
post #2 of 7
I'll move this to the main forum for now, to see how people take to it. If it gets enough responses, I'll put it in the Guides forum.
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Reply
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Reply
post #3 of 7
whats samurize? like rainmeter?
post #4 of 7
Thread Starter 
Quote:
Originally Posted by koven View Post
whats samurize? like rainmeter?
Yep, pretty much. I haven't messed with rainmeter though.
post #5 of 7
Looks amazingly complicated.

One day I will give this a shot just cause it looks awesome, but I like Rainmeter too much.
>.<
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 930 4.0ghz 1.27v EVGA E758 3-Way (black/gray) Evga GTX 480 / Evga 9800gtx+ (physx&folding) Corsair Dominator 6gb 1600 8-8-8-24 
Hard DriveOSMonitorPower
x25-M SSD 80gb + 1TB F3 + 2x2TB WD Green Win 7 64bit Viewsonic 20" + Samsung 40" Corsair 1000w 
Case
Haf 932 (modded) - Now caseless 
  hide details  
Reply
>.<
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 930 4.0ghz 1.27v EVGA E758 3-Way (black/gray) Evga GTX 480 / Evga 9800gtx+ (physx&folding) Corsair Dominator 6gb 1600 8-8-8-24 
Hard DriveOSMonitorPower
x25-M SSD 80gb + 1TB F3 + 2x2TB WD Green Win 7 64bit Viewsonic 20" + Samsung 40" Corsair 1000w 
Case
Haf 932 (modded) - Now caseless 
  hide details  
Reply
post #6 of 7
awesome
Dorianime
(15 items)
 
School Rig
(5 items)
 
 
MotherboardGraphicsRAMHard Drive
Clevo W120HNM/w170HN GT540M Samsung Seagate Momentus 
OS
Windows 7 ultimate 
  hide details  
Reply
Dorianime
(15 items)
 
School Rig
(5 items)
 
 
MotherboardGraphicsRAMHard Drive
Clevo W120HNM/w170HN GT540M Samsung Seagate Momentus 
OS
Windows 7 ultimate 
  hide details  
Reply
post #7 of 7
Thanks a lot, been using Samurize for a while, never knew you could do that with it. +rep
Timid Beast
(16 items)
 
  
CPUMotherboardGraphicsRAM
Athlon II x3 445 @3.825GHz ASUS M4A785TD-V Evo Sapphire 7850 6gb 1360 7-8-7-22-29 Kingston 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64gb Caviar Blue 500gb 22x DVD RAM Cooler Master Hyper 212+ 
OSMonitorKeyboardPower
Windows 7 Professional 64 bit Hanns G 23" 1080p Xenta Black Chiclet Corsair CX430 
CaseMouseMouse PadAudio
NZXT Gamma Microsoft Sidewinder x8 Oak ASUS Xonar DG > Superlux 668b 
  hide details  
Reply
Timid Beast
(16 items)
 
  
CPUMotherboardGraphicsRAM
Athlon II x3 445 @3.825GHz ASUS M4A785TD-V Evo Sapphire 7850 6gb 1360 7-8-7-22-29 Kingston 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64gb Caviar Blue 500gb 22x DVD RAM Cooler Master Hyper 212+ 
OSMonitorKeyboardPower
Windows 7 Professional 64 bit Hanns G 23" 1080p Xenta Black Chiclet Corsair CX430 
CaseMouseMouse PadAudio
NZXT Gamma Microsoft Sidewinder x8 Oak ASUS Xonar DG > Superlux 668b 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Overclock.net Folding@Home Team
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › How to setup a F@H Progress & Display Module with Samurize