PDA

View Full Version : Web Log



kirk
01-04-2016, 10:19 PM
Hello,

I haven't contributed here yet and I don't know the language for SIMBA. So I'm providing what I think might be a good use, it's something I've been wanting while botting OSRS.

-== A way to check the status of SIMBA while being away from your computer. ==-

With this method you only have to visit a webpage that you can bookmark, no needing to TeamViewer in and such.
It is all based on API calls with no user interface.


First you must register a UserID. The way to keep your log file secure is by adding a secret Token to your UserID. Your Token+UserID is what you will use to submit updates or view your Log file. A Token is a 5 - 25 Length number. Register here: http://162.244.31.154/rs/?register&token=#####
It will generate your UserID and save your Token with it, keep your UserID saved as there is no way to retrieve it if lost.
Now comes to SIMBA. Anywhere you want you can write to your log file by sending the request:


logResponse := GetPage('http://162.244.31.154/rs/?uid=#####&token=#####&msg=');

Using this method you can then use the logResponse in any way you need as it will report Success or Failure of a message update.
To view your log file simply visit: http://162.244.31.154/rs/?uid=#####&token=#####
OPTIONAL: If you want each message to include a timestamp in your log file then include &ts after the &msg= argument.


The call to update your log file is only one line, so it makes it quite simple to add that line anywhere in any script you've already downloaded.
I would recommend either replacing any writeln calls with the GetPage or just adding the GetPage line after every writeln. Then you'll be kept fully up to date!

Caveats

To avoid abuse and for testing purposes, there can currently only be a maximum of 100 users. I plan to raise this after more tests.
The maximum log size is 10kb, if your file exceeds this you will be shown a link to empty it.
This has many other purposes and could be used to log the progress of any application. Feel free to use it as such.
I reserve the right to delete log files at my discretion and will block IP's of offending users.


Let me know what you think and any suggestions!

Thanks.