JayBlackedOut / hass-nhlapi

NHL Stats API Integration Into Home Assistant
69 stars 18 forks source link

Delay #31

Closed nutsofamily closed 3 years ago

nutsofamily commented 3 years ago

Anyway to fix the 20-40 sec delay. Watching on CBC and Sportsnet Canada and the goals scored but my automations are delayed by 15+ seconds. I have refresh on config at 1 sec.

JayBlackedOut commented 3 years ago

If your scan_interval is set to 1 second, you are getting the update pretty much exactly when the NHL updates the API. There is nothing I can do about that.

waltlillyman commented 3 years ago

@nutsofamily If it makes you feel any better, I've watched games on live network broadcast, cable regional provider, and streamed providers, and the update time from NHL's API (not Jay's add-in) is all over the map, time-wise. I've even seen the NHL wait until the ice-side officials agree it's a good goal before sending out the API goal update. So there's nothing Jay can do about that, his add-in is just relaying the message from the NHL.

nutsofamily commented 3 years ago

I hope Jay ( if you are listening lol) I'm not complaining. I've tried pausing the live tv and see if that helps but you are absolutely right. It's all over the place. I think this is best used for me if I'm watching a different program for reference for my goal light and code red goal horn flow. THANKS AGAIN for the work!!

JayBlackedOut commented 3 years ago

I take zero offense. I'm just happy that people are making use of my fun little project. I simply closed the issue because it is not within my control. Thanks for the feedback.