Giter VIP home page Giter VIP logo

vasqued2 / ha-teamtracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zacs/ha-nfl

150.0 150.0 19.0 738 KB

Home Assistant integration that provides real-time scores in multiple professional (NBA, NFL, NHL, MLB, MLS, and more), college (NCAA), and international (soccer, golf, tennis, mma, racing) sports using ESPN APIs.

Python 100.00%
afl atp baseball basketball espn football hockey home-assistant mlb mls nba ncaa nfl nhl pga soccer teamtracker ufc volleyball wta

ha-teamtracker's People

Contributors

conorsham avatar d34dc3n73r avatar eracknaphobia avatar finity69x2 avatar firstof9 avatar gonzotek avatar hudsonbrendon avatar vasqued2 avatar zacs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ha-teamtracker's Issues

No Upcoming Games message for MLB

The MLB API only returns a games for a single day. The "No Upcoming Games" message assumes there are not games for the full week and this is not correct. The date displayed should be based on the date of the games returned.

XXX: eng.fa?

Today Manchester City plays the FA Cup. I wrote XXX, MNC, soccer and eng.fa. Like the path on the espn page. I get the competition with the logo and that there are no upcoming matches, NOT FOUND. I don't know if it's an API problem. Although that does not mean that I love this integration and you have done a magnificent job!

Time Zone Adjustment

Would it be possible to add a time zone adjustment. I am in central time and currently all times are in Eastern for me.

Amazing! Couple Questions

I just stumbled across this while looking to fully replace my MagicMirror with HA and it's awesome. Really appreciate your work on this. Just a couple questions:

  1. Have you noticed any API rate limiting with ESPN? I thought I remember reading about that somewhere when dealing with the MagicMirror module but I also may be crazy.
  2. I was able to get a couple NFL teams setup and working but can't seem to get any NCAAF teams to work. Is there somewhere I can view debug logging to try to figure that out? The HA log doesn't seem to show much.

Otherwise, works and looks awesome!

Multiple Team Add?

Is it possible to add multiple teams in a single configuration? For example, for NCAAM, is it possible to add an entire conference? Or would it be possible to add NFL but have every single team?

Entities Unavailable

I get the following in my logs and ive tried a few teams with the same issues:

This error originated from a custom integration.

Logger: custom_components.teamtracker
Source: helpers/update_coordinator.py:182
Integration: Team Tracker (documentation, issues)
First occurred: 9:59:55 AM (3 occurrences)
Last logged: 12:23:52 PM

Error fetching Nebraska NCAAF data: module 'arrow' has no attribute 'FORMAT_W3C'
Error fetching alabama crimson tide data: module 'arrow' has no attribute 'FORMAT_W3C'
Error fetching team_tracker data: module 'arrow' has no attribute 'FORMAT_W3C'

Extended Logs:

2022-11-13 09:59:54.206 INFO (MainThread) [custom_components.teamtracker] TeamTracker version v0.5.0 is starting, if you have any issues please report them here: https://github.com/vasqued2/ha-teamtracker
2022-11-13 09:59:54.206 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Data will be updated every 0:10:00 minutes
2022-11-13 09:59:54.217 INFO (MainThread) [custom_components.teamtracker] TeamTracker version v0.5.0 is starting, if you have any issues please report them here: https://github.com/vasqued2/ha-teamtracker
2022-11-13 09:59:54.218 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Data will be updated every 0:10:00 minutes
2022-11-13 09:59:55.830 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 09:59:55.832 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 09:59:55.868 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 09:59:55.871 ERROR (MainThread) [custom_components.teamtracker] Error fetching Nebraska NCAAF data: module 'arrow' has no attribute 'FORMAT_W3C'
2022-11-13 09:59:55.881 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 1.662 seconds (success: False)
2022-11-13 09:59:55.884 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 09:59:55.885 ERROR (MainThread) [custom_components.teamtracker] Error fetching alabama crimson tide data: module 'arrow' has no attribute 'FORMAT_W3C'
2022-11-13 09:59:55.890 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 1.683 seconds (success: False)
2022-11-13 09:59:57.560 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 09:59:57.608 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 09:59:57.891 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 09:59:57.892 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 1.155 seconds (success: False)
2022-11-13 09:59:57.893 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 09:59:57.893 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 1.157 seconds (success: False)
2022-11-13 10:09:57.239 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:09:57.244 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:09:57.247 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.245 seconds (success: False)
2022-11-13 10:09:57.295 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:09:57.357 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:09:57.358 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.357 seconds (success: False)
2022-11-13 10:19:57.232 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:19:57.237 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:19:57.237 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.235 seconds (success: False)
2022-11-13 10:19:57.294 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:19:57.379 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:19:57.380 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.377 seconds (success: False)
2022-11-13 10:29:57.235 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:29:57.248 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:29:57.250 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.249 seconds (success: False)
2022-11-13 10:29:57.252 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:29:57.255 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:29:57.256 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.255 seconds (success: False)
2022-11-13 10:39:57.228 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:39:57.243 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:39:57.244 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.244 seconds (success: False)
2022-11-13 10:39:57.286 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:39:57.290 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:39:57.291 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.290 seconds (success: False)
2022-11-13 10:49:57.295 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:49:57.320 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:49:57.323 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.272 seconds (success: False)
2022-11-13 10:49:57.324 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:49:58.335 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:49:58.340 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 1.286 seconds (success: False)
2022-11-13 10:59:57.244 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 10:59:57.248 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 10:59:57.249 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.247 seconds (success: False)
2022-11-13 10:59:58.173 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 10:59:58.187 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 10:59:58.188 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.187 seconds (success: False)
2022-11-13 11:09:57.235 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:09:57.239 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:09:57.240 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.239 seconds (success: False)
2022-11-13 11:09:58.174 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:09:58.251 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:09:58.269 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.267 seconds (success: False)
2022-11-13 11:19:57.248 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:19:57.261 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:19:57.264 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.263 seconds (success: False)
2022-11-13 11:19:58.182 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:19:58.209 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:19:58.214 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.213 seconds (success: False)
2022-11-13 11:29:57.234 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:29:57.240 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:29:57.241 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.241 seconds (success: False)
2022-11-13 11:29:58.171 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:29:58.187 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:29:58.188 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.188 seconds (success: False)
2022-11-13 11:39:57.235 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:39:57.239 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:39:57.240 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.240 seconds (success: False)
2022-11-13 11:39:58.169 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:39:58.192 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:39:58.194 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.192 seconds (success: False)
2022-11-13 11:49:57.253 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:49:57.258 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:49:57.259 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.259 seconds (success: False)
2022-11-13 11:49:58.175 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:49:58.208 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:49:58.212 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.207 seconds (success: False)
2022-11-13 11:59:57.247 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 11:59:57.250 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 11:59:57.251 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.251 seconds (success: False)
2022-11-13 11:59:58.225 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 11:59:58.260 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 11:59:58.265 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.262 seconds (success: False)
2022-11-13 12:09:57.248 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 12:09:57.261 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 12:09:57.264 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.264 seconds (success: False)
2022-11-13 12:09:58.201 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:09:58.231 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 12:09:58.236 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.232 seconds (success: False)
2022-11-13 12:19:57.238 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 12:19:57.242 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 12:19:57.243 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.241 seconds (success: False)
2022-11-13 12:19:58.168 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:19:58.193 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 12:19:58.198 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.197 seconds (success: False)
2022-11-13 12:23:52.442 INFO (MainThread) [custom_components.teamtracker] TeamTracker version v0.5.0 is starting, if you have any issues please report them here: https://github.com/vasqued2/ha-teamtracker
2022-11-13 12:23:52.443 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Data will be updated every 0:10:00 minutes
2022-11-13 12:23:52.616 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:23:52.623 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 12:23:52.624 ERROR (MainThread) [custom_components.teamtracker] Error fetching team_tracker data: module 'arrow' has no attribute 'FORMAT_W3C'
2022-11-13 12:23:52.633 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.190 seconds (success: False)
2022-11-13 12:23:52.743 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:23:52.750 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 12:23:52.751 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.114 seconds (success: False)
2022-11-13 12:29:57.243 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 12:29:57.248 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 12:29:57.248 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.247 seconds (success: False)
2022-11-13 12:29:58.184 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:29:58.254 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 12:29:58.259 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.258 seconds (success: False)
2022-11-13 12:33:52.177 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:33:52.185 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 12:33:52.186 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.185 seconds (success: False)
2022-11-13 12:39:57.299 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 12:39:57.311 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 12:39:57.314 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.268 seconds (success: False)
2022-11-13 12:39:58.255 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:39:58.340 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 12:39:58.342 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.339 seconds (success: False)
2022-11-13 12:43:52.193 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:43:52.212 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 12:43:52.216 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.216 seconds (success: False)
2022-11-13 12:49:57.240 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 12:49:57.252 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 12:49:57.255 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.253 seconds (success: False)
2022-11-13 12:49:58.168 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:49:58.227 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 12:49:58.229 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.229 seconds (success: False)
2022-11-13 12:53:52.272 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 12:53:52.281 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 12:53:52.282 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.281 seconds (success: False)
2022-11-13 13:00:01.504 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 13:00:01.507 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 13:00:01.512 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 13:00:01.513 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.344 seconds (success: False)
2022-11-13 13:00:01.529 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 13:00:01.530 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.360 seconds (success: False)
2022-11-13 13:03:52.173 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Getting state for 'DAL' from http://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 13:03:52.182 DEBUG (MainThread) [custom_components.teamtracker] team_tracker: Found event for DAL; parsing data.
2022-11-13 13:03:52.184 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching team_tracker data in 0.183 seconds (success: False)
2022-11-13 13:10:01.251 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Getting state for 'ALA' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118
2022-11-13 13:10:01.271 DEBUG (MainThread) [custom_components.teamtracker] alabama crimson tide: Found event for ALA; parsing data.
2022-11-13 13:10:01.273 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching alabama crimson tide data in 0.272 seconds (success: False)
2022-11-13 13:10:01.295 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Getting state for 'NEB' from http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?lang=en&dates=20221112-20221118&groups=5
2022-11-13 13:10:01.307 DEBUG (MainThread) [custom_components.teamtracker] Nebraska NCAAF: Found event for NEB; parsing data.
2022-11-13 13:10:01.307 DEBUG (MainThread) [custom_components.teamtracker] Finished fetching Nebraska NCAAF data in 0.305 seconds (success: False)

NCAA Time Remaining Updates

I watched an NCAA game using 0.5.1 yesterday (I just updated to 0.5.2) and noticed that the time remaining did not update unless there was a significant change (i.e. a team scored, possession change). The play-by-play was updating after each play, and scores changes were reflected immediately, but the remaining time did not regularly update throughout the game. I'll be watching an NFL game later today and can let you know if it is NCAA only or NFL as well.

Potential to Match to Wrong Team

If a team's abbreviation is a substring of another team's abbreviation, it may create a match and pull in the wrong game. For example, Arkansas (ARK) matched and pulled in the game for Central Arkansas Sugar Bears (CARK).

AFL enhancements

Round 1 of the AFL has started, and I'd like to check on the possibility of adding goals and behinds.

Example game page showing the typical scoreboard: https://www.espn.com/afl/game?gameId=1132809
image
In this game, the Suns had 9 goals (6 points each) and 7 behinds (one point each) for a total of 61. The Swans had 16 goals and 14 behinds for a total of 110.

Goals and Behinds are tracked in statistics, e.g.
http://sports.core.api.espn.com/v2/sports/australian-football/leagues/afl/events/1132809/competitions/1132809/competitors/4/statistics/10?lang=en&region=us
http://sports.core.api.espn.com/v2/sports/australian-football/leagues/afl/events/1132809/competitions/1132809/competitors/10/statistics/10?lang=en&region=us

In case it aligns with the card for other sports (I didn't see it when I did a quick scan), the score from each quarter is tracked in linescores, e.g.
http://sports.core.api.espn.com/v2/sports/australian-football/leagues/afl/events/1132809/competitions/1132809/competitors/10/linescores?lang=en&region=us
http://sports.core.api.espn.com/v2/sports/australian-football/leagues/afl/events/1132809/competitions/1132809/competitors/4/linescores?lang=en&region=us

Thank you

Issue with International Soccer - SERA

Hello, can you help me with SERA (Italian Serie A) ?
I can not found correct code for team (approx. AC Milan). In espn.com is visible only code 103.
Thanks.

NOT_FOUND: Behavior is different from ha-nfl

RIght now, I am trying to add NFL: Baltimore Ravens (BAL). I am receiving NOT_FOUND because the ravens are not scheduled to play between now and Dec 31st. If I add the same team to ha-nfl it adds the team correctly with POST (since the team played Saturday)

I would expect the behavior not to return NOT_FOUND, why even add the date to restrict the availability of adding a team?

Timeouts not updating

Most features work great! However during NCAA football games the timeouts do not update to the correct remaining number. There are no errors just always shows three for both teams.

Can I notify if there is a game today?

My wife missed a day game because ... well, she wasn't paying attention.

Of course, it was my fault :)

Is there a way to notify at 10am if her team has a game today and what time?

I know how to notify. But, need to know how to do the 'game today thing'.

German Bundesliga and Champions League not working well

Hello,

i have tried out to configure my favorite club "Borussia Dortmund" of the German Bundesliga and also for the ChampionsLeague.

I checked the ESPN website and i found out that 124 ist the team_id for my club. I checked the api and i get some results:
http://site.api.espn.com/apis/site/v2/sports/soccer/ger.1/teams/124
http://site.api.espn.com/apis/site/v2/sports/soccer/uefa.champions/teams/124

i use this configuration in my yaml:

  • platform: teamtracker
    league_id: "BUND"
    team_id: "124"
    name: "bl_bvb"

  • platform: teamtracker
    league_id: "CL"
    team_id: "124"
    name: "cl_bvb"

But for both configs i get as result API-Message = "No competition scheduled for '124' between 2023-02-14T00:00Z and 2023-02-20T00:00Z". But this is not true.
E.g. today 15th of Feb 23 there is the CL-Match ageainst FC Chelsea. This is also visible on the ESPN Website.

I have also tried to config the club manually. But result is the same.

  • platform: teamtracker
    league_id: XXX
    team_id: 124
    sport_path: soccer
    league_path: uefa.champions
    name: tt_custom_cl_bvb

I have activated the customer logging and there is the request:
http://site.api.espn.com/apis/site/v2/sports/soccer/uefa.champions/scoreboard?lang=en&dates=20230214-20230220

If i checked the json file manual in a editor i find this result:
{"id":"656852","uid":"s:600l:775e:656852","date":"2023-02-15T20:00Z","name":"Chelsea at Borussia Dortmund","shortName":"CHE @ DOR","season":{"year":2022,"type":11304,"slug":"round-of-16"},

This does not seem to be evaluated correctly.

Is there something wrong in my configuration or it's a bug in the teamtracker?

Greetings from Dortmund
Deinjo

World Cup - Entities Unavailable

Whenever I create an entity for a World Cup team, the status shows as Unavailable with an entry in the error logs of Error fetching Team-Tracker-ENG-World-Cup data: 'venue'.

I have created entities for 2 different teams and get the same errors for each team:

Entity 1
League: WC
Team/Athlete: ENG
Friendly Name: Team-Tracker-ENG-World-Cup
Update Timeout: 120

Entity 2
League: WC
Team/Athlete: USA
Friendly Name: Team-Tracker-USA-World-Cup
Update Timeout: 120

I'm pretty sure that the team name is correct as if I enter a nonsense name (e.g. XXX) the entity is added with a 'NOT_FOUND' status and no errors in the log files

start_term attribute

Can you make the start_term attribute available?

These are different by sport.
First Pitch
Puck Drop
Kick Off

I found the reference in ha_teamtracker_card. But,I don't see it here.

I am currently using 'Game starts ' for all. But, it just seems wrong :)

Team abbr isn’t a unique value in the api

I have several trackers set up for Manchester United whose Team abbr is MAN. One of them tracks the English League Cup. Apparently the team Mansfield also have MAN as their Team abbr so their next fixture is showing up on that tracker.

Would it be possible to give us the option to use Team ID as I’m assuming that would be a unique value?

In europe soccer: No upcoming games

Very interesting integration. I have tried with 4 soccer teams from different leagues (LIGA:BAR, BUND:MUN, EPL:MCI, LIG1:PSG) and in all of them it shows that there are no upcoming matches and all the data is null. On the cards it puts the league logo and no upcoming match. I don't know if it's an api problem. I know that all those teams have the next Champions League match but I have also tried it with another one that has la liga tomorrow and the same thing. Could you try it to check?

Way to NOT display a teams score

I love that integration, as it is impossible to watch each match of the teams I want to follow.

Would it be possible to to NOT see a score of your favourite time, EG i watch NBA, and the only matches i watch are the Grizzlies, and because i live in a different time zone, i have to watch it as a replay.

so although i want to keep a track of the scores of other teams like the Mavericks, if they play the Grizzlies, then that score would show up.

So maybe if i could add the Grizzlies, but have an option to HIDE SCORE, then I can still keep a track of who and when they are playing, but wont be spoiled with th final result until i have watched the match.

Obviously the Card would need to have something on it to UNHIDE SCORE, after the match has been watched.

Now that i have written this out, I am wondering if I should laso post this to the card developer.

Research ?

Hello,
How to do a search to know what to wear for such and such a team, or for such a tennis player?
To search for example Barcelona or Rafael Nadal?
where to find the right name to put in the integration?

Thank you

TENNIS OPTION DON'T WORK GOOD

The Tennis option no longer indicates that the match is started (IN) and neither does the result. It was very useful to me because I use an automation when it starts, because tennis normally does not have a fixed schedule, it is played when the previous match ends, which can take a long time. Let's see if it can be fixed. I say again that you have done a magnificent job, keep up the good work!

Ranking board

Hello,
With this API, does it give us the possibility to make a card with a table of the league classification? that would be nice

NASCAR Laps

Lap info gets populated then drops, then gets populated again.

Football home and away matches notify in sensor and lovelace card

First of all great work .I am not sure if it is possible or not in the API but at-least in league football there is a home team and away team and whichever team is playing at home ,that team name comes first. So for example chelsea vs manchester united , chelsea is playing at home , manchester united away , obviously one case where it is a final being played at neutral venue like a champions league final this won't hold true which we can ignore .

[Feature Request] Example Repository

Could there be a repository of examples for some of the attributes as they would appear for different sports? Like exactly what would the output look like in terms for formatting and display, and how it would change between different sports?

Add CFL to your API list

Figure its a longshot, but couldn't hurt to ask!

It appears that the CFL does exist as far as ESPN is concerned (or at least, I have been unable to find any CFL team on their website), and therefore cannot be tracked using your integration.

The CFL does however, have its own API and does allow for an API key to be requested for use by individuals.

What are the chances that your integration can be easily modified, and add this different API to the list?

API documentation: http://api.cfl.ca/docs
Key Request: http://api.cfl.ca/key-request

API Limit Hit

Woke up this morning to see the following message in Attributes:

  Cached data: API_LIMIT hit.  No competition found for 'MIA' between
  2023-03-08T00:00Z and 2023-03-14T00:00Z

I don't remember reading anywhere in the Wiki about an API limit. MIA definitely has games coming up, tomorrow in fact.

NASCAR?

See you have F1 and IRL, which is great. Wondering if we could get NASCAR added?

Some NFL team integrations are failing

Hello,

I'm on the 2023.7.3 release of HA and the v0.9.0 release of ha-teamtracker. My integration for the Kansas City Chiefs, which uses as two-letter code "KC". It has stopped working, where the entity status and all attributes report as "NOT_FOUND".

I've tested this with other teams, such as LAC, IND, LV, and NE. They show the same errors.

At least one team, NYJ, still works with no issues.

Golf Player

Just found this card and am trying to figure out how I can get indiviual Golf players to track.
I've tried with:

- platform: teamtracker
  league_id: "PGA"
  team_id: "tiger-woods"
  name: "team_tracker_tiger"

But that yields a "NOT_FOUND".
Also tried some other combinations, but can't figure out.
Can you help me please?

Tennis ?

Hello,

The tennis season is starting again and I realize that I can't get the players I want to follow, probably due to the name I put in the configuration:
ex: for Nadal (who plays this January 17) I can put nadal or rafael-nadal, I always have the result 'not_found'

Capture d’écran 2023-01-17 à 15 21 46

Thanks if you could give me a hand...

  • Nadal
  • Alcaraz
  • Djokovic

For exemple. Thanks

Email ?

Good morning,
Have you received my email for the corrections in French?

Unsupported locale

I've got an error after setting up teamtracker. There's anything I can do to fix it? Sorry if my English isn't good. As you can see in the error, Spanish is my first language ("es-419")

Logger: custom_components.teamtracker
Source: helpers/update_coordinator.py:182
Integration: Team Tracker (documentation, issues)
First occurred: 20:32:21 (1 occurrences)
Last logged: 20:32:21

Error fetching team_tracker data: Unsupported locale 'es-419'.

Team icons overlapping other items when viewing entity attributes

This seems to be a newish thing since the last few updates but the screenshot pretty much speaks for itself. The information on the team tracker card shows that icons and stats will overlap anything that should normally be in the background when looking at other cards entity info. In this example the entity i am viewing is not overlaying on the card. but in many other instances the information from the team card overlaps
2023-05-15 21_33_44-Andrew Dashboard – Home Assistant - Vivaldi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.