Skip to content

Commit

Permalink
Remove old links to old api
Browse files Browse the repository at this point in the history
  • Loading branch information
martbhell committed Nov 29, 2023
1 parent 422a427 commit 6b2d746
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Features
========

* Persistent team selection using HTML5 Web Storage. If you choose a team in the menu and you later revisit https://wtangy.se (from the same browser) you'll see the result for that team.
* This works with the new NHL.com website (2017-)
* This works with the new new NHL.com website (2023-)

Why?
====
Expand All @@ -99,17 +99,11 @@ It also worked for 2020-21 playoffs :)

Currently the script doesn't differentiate between playoffs and regular seasons.

It just takes the dates from NHL.com's <a href="https://statsapi.web.nhl.com/api/v1/schedule?startDate=2017-10-04&endDate=2017-10-22">API</a>. There are more arguments to this API that I have not found any official documentation for. There is however This great resource: https://gitlab.com/dword4/nhlapi

Here's one result from google searches:
<pre>
https://statsapi.web.nhl.com/api/v1/schedule/startDate=2016-01-31&endDate=2016-02-05?expand=schedule.teams,schedule.linescore,schedule.broadcasts,schedule.ticket,schedule.game.content.media.epg&leaderCategories=&site=en_nhl&teamId=&
</pre>
It just takes the dates from NHL.com's <a href="https://api-web.nhle.com/v1/schedule/now">API</a>. There are more arguments to this API that I have not found any official documentation for. There is however <a href="This">https://gitlab.com/dword4/nhlapi/-/blob/master/new-api.md</a> great resource by dword4.

TODO / Known issues
====================

* Add notifications with whole schedule, maybe instead uploading the diff to GCS and send a link?
* Choosing background color - would be sweet if it could do HTML5 so users can choose themselves too like in https://www.w3schools.com/colors/colors_picker.asp
* games include preseason - if this is a problem let me know!
* add a calendar selection too near the menu?
Expand Down

0 comments on commit 6b2d746

Please sign in to comment.