Comments (14)
It does sound interesting! Another option could be a function that takes an FPL entry, and returns the live points for that manager's team.
Yes, I think this can also be done with a few additions.
from fpl.
@gringorichards I think that could be done with @johnmadden86's code that he is currently working on #78.
from fpl.
Sounds interesting! Do you mean like a stream that would output live points to a terminal or something that would actually send desktop notifications?
from fpl.
It does sound interesting! Another option could be a function that takes an FPL entry, and returns the live points for that manager's team.
from fpl.
I was thinking about actually sending desktop notifications, like when someone scores, it notifies you with the player whose points changed and your current live score.
from fpl.
@krishh-konar How do you see someone using it? For example, would they have to run a script that calls a function (that is implemented in the package) that streams updates and sends notifications to them, or would it be built into the CLI or something else etc?
from fpl.
I think running a script in the background which calls a something like a notify_livescore
function is a way to do it, as it would require continuous polling for data while the gameweek is going on. Do you have any other suggestions on how that can be implemented?
from fpl.
I'm not exactly sure how I'd implement it, but I guess it would be something that calls the /live
endpoint e.g. every minute and compares it to the previous call to see if anything changed (and then notifies the user of this). I think it would be best to add this to the CLI so people can just run something like fpl live
instead of having to run a script like python live.py
, but I'm not sure if the CLI even works anymore lol (so it could be a lot of work).
from fpl.
But wouldn't a notification system either require something running on the host all the time?
Would cli allow that? i.e. notifications stop as soon as you quit the program right?
from fpl.
I was thinking maybe just providing a function that would take userid and poll for points continuously and people who want to use it can simple import the module and call the function, and it works until the script is running?
from fpl.
But wouldn't a notification system either require something running on the host all the time?
Would cli allow that? i.e. notifications stop as soon as you quit the program right?
You'd just leave your terminal open, which you'd have to do with a script as well anyway.
from fpl.
Sounds like it should be separate project, some sort of client side app
from fpl.
You'd just leave your terminal open, which you'd have to do with a script as well anyway.
Well, you can run it as a background job or a daemon.... but I see you point.
from fpl.
Sounds like it should be separate project, some sort of client side app
Yes, maybe thats a good idea. I think I'll just start working on it on a different project and maybe just add the generic functions like getting player livescore etc. here
from fpl.
Related Issues (20)
- How can I see a team based on player's entry? HOT 2
- user.transfer works but returns error for mimetype HOT 3
- Many fixtures are inaccurate HOT 1
- Api giving urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed HOT 3
- Get proper team name from team id
- 403 on login HOT 6
- Optimal captain choice -small fix on enum :)
- Using this script for Allsvenskan.se/api/ HOT 1
- Classic League Issue HOT 2
- user.get_user_history() hangs if user joined after gameweek 1 HOT 1
- unable to get user_information from get_user() HOT 5
- Can we access previous year data from the player object HOT 2
- API requests loop indefinitely if request fails HOT 4
- get_fixtures method not returning fixtures without game week HOT 1
- Transfer function is not executing HOT 1
- Need an option to get my team details of any given gameweek HOT 3
- Nonetype HOT 2
- Adding support for Draft League HOT 2
- Adding list of packages to install / recommended Python Version HOT 1
- Quickstart code example doesn't work for Python 3.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpl.