Jump to content

Server status web?


velocidad

Recommended Posts

15 hours ago, Grounded said:

Hi, here is a PHP lib on github

https://github.com/xPaw/PHP-Source-Query

In it's raw form it just displays some data but if you grok PHP it can be used in a web page too.

Example outpu of  the RAW laibrary: http://grounded.trivial.nz/view.php

Thx I'll look into this, I think it's what I'm looking for.

 

1 hour ago, Toni said:

Simply make a background php file which gets the data from ark-servers.net and stores it in your database (because ark-servers.net sometimes is really slow). So then you have your own :) 

 

I don't know why but my server it's not listed there or in the Ark ingame server browser, so until I find why I can't use this option.

Link to comment
Share on other sites

37 minutes ago, Failoe said:

What API is Ark-Servers.net using in order to do this? Because that seems like the more direct approach to getting this done.

Their API is here https://ark-servers.net/help/api/ but it would be much nicer to know what they're doing to get this information.

Probably the steam one.

https://developer.valvesoftware.com/wiki/Server_queries

 

Link to comment
Share on other sites

On 10/22/2016 at 9:44 PM, velocidad said:

I was going to make a web for our server and want to add some status of the server:-it's currently online/offline
.........

Is there any project, web or something done about this? I've madesome searches but could not find anything.

I don't have this done yet, but also planned to do similar stuff. So my ideas:

-max player - I guess it's static information, so just hardcode.

-current players - can be gathered by RCON request I believe.

-it's currently online/offline - I want to use node.js for web-server and spawn ARC server process. I hope there is a way to check if process is still up and running. Button "turn it on" may be implemented for visitors to start it, if server is down and I'am not accessible. Also statuses may include "update" (why not?).

--maybe some settings from the .ini - first, why? Second, this data is not really changing a lot, so just hardcode as well.

Link to comment
Share on other sites

5 hours ago, MadBrozzeR said:

I don't have this done yet, but also planned to do similar stuff. So my ideas:

-max player - I guess it's static information, so just hardcode.

-current players - can be gathered by RCON request I believe.

-it's currently online/offline - I want to use node.js for web-server and spawn ARC server process. I hope there is a way to check if process is still up and running. Button "turn it on" may be implemented for visitors to start it, if server is down and I'am not accessible. Also statuses may include "update" (why not?).

--maybe some settings from the .ini - first, why? Second, this data is not really changing a lot, so just hardcode as well.

I just want to say don't hard code anything that is not a universal unchangeable constant like say PI.  It starts out sounding like a good idea but it is the textbook definition of a bad idea.

 

Link to comment
Share on other sites

13 hours ago, Grounded said:

I just want to say don't hard code anything that is not a universal unchangeable constant like say PI.  It starts out sounding like a good idea but it is the textbook definition of a bad idea.

Max player server limit sounds pretty constant to me (not a universal, but for the certain server, of course). Anyway, to avoid hardcode we may simply read and unparse .ini file. It's a most simple and straight forward way after hardcoding.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...