Replies: 7 comments 3 replies
-
Custom API configuration should work. Are there issues with it? https://github.com/vasqued2/ha-teamtracker/wiki/Custom-API-Configurations |
Beta Was this translation helpful? Give feedback.
-
League_id should be XXX team_id should be OK or OKL or whatever abbreviation ESPN uses, not a number. |
Beta Was this translation helpful? Give feedback.
-
102 is incorrect. It should literally be XXX as I stated above. Not a number. |
Beta Was this translation helpful? Give feedback.
-
My apologies for misinterpreting this "XXX" part. I have seen "xxx" used as a way to start this is a variable that is determined by the whatever data you are trying to see (the unknown variable). Since I switched this over to "xxx" I was able to see the data for about 2 hours this morning for Softball only then the data went back to "NOT_FOUND" state. When in the PRE state I was able to see the data in the card as expected. I'm not sure what is cause this to go from PRE to NOT_FOUND state...I'm not requesting very many teams from the API total. 4 through the team tracker GUI integration and then the two baseball and softball custom integrations. I am having this issue with other teams that I have tested with the custom integration method. I've attached more screenshots for you. The custom integration showed up for a little bit while drafting this message earlier today. It has since gone into the "NOT_FOUND" state again. |
Beta Was this translation helpful? Give feedback.
-
You are probably bumping up,against the default API limit of 25 games. You can change it in the const.py file or wait for me to make a change for baseball in the next release that will try to fix it. By default, ESPN limits to only return 25 games at a time. Since there are more than 25 games yesterday and today, it truncates the result. Baseball seems to be the major sport the routinely hits the limits. Most other sports/leagues don’t have 25 games back to back. if you look at the API message on the sensor or look at the log, you will probably see the warning message. |
Beta Was this translation helpful? Give feedback.
-
Just a small question does the is the refresh time for the custom API integrations different than the non-custom integrations? Example, the NBA, for NCAA Football API integrations refresh almost instantaneously while the baseball/softball custom integrations are quite delayed. Is it just depending on how often ESPN has the API refresh or is this a setting that can be modified in the ha-teamtracker config files? Thanks for all the help with getting the custom API integration working correctly for these not as popular sports. |
Beta Was this translation helpful? Give feedback.
-
It's entirely dependent upon the ESPN API. It pulls the data at the same frequency (5 seconds) for all APIs while the games are in progress. ESPN seems to update the info at different frequencies based on sport and leagues. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was wondering if there is anyway to get the College Baseball and College Softball integrated into the ha-teamtracker integration? I found the ESPN API for both sports. However, I cannot figure out how to get these two sports to integrate with the team-tracker. Below are the ESPN API url's.
College Baseball:
https://site.api.espn.com/apis/site/v2/sports/baseball/college-baseball/scoreboard
College Softball:
https://site.api.espn.com/apis/site/v2/sports/baseball/college-softball/scoreboard
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions