Results 1 to 7 of 7

Thread: Example stats site on Github - Join the development!

  1. #1
    Fresh Spawn
    Join Date
    Dec 2016
    Location
    Sweden
    Posts
    9

    Cool Example stats site on Github - Join the development!

    Hi,

    In November 2017 I started writing code for gathering statistics from our clans wars. This evolved to a site to display the data. Our clans has been using this data for much joy during the last year and now I would like to share it to you guys.

    I'm a kind of developer but don't have much experience with web development and I am certain that the code might not be super efficient or elegant. But it works ok. If someone want to join in the project to build a general purpose stats site, well isn't that was Github is for?

    The code can be found here:
    https://github.com/boywing/coc-clan-statistics

    Example site:
    https://aktivavikingar.se/statistik

    The site is partly in Swedish but that is close enough to English for you to figure out what it means.

    I'm using:
    Database: MySQL
    Load scripts: PHP CLI
    Web server: Apache
    Web scripts: PHP + JavaScript

    All running on Linux and using crontab for scheduling the updates.

    So what do you think?

    Ranjor - Leader of the clan family Aktiva Vikingar

  2. #2
    This is very nice, thanks for sharing. I haven't looked at the API in a bit since they haven't updated it in a while. I like what you did here.
    Wheel of Time. Check us out at www.discord.me/wotcoc for more information.

  3. #3
    Thanks for sharing ......

    no data will be written in attacks and wars ......

    any idea why not ?
    Last edited by LordWombat; March 14th, 2019 at 12:40 AM.
    my API projekt : my Clan Projekt

  4. #4
    how can i get the player createdate via api ?
    my API projekt : my Clan Projekt

  5. #5
    Quote Originally Posted by LordWombat View Post
    how can i get the player createdate via api ?
    I don't think you can. An example user object looks like this, and I don't see an account creation date anywhere.

  6. #6
    Fresh Spawn
    Join Date
    Dec 2016
    Location
    Sweden
    Posts
    9
    Quote Originally Posted by LordWombat View Post
    no data will be written in attacks and wars ......

    any idea why not ?
    Try to run the script from the command prompt and see if you get an error message.
    Otherwise, look in the code and build the SQL query by hand and use it directly in a database client to see the return message from the database.

    Tell me the error message and I can probably find out what is wrong.
    Last edited by ranjor; 4 Weeks Ago at 10:05 PM.

  7. #7
    Fresh Spawn
    Join Date
    Dec 2016
    Location
    Sweden
    Posts
    9
    Hi,

    Those of you who use my code, please post a link here to your site so others can be inspired as well.

    If you add functions or other improvements that can be interesting for others, please share it so it can be added in the main branch on GitHub.

    If you want to make greater contributions then contact me and see if you can be added to the project on GitHub.

    Best regards
    Ranjor

Posting Permissions

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