SRL Archive - General

Bot Stats mobile app


klamor

2019-07-31 18:04:49

Hey everyone, I'm looking to make a simple mobile application that grabs information from a web server of some sort, but I'm not really sure where to begin. Basically, I want to send status reports and stat updates to a server and then pull the information from an app on my phone. I believe some of this functionality already exists, as we used to have stat information on bots back in the day.

Could anyone guide me in the right direction to get started?

Brandon

2019-08-04 22:43:50

You didn't mention the phone type? The phone's OS?

klamor

2019-08-05 09:24:19

From: Brandon
You didn't mention the phone type? The phone's OS?


well I have an android phone, but if enough people were interested, I'd be more than happy to make something for iOS as well.

klamor

2019-08-05 17:42:37

So it looks like I can use OpenSSL to send updates to an HTTP server. Would it be a bad idea to host an http server on my local network? I have a Mac Mini that I run plex server off of and it's up pretty much 24/7. The only thing I should need to do after setup is configure my network to allow incoming connections to the server. What's the best way to filter connections with credentials? I was thinking of using some sort of pairing code that each dev could generate for themselves in order to keep all of the script's stats separated.

grats

2019-08-06 06:07:18

From: klamor
So it looks like I can use OpenSSL to send updates to an HTTP server. Would it be a bad idea to host an http server on my local network? I have a Mac Mini that I run plex server off of and it's up pretty much 24/7. The only thing I should need to do after setup is configure my network to allow incoming connections to the server. What's the best way to filter connections with credentials? I was thinking of using some sort of pairing code that each dev could generate for themselves in order to keep all of the script's stats separated.


No, I've ran grats.pw off of my local network for 17 years without issues. https://stats.grats.pw/

I had a name & password for every user

a user can create a script

a script can have 'variables'

anyone can upload those variables to that 'script' saying they did whatever

your upload owuld be like ['name','password','scriptID','var1,var2,var3,var4,var5,var6'] or something


there's not much of a way to verify if they actually did that work, but it's their false data they're making for themselves so not really something that matters.

klamor

2019-08-06 12:31:49

From: grats
there's not much of a way to verify if they actually did that work, but it's their false data they're making for themselves so not really something that matters.


well my plan is to have an include with functions that upload the data automatically.

grats

2019-08-06 15:04:06

From: klamor
well my plan is to have an include with functions that upload the data automatically.


Yea we had that, I think you can look at old versions of flight's plugin thing or any hoodz scripts with old versions, they all had stats stuff.
That still doesn't verify your data though, it's not possible to verify if a bot truly did what it's reporting to the stats page, but as I said it doesn't matter really.

That'd be equivalent to you telling your bank how much money you make & them taking your word for it.

klamor

2019-08-06 15:35:13

yea, at this point, I'm not really concerned with abusive data unless someone deliberately attempts to overwork/load the server, but seeing as the community is the size that it is, I don't see many people other than myself using this anyways.