Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Fantasy Football Tool to calculate stats for any of your mini-league!

  • 18-12-2013 11:00PM
    #1
    Registered Users, Registered Users 2 Posts: 225 ✭✭


    Hey. Some of you may have seen some of the stats I've been posting on this forum the past few gameweeks. Well I thought I would make a chrome extension so others can do the same for any of their leagues.

    It's free to download here:
    https://chrome.google.com/webstore/detail/fpl-mini-league-stats-cal/ofjikfigpedfahjpninpbegobibogbda

    You can run it for any of your leagues simply by opening that league page and clicking the icon which appears in the right side of the address bar. It will get stats such as gameweek average, most captained, starting selections, benched players, transferred in/out players, average transfers made etc. just be aware that if there are more than 50 in your league, this program will calculate the stats for the top 50 in that league.

    I'd appreciate any feedback you have! And if anyone needs help understanding it or anything let me know!


«1

Comments

  • Registered Users, Registered Users 2 Posts: 7,206 ✭✭✭Lucas Hood


    This deserves a lot of credit . Well done.


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Lucas Hood wrote: »
    This deserves a lot of credit . Well done.

    Thanks man. I learnt a lot making it and I think it is genuinely a really useful tool so hopefully others agree!


  • Registered Users, Registered Users 2 Posts: 311 ✭✭GillespieRoad


    Thanks so much man, this makes it so much easier to calculate the actual average for my leagues (i.e.e top 50). Really helpful tool!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Thanks so much man, this makes it so much easier to calculate the actual average for my leagues (i.e.e top 50). Really helpful tool!

    Glad you like it!


  • Registered Users, Registered Users 2 Posts: 14,810 ✭✭✭✭jimmii


    Excellent work thanks for sharing!!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    jimmii wrote: »
    Excellent work thanks for sharing!!

    No problem, glad you like it!


  • Closed Accounts Posts: 12,318 ✭✭✭✭Menas


    Looking forward to getting in to this over the christmas, thanks!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Looking forward to getting in to this over the christmas, thanks!

    Yeah my aim was to have it published for the festive period alright!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Minor update to show: Average point hits per person in league and League Standard Score [average of top 5 teams in a league]


  • Registered Users, Registered Users 2 Posts: 11,274 ✭✭✭✭FHFC


    Just got around to playing with this, best thing ever!

    No harm bumping it for those who missed it.

    Setminer is a legend! :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,208 ✭✭✭the whole year inn


    yep its a great app,can def see me using it regularly.Thanks


  • Registered Users, Registered Users 2 Posts: 1,847 ✭✭✭larchielads


    app for android ?????


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    app for android ?????

    If there was enough demand for this I would look into it? I haven't developed an android app before, however, so it would likely take a while to learn the basics etc.
    Also for an app you would probably have to enter the league ID into a form box to get your calculations whereas with the extension you have the ability of just clicking the icon on a given league page which is more user-friendly I think.
    FHFC wrote: »
    Just got around to playing with this, best thing ever!

    No harm bumping it for those who missed it.

    Setminer is a legend! :)

    Haha thanks man!
    Glad to hear people are getting good use out of it!


  • Registered Users, Registered Users 2 Posts: 4,094 ✭✭✭SpaceCowb0y


    Just what i needed... even more ways to procrastinate! Great effort, fair play :)


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Just what i needed... even more ways to procrastinate! Great effort, fair play :)
    Nice one buddy!


  • Registered Users, Registered Users 2 Posts: 190 ✭✭IanOBo


    Does this still work for anyone? Mine half works. Can't see transfer or league stats, just what % each player is. Very handy last season!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    IanOBo wrote: »
    Does this still work for anyone? Mine half works. Can't see transfer or league stats, just what % each player is. Very handy last season!

    Hey, sorry to anybody trying to use my extension so far this season! It seems something had changed slightly with the FPL website that was throwing it off. I am working on fixing it at the moment. Hopefully it will at least be user-friendly again by the end of today!


  • Registered Users, Registered Users 2 Posts: 9,573 ✭✭✭Shedite27


    Are you gonna run the twitter account again this year? Some fun/interesting stuff on that last year


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Shedite27 wrote: »
    Are you gonna run the twitter account again this year? Some fun/interesting stuff on that last year

    Hi, I probably won't be able to comment as frequently on the twitter this year but from time to time I will try to tweet a little!

    Update: The Extension seems to be working now apart from the transfers in/out section. Is that the same for everyone else?


  • Registered Users, Registered Users 2 Posts: 42,327 ✭✭✭✭Scorpion Sting


    Hi, I probably won't be able to comment as frequently on the twitter this year but from time to time I will try to tweet a little!

    Update: The Extension seems to be working now apart from the transfers in/out section. Is that the same for everyone else?

    Yes it's working for me now. Could do with the transfers section added though, I found that really handy!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 13,679 ✭✭✭✭wonski


    Hi, I probably won't be able to comment as frequently on the twitter this year but from time to time I will try to tweet a little!

    Update: The Extension seems to be working now apart from the transfers in/out section. Is that the same for everyone else?

    All sections work for me, including transfers in / out:confused:


  • Registered Users, Registered Users 2 Posts: 932 ✭✭✭Markx


    This is a really nice piece of work. Thanks to the developer.


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Markx wrote: »
    This is a really nice piece of work. Thanks to the developer.

    Thanks man!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    The transfers in/out section seems to be kind of hit or miss at the moment. I had a look a few days ago and couldn't work out what was going on with regards some of the output. I will try to find the time to take another look in the next few days. In the meantime if anyone has any idea what might be happening, please let me know. I am by no means an expert in javascript!


  • Registered Users, Registered Users 2 Posts: 9,573 ✭✭✭Shedite27


    The transfers in/out section seems to be kind of hit or miss at the moment. I had a look a few days ago and couldn't work out what was going on with regards some of the output. I will try to find the time to take another look in the next few days. In the meantime if anyone has any idea what might be happening, please let me know. I am by no means an expert in javascript!
    Just had a look there and played around with a few leagues I'm in, it seems to work fine till ya get to a team that hasn't made transfers, then breaks up. You need to put in a line that handles if there's been no transfers.

    eg, I have a league that has 20 teams... http://fantasy.premierleague.com/my-leagues/79715/standings/
    If ya run it on that, each transfer should weigh 5%.
    Team 5 hasn't made any transfer
    So it just shows the players each of the first 4 teams transferred in as 5% and same for out.


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Shedite27 wrote: »
    Just had a look there and played around with a few leagues I'm in, it seems to work fine till ya get to a team that hasn't made transfers, then breaks up. You need to put in a line that handles if there's been no transfers.

    eg, I have a league that has 20 teams... http://fantasy.premierleague.com/my-leagues/79715/standings/
    If ya run it on that, each transfer should weigh 5%.
    Team 5 hasn't made any transfer
    So it just shows the players each of the first 4 teams transferred in as 5% and same for out.

    Thanks mate that is a really useful insight. I'll have a look at the code again with that in mind and hopefully work something out!


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Update: I believe I have fixed the bug with the transfers in/out section thanks to shedite who pointed out where my code was breaking down! An extra line or two of code was all that was needed in the end and I can't figure out why that wasn't needed last season! Anyway I am hopeful this is the problem fixed and I have updated the extension on the store. It may take a couple of hours for this to come into effect and it will update automatically. You shouldn't need to uninstall and reinstall though that may update it quicker - I'm not sure. Thanks to all who have been in touch and who have motivated me to get back to work on the extension!


  • Registered Users, Registered Users 2 Posts: 9,573 ✭✭✭Shedite27


    Update: I believe I have fixed the bug with the transfers in/out section thanks to shedite who pointed out where my code was breaking down! An extra line or two of code was all that was needed in the end and I can't figure out why that wasn't needed last season! Anyway I am hopeful this is the problem fixed and I have updated the extension on the store. It may take a couple of hours for this to come into effect and it will update automatically. You shouldn't need to uninstall and reinstall though that may update it quicker - I'm not sure. Thanks to all who have been in touch and who have motivated me to get back to work on the extension!
    Glad I could help.

    Fair play for the effort. It's a very useful add-on. Thanks for the work!


  • Registered Users, Registered Users 2 Posts: 6,262 ✭✭✭iroced


    I can't figure out why that wasn't needed last season!

    If I remember correctly you made this app available for us during the season last year. So maybe there just was no team with no transfers in all the leagues we all were in.


    Anyway as many said here fair play for the effort for this interesting and useful add-on ;).


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,274 ✭✭✭✭FHFC


    Quick question on this. The average team value stat refers to what? (a) total team value including bank or (b) total current value of players excluding bank.

    Ran it on my main mini league and it gave 100m on Team Value Average and 1.1 bank average. Quite low especially if (a) above.


Advertisement