-
Notifications
You must be signed in to change notification settings - Fork 2
Notes
Room is left for using slots for non-ETA objects like images and animations, as well as replacing route numbers with actual displays.
The clock is the central time-keeping component used to calculate delta from any given ETA timestamp.
This clock is synced by the CORS proxy script since version 2.4, using console commands. For v2.4 and below, the clock is synced automatically every hour from timeapi.io. Use the commented-out line in update.js to adjust for ping and ensure correct time.
For v2.2 and below, if the page is paused, the clock is paused as well. Refresh the page to get updated ETAs.
For performance, v2.2 has migrated to a CORS proxy solution. To use this in a python3 http server, use v2.1 or below.
The font used is Open Sans.
Layout is updated every minute. The cycling is done every 4 seconds (const displayTime). ETA is fetched every 10 seconds (doesn't mean data changes every 10 seconds, depends on ETA server).
ETA less than 10/13 minutes is omitted. The second/third ETA would be used instead. If there are not enough ETAs to fill the table, they are left blank (--).
In v2.2 and below, for the top bar to fit, you probably need to hide your scrollbar. Check your browser for details. On Chromium, go to chrome://flags -> Smooth Scrolling to Disabled, then fullscreen the page.
Using Firefox breaks the font rendering and the page looks horrible.