Results 1 to 1 of 1

Thread: Web Log

  1. #1
    Join Date
    Dec 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Post Web Log

    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.

    1. 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=#####
    2. 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.
    3. Now comes to SIMBA. Anywhere you want you can write to your log file by sending the request:
      Code:
      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.
    4. To view your log file simply visit: http://162.244.31.154/rs/?uid=#####&token=#####
    5. 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.
    Last edited by kirk; 01-05-2016 at 09:20 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •