![]() |
|
|
#1 |
|
Aug 2012
New Hampshire
14508 Posts |
Overview:
Over the past few months I received many requests to add GPU72 work fetching to MISFIT. I have also seen other threads in the GPU72 forum asking the same thing. Since Challsal has been insanely busy with real life work we agreed that my authoring of a simple HTTP POST type utility is a useful solution until he has completed his PrimeNET style API. Development was recently completed, and several persons participated in a closed beta test cycle. For flexibility I built it as a console application thus allowing it to be executed by MISFIT or independently scripted by your hand. Additional flexibility was designed in where the program takes a single command line argument which is the configuration file you want it to utilize. The benefit of this is you can have as many configurations as you want where each configuration file fetches work with different parameters. GPU72WorkFetcher.exe is written in C# against .NET 3.51 and compiled in Visual Studio 2010. A compiled version and full source code are available. Key Features: Single .EXE with no install required and only 13kb. Configurable parameter file controlling all the possible values GPU72 allows when getting assignments Implements the “.LCK” file locking mechanism found in by MFAKTO and MISFIT Exit codes for robust scripting Available source code for persons inclined to further customize it Logging of HTML stream from each run Configuration file values: StagingFile: file_receiving_assignments (created if not exist, appended if exist) ReloadWhenBelow:100 (threshold determines when Staging File needs to be reloaded) FetchCount:50 (how many assignments to request from GPU72) Low:0 (optional range low value) High:100000000 (optional range high value) Pledge:73 (will factor to) #OPTION (type of TF assignments you want) #WhatMakesSense = 0 #LowestTFLevel = 1 #HighestTFLevel = 2 #LowestExponent = 3 #OldestExponent = 4 Option:0 ReplaceNAwithDate:true (replaces Factor=N/A with Factor=YYYY-MM-DD ) URL:https://www.gpu72.com/account/getassignments/lltf/ (what page on GPU72 to fetch from) UserID:ABC (GPU72 user id) UserPWD:XYZ (GPU72 password) How to get started: 1. Download GPU72FETCHER.zip from http://mersenneforum.org/misfit/downloads/gpu72/ 2. Unzip all files. MISFIT users should unzip into MISFIT directory 3. Edit the provided GPU72config.txt file with your credentials 4. Open a command prompt to where you unzipped the files 5. Execute the RunFetcher.bat and observe the results 6. For MISFIT users see screenshot on how to implement in MISFIT directly after step #5 works http://mersenneforum.org/misfit/screenshots/shot15.PNG Error Codes: 0: Fetching of work was not required because number of assignments in Staging File was >= ReloadWhenBelow value 1: Fetching was required and work was retrieved, parsed out, and stored OK 100: A fatal error occurred. See screen output for condition Special thanks to the following for guidance, ideas and testing. Chalsall FLASHJH Kracker Kladner JMLMX |
|
|
|
|
|
#2 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×5×7×139 Posts |
Thanks again for all your work Scott.
|
|
|
|
|
|
#3 |
|
"Kieren"
Jul 2011
In My Own Galaxy!
2×3×1,693 Posts |
Scott-
My sincerely thanks, as well. I can now say, as have you, that Auto Submit works flawlessly.....along with all the other features which I have tried so far. This application is fantastic. I recommend it to all Windows users here. kl |
|
|
|
|
|
#4 |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Thanks for your hard work! I logged in to let you know testing has been perfect, but I see you posted it already.
One question on this. I've been getting a 0 when everything works correctly and it fetched assignments? Last fiddled with by flashjh on 2013-01-12 at 21:51 |
|
|
|
|
|
#5 | |
|
Aug 2012
New Hampshire
23×101 Posts |
Quote:
Code:
@echo off my_nify_exe.exe if errorlevel 1 ( echo Failure Reason Given is %errorlevel% exit /b %errorlevel% ) If this does not help let me know. Last fiddled with by swl551 on 2013-01-12 at 22:21 |
|
|
|
|
|
|
#6 |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
I swapped to the new one a bit ago, but it hasn't run yet. It should report correctly the next time time it runs. Thanks.
|
|
|
|
|
|
#7 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
23×271 Posts |
As always, thanks
We all appreciate it.
|
|
|
|
|
|
#8 |
|
May 2011
Orange Park, FL
3·5·59 Posts |
Thanks; this is a handy thing.
|
|
|
|
|
|
#9 |
|
Aug 2012
New Hampshire
23×101 Posts |
|
|
|
|
|
|
#10 |
|
May 2011
Orange Park, FL
3×5×59 Posts |
|
|
|
|
|
|
#11 |
|
Aug 2012
New Hampshire
23×101 Posts |
Tell me about it! 0.20 is cutting into sales of Misfit! . . I am taking this to the Judger!
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a lyric finding tool | MattcAnderson | Soap Box | 1 | 2017-01-01 15:18 |
| Auto-XYYXF tool | fivemack | NFS@Home | 3 | 2016-07-06 04:01 |
| TF fetching/reporting toolkit for Linux | swl551 | PrimeNet | 20 | 2014-06-19 15:00 |
| GPU72's fetching/reporting API | Aramis Wyler | GPU to 72 | 44 | 2013-04-10 13:41 |
| tool to help with Top 5000 list | Mini-Geek | Lounge | 6 | 2008-05-04 03:19 |