Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1970 times and has 5 replies Next Thread
Skillz
Cruncher
Joined: Dec 10, 2015
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Houlry stats for external web site

I am working on a BOINC challenge site that will have periodic challenges throughout the year. These challenges will last around 3 days total, but I want the stats to be able to update hourly on them. It's not working with WCG. Other projects I am able to use WebRPC to get hourly stats for each user competing in the competition.

The site isn't fully functional yet and it's still in alpha testing with a temporary URL.

Is there a way for me to obtain hourly stats for WCG on a user by user basis?

Like I said, the hourly updates will only last for around 72 hours, once per year and maybe not even every year.
[Jul 16, 2021 1:26:22 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Skillz
Cruncher
Joined: Dec 10, 2015
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Houlry stats for external web site

Anyone? Please
[Aug 5, 2021 10:49:06 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Falconet
Master Cruncher
Portugal
Joined: Mar 9, 2009
Post Count: 3297
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Houlry stats for external web site

It's probably better to ask WCG about it.
----------------------------------------


AMD Ryzen 5 1600AF 6C/12T 3.2 GHz - 85W
AMD Ryzen 5 2500U 4C/8T 2.0 GHz - 28W
AMD Ryzen 7 7730U 8C/16T 3.0 GHz
[Aug 5, 2021 11:12:15 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Acibant
Advanced Cruncher
USA
Joined: Apr 15, 2020
Post Count: 126
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Houlry stats for external web site

I'd be surprised if you could even get hourly stats. The content on the My Contribution and Global Statistics pages are only updated every 12 hours.
----------------------------------------

[Aug 5, 2021 12:02:58 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1680
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Houlry stats for external web site

[H]Skillz,
if the members participating to the challenge share their validation code with you, you can generate our own statistics based on the collected data.
Based on the API provided by WCG, assuming you know the member ID and the corresponding validation code, you can fetch the current half day statistics of a member (xml file) as well as the current WU situation (same content as the results status pages: json files); for the latter, you can get the current results status hourly.
You should not push your statistics requirements on the platform level since it will waste resource for a very limited added value (if any).
Cheers,
Yves
---
PS: By the way, I wrote some bash scripts for doing it for my-self. Adri Verhoef has a sophisticated bash/perl script (wcgresult) for generating a lot of reports.
----------------------------------------
[Aug 6, 2021 8:36:59 AM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2198
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Hourly stats for external website

PS: By the way, I wrote some bash scripts for doing it for my-self. Adri Verhoef has a sophisticated bash/perl script (wcgresult) for generating a lot of reports.

Thanks Yves!
Yes indeed, you can use a script like wcgresults to fetch your results from the WCG website on a regular basis.
The way I do it - after creating a directory named "BOINC" in your homedirectory - is as follows:
- use crontab to fetch my results hourly, e.g.
00 * * * * bin/wcgresults -daf BOINC/WCG.log

- use crontab to fetch the results for another account hourly:
00 * * * * bin/wcgresults -u1 -daf BOINC/WCG-u1.log


By using wcglog, which will normally spit out something like listed below, you can inspect your results:
App    CpuTime Elapsed Claimed Granted ModTime    Exit Outc SentTime            ReceivedTime        DeviceName       Name
opn1 5.63 5.74 90.1 90.1 1628187846 0 1 2021-08-02T23:31:07 2021-08-05T18:24:02 i5-8250U OPN1_0058671_00288_0
opng 0.31 1.27 0.9 737.0 1628186926 0 1 2021-08-04T17:41:43 2021-08-05T18:08:39 i5-8250U OPNG_0071511_00178_0
opn1 5.67 5.77 90.6 90.6 1628192919 0 1 2021-08-02T23:40:45 2021-08-05T19:48:33 i5-8250U OPN1_0058678_04873_0
opng 0.31 1.38 1.0 799.8 1628191916 0 1 2021-08-04T17:41:43 2021-08-05T19:31:49 i5-8250U OPNG_0071511_00183_0
mcm1 15.05 15.53 82.0 95.0 1628195724 0 1 2021-08-05T02:49:49 2021-08-05T20:23:50 android_c09803ec MCM1_0179092_7299_0
App CpuTime Elapsed Claimed Granted ModTime Exit Outc SentTime ReceivedTime DeviceName Name
n=5 CpuHours=26.97 Hrs/n=5.394 Credits: Claimed=264.67 Crd/n=52.935 Granted=1812.47 Crd/n=362.494


You could then have an initial starting point (T0) by fetching all results. Jot that down for future reference. After that, use 'wcglog -1A' (or 'wcglog -1A -u1' for the other account) each hour to see the incremental results since T0, which will output something like:
n=12 CpuHours=64.51 Hrs/n=5.376 Credits: Claimed=639.23 Crd/n=53.269 Granted=4578.37 Crd/n=381.531


To convert this to points, multiply the granted credits by 7 (in this case: 4578.37 * 7 = 32048.59).
----------------------------------------
[Edit 1 times, last edit by adriverhoef at Sep 21, 2021 2:47:56 PM]
[Aug 6, 2021 12:43:35 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread