Page 1 of 1

How to show read-only statistics to world?

Posted: Sun Dec 28, 2014 2:46 am
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.

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

Posted: Sun Dec 28, 2014 3:48 am
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.

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

Posted: Sun Dec 28, 2014 6:03 am
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.

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

Posted: Sun Dec 28, 2014 6:52 am
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.