Skip to content

fix: Use mvhs-schedule npm package for getting period for MVHS - #61

Open
webbrain-one wants to merge 1 commit into
arjunpat:masterfrom
webbrain-one:webbrain/issue-27
Open

fix: Use mvhs-schedule npm package for getting period for MVHS#61
webbrain-one wants to merge 1 commit into
arjunpat:masterfrom
webbrain-one:webbrain/issue-27

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #27

Integrate the mvhs-schedule npm package to fetch period data directly from
mvhs.io's Firebase backend. This ensures the schedule is always up-to-date
and actively maintained by Mr. Nguyen.

The library caches data for 30 minutes and falls back to the stale cache
when offline.
@zphrs

zphrs commented Aug 11, 2026

Copy link
Copy Markdown

Just to add, https://zph.rs/mvhs-timer has used this library since it was published back in 2022. Here’s the source code for the page above: https://github.com/zphrs/mvhs-timer

@zphrs

zphrs commented Aug 11, 2026

Copy link
Copy Markdown

The npm library fetches from the firebase database Mr. Nguyen still updates to keep mvhs.io’s schedule up to date.

@zphrs

zphrs commented Aug 11, 2026

Copy link
Copy Markdown

@webbrain-one getSchedule is an asynchronous function.

@zphrs

zphrs commented Aug 11, 2026

Copy link
Copy Markdown

Here’s an example file for how to use mvhs-schedule: https://github.com/zphrs/mvhs-timer/blob/main/src/PeriodUtils.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use mvhs-schedule npm package for getting period for MVHS

2 participants