Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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

  • 18-12-2013 10: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,154 ✭✭✭the whole year inn


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


  • Registered Users, Registered Users 2 Posts: 1,798 ✭✭✭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,491 ✭✭✭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,236 ✭✭✭✭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,685 ✭✭✭✭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,491 ✭✭✭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,491 ✭✭✭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.


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


    FHFC wrote: »
    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.

    That would refer to (b), excluding bank. I have no reason to believe it is inaccurate but let me know if you suspect there might be a bug and I'll work on it.


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


    If anyone has any suggested features for the extension please let me know here. I think it covers most of the important stats but maybe I'm missing something. If there are some good ideas, I will try to find the time to implement a couple.


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


    Thanks set miner. Not questioning the figures at all, expected the figures to be low given the price rise situation this year. That's why I wanted to know what the figure was.

    Its harder to gain value this year and easy to lose it if you are not on the ball. Unlike many I think it will still be quite an advantage this year, although the numbers will be smaller.

    I'd imagine it would be unfeasibly complicated to extract people's resale values in the app?


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


    FHFC wrote: »
    Thanks set miner. Not questioning the figures at all, expected the figures to be low given the price rise situation this year. That's why I wanted to know what the figure was.

    Its harder to gain value this year and easy to lose it if you are not on the ball. Unlike many I think it will still be quite an advantage this year, although the numbers will be smaller.

    I'd imagine it would be unfeasibly complicated to extract people's resale values in the app?

    What do you mean by resale values?


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


    What do you mean by resale values?

    See the Team Value thread. The value of people's team less the transfer 'tax' they lose if they sell their players. It's the true indicator of what you can buy with your team value. For example my team value is 102.1m but if i sold all my players it would only be 100.8m

    My Differential FPL app give me a sell value figure for me, but not for other players, I'd expect if would be too hard to extract for an app like yours unless you can pull info from the Stats View page on people's transfers view.


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


    FHFC wrote: »
    See the Team Value thread. The value of people's team less the transfer 'tax' they lose if they sell their players. It's the true indicator of what you can buy with your team value. For example my team value is 102.1m but if i sold all my players it would only be 100.8m

    My Differential FPL app give me a sell value figure for me, but not for other players, I'd expect if would be too hard to extract for an app like yours unless you can pull info from the Stats View page on people's transfers view.

    Ah, I know what you mean. It's certainly possible but it would require a fair bit of coding I think and probably would slow the current extenion down a considerable amount. Nonetheless I will consider it for future updates or perhaps for a new seperate FPL extension which I am considering making.


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


    Ah, I know what you mean. It's certainly possible but it would require a fair bit of coding I think and probably would slow the current extenion down a considerable amount. Nonetheless I will consider it for future updates or perhaps for a new seperate FPL extension which I am considering making.

    To be honest it's probably not worth the effort. While it's interesting to know if your resale team value is much ahead of the rest of your league, its probably something more relevant to an individual rival. And you can figure that out longhand if you really want to.

    Have only got round to using the app this year today so will see if any more useful tweaks spring to mind!!


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


    If anyone has any suggested features for the extension please let me know here. I think it covers most of the important stats but maybe I'm missing something. If there are some good ideas, I will try to find the time to implement a couple.
    One thing I'd love to see is a lit of transfers by team for the gameweek. So for example.....
    Team A; Mata out; Di Maria In
    Team B; Debucy out; Chambers In
    etc

    Wuld be easy to see at a glance on a SAturday midday who has done what to their teams.


  • Registered Users, Registered Users 2 Posts: 3,174 ✭✭✭Dearg81


    Ah, I know what you mean. It's certainly possible but it would require a fair bit of coding I think and probably would slow the current extenion down a considerable amount. Nonetheless I will consider it for future updates or perhaps for a new seperate FPL extension which I am considering making.

    I dont think it's possible to do this as the transfer price data(buy price and sell price) you would need to pull down is not listed on the event history page(it's on the transfer page) which I think is the page you are using to pull down all the data.
    One thing I'd love to see is a lit of transfers by team for the gameweek. So for example.....
    Team A; Mata out; Di Maria In
    Team B; Debucy out; Chambers In
    etc

    Wuld be easy to see at a glance on a SAturday midday who has done what to their teams.
    Yea, that would be handy.


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


    Shedite27 wrote: »
    One thing I'd love to see is a lit of transfers by team for the gameweek. So for example.....
    Team A; Mata out; Di Maria In
    Team B; Debucy out; Chambers In
    etc

    Wuld be easy to see at a glance on a SAturday midday who has done what to their teams.

    Differential FPL Android app gives you this for any player you have checked as a rival. Very very handy indeed. :)

    323119.png


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


    Yeah I love the way you can set everyone in your league as a rival on that app.


  • Registered Users, Registered Users 2 Posts: 34,287 ✭✭✭✭CSF


    FHFC wrote: »
    Differential FPL Android app gives you this for any player you have checked as a rival. Very very handy indeed. :)

    323119.png
    Thats me!!!!


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


    CSF wrote: »
    Thats me!!!!

    Big brother is watching you Gus Fring......

    I have all the FSA Premier League checked as rivals. :)

    It normally gives this info as soon as the game has updated at 12.30. The reason the time is last Monday is that I had to reboot my phone last week so I only got around to re-checking yis all on Monday there.


  • Registered Users, Registered Users 2 Posts: 3,174 ✭✭✭Dearg81


    FHFC wrote: »
    Big brother is watching you Gus Fring......

    I have all the FSA Premier League checked as rivals. :)

    It normally gives this info as soon as the game has updated at 12.30. The reason the time is last Monday is that I had to reboot my phone last week so I only got around to re-checking yis all on Monday there.

    That's cool, I have that app so must play around with it.


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


    FHFC wrote: »
    Differential FPL Android app gives you this for any player you have checked as a rival. Very very handy indeed. :)

    323119.png

    Are those the transfers he made this week??? as in the ones you can't normally find out about until after the GW deadline on Saturday!?


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


    Dearg81 wrote: »
    I dont think it's possible to do this as the transfer price data(buy price and sell price) you would need to pull down is not listed on the event history page(it's on the transfer page) which I think is the page you are using to pull down all the data.

    While it does involve pulling data from a different page it's not impossible. I could, in theory, get the list of players on a team and then get the sell value for each player on the FPL api pages like this http://fantasy.premierleague.com/web/api/elements/180/

    But yeah, a lot of effort for one statistic.


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


    Are those the transfers he made this week??? as in the ones you can't normally find out about until after the GW deadline on Saturday!?

    No. That's what I was trying to explain above. Usually your rival's transfers come up on your news ticker when the game has updated just after the gw deadline. I had to reinstall the app last week so when I added the lads as rivals on Monday their transfers from last week updated then.

    It also gives you all injury flags, price changes and fixture changes among other things to that ticker.

    When you get up in the morning all price changes are there as notifications. Great app.


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


    Are those the transfers he made this week??? as in the ones you can't normally find out about until after the GW deadline on Saturday!?

    BTW, I did put up a very lengthy post preseason on how to find out those transfers mind you. strictly for the obsessive stalker types though. ;)


  • Moderators, Computer Games Moderators Posts: 10,908 Mod ✭✭✭✭F1ngers


    FHFC wrote: »
    BTW, I did put up a very lengthy post preseason on how to find out those transfers mind you. strictly for the obsessive stalker types though. ;)

    The bunny boiler type of obsessive.


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


    F1ngers wrote: »
    The bunny boiler type of obsessive.

    Anseo.


  • Advertisement
Advertisement