I'm Canadian, and hockey is in my blood. I've been on skates since I was before I remember.

Being from Toronto, I have my team.

For the last couple of years, I used an app on my phone that would alert me 15 minutes before my teams played (Toronto and Edmonton) so that I had an opportunity to set up recording on my PVR.

In the last two days, I had to refuse the changes in said app's T&S because they wanted info beyond what was needed, so I decided immediately to delete the app. I then of course had to figure out a way to write my own alert software.

I have. As I've done for a long time, I take a problem, and create a Perl solution to produce data from a source that is external. This is no different.

I already have prototype working software. My question is this:

If you're a hockey fan, is there anything specifically you'd want to look up? I already have it pegged as NHL::API, so your feedback will dictate the interface.

Thanks :)

-stevieb

Replies are listed 'Best First'.
Re: NHL Hockey Fans?
by SankoR (Prior) on Oct 24, 2023 at 21:36 UTC
    Fan from the 90s and this has been on my TODO list longer than it should have been.

    I really should have done it a few years ago (Google says 2015) when the NHL began using MBL's backend tech for streaming games via Gamecenter in the US (which was garbage), providing access to statistics, the rulebook, player and team info, etc. Most of the tinkering I did back then was based on the unofficial documentation around MBL's feeds because the NHL had just barely started fleshing theirs out and not much worked.

    A recent redesign of nhl.com brought a switch to a new API that's being documented now. I notice you're using the older statsapi.web.nhl.com in your repo but check out the work being done by dword4 and others on gitlab. If you're on Discord, there's a few there working to document it.

      This is awesome info, thanks!

      I'm not following my normal pattern of work on this distribution... I literally just slapped enough code together without any thought just to get my game reminders working (which they are). In the coming days I will go to work refactoring it into a proper, professional distribution. Because I've barely got anything working yet, I will certainly look at this new API.

      I'm very glad I asked this question! It would have been awful if I didn't, and then near the end of code writing with a boatload of tests, realize that I should have went with a different web API backend :)

      -stevieb9

Re: NHL Hockey Fans?
by eyepopslikeamosquito (Archbishop) on Oct 24, 2023 at 08:27 UTC

    I'm Canadian, and hockey is in my blood. I've been on skates since I was before I remember...

    Where I come from, "hockey" means Field hockey - what you call "hockey", I call Ice hockey :)

    No great surprise to see Australia has won zero Olympic medals in 🏒 ... a feat I see has been matched by Canada in 🏑

    Though I've occasionally watched Ice hockey, I was shocked by its spectacular all in brawls - any anecdotes to share on this topic in games you were involved in?

    Updated: added hockey emojis

    👁️🍾👍🦟
      As the old joke goes, "I went to the fights last night, and a hockey game broke out."