How to show read-only statistics to world?

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
iggyvolz
Posts: 1
Joined: Sun Dec 28, 2014 2:40 am

How to show read-only statistics to world?

Post by iggyvolz »

I have a VPS and saw that the CPU usage on my VPS was almost zero, so I decided to do something with that. I downloaded and installed Folding successfully.

One feature I would love to use is the HTTP server to show what the server is currently working on. I googled around a bit and I believe the appropriate option is:

Code: Select all

<allow v='127.0.0.1 (IP)'/>
<web-allow v='127.0.0.1 (IP)'/>
However, I am not able to set the IP to be all IP addresses. I have tried *, *.*.*.*, and a few other combinations but nothing works properly.

Another concern I have is that the control panel will allow anyone to turn off or modify the speed of Folding - something I obviously do not want. I am looking for a way to have the panel displayed but not allow the user to change any options.

One thought I had was a screenshot of the page - however this would be clunky and I'm not sure how well it would work with the Javascript. I'm not sure how hackable the API would be to create a page with statistics, I haven't looked into that yet.
Jesse_V
Site Moderator
Posts: 2850
Joined: Mon Jul 18, 2011 4:44 am
Hardware configuration: OS: Windows 10, Kubuntu 19.04
CPU: i7-6700k
GPU: GTX 970, GTX 1080 TI
RAM: 24 GB DDR4
Location: Western Washington

Re: How to show read-only statistics to world?

Post by Jesse_V »

Specifying IP ranges like you would with any other web application. You can use ranges.

I take it you're in the command-line, yes? You can send commands to FAHClient via telnet to pause or unpause a particular folding slot.

FAHClient has an API, you could hook into it that way. I'm sure there's a simpler way, but one method would be to use Bash or PHP to query the API for relevant information and throw that into HTML. Then you could show that HTML with your favorite web server.
F@h is now the top computing platform on the planet and nothing unites people like a dedicated fight against a common enemy. This virus affects all of us. Lets end it together.
Napoleon
Posts: 887
Joined: Wed May 26, 2010 2:31 pm
Hardware configuration: Atom330 (overclocked):
Windows 7 Ultimate 64bit
Intel Atom330 dualcore (4 HyperThreads)
NVidia GT430, core_15 work
2x2GB Kingston KVR1333D3N9K2/4G 1333MHz memory kit
Asus AT3IONT-I Deluxe motherboard
Location: Finland

Re: How to show read-only statistics to world?

Post by Napoleon »

HFM.NET (a 3rd party utility) is able to generate HTML reports and can also automatically upload them to a web server using FTP. HFM communicates with FahClient through its API, just like FahControl does.
Last edited by Napoleon on Sun Dec 28, 2014 7:35 am, edited 1 time in total.
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: How to show read-only statistics to world?

Post by bruce »

A lot depends on what you wish to display. Many people simply display the stats from either the official stats at Stanford's website or from one of the 3rd-party stats engines. They're naturally read only although there is an added delay of one to a few hours.
Post Reply