34 Commits
Author SHA1 Message Date
Matt Walsh 4b61a07d2a minor code cleanup 2026-09-28 22:00:23 -05:00
Matt Walsh 795b5047a5 consolidate get data from other display procedure 2026-09-27 18:24:54 -05:00
Matt Walsh f3503e329a music auto play, custom scroll text and gps failure fixes 2026-09-27 17:44:45 -05:00
Matt Walsh 2d24130bd7 break up navigation.mjs 2026-09-24 22:10:59 -05:00
Matt Walsh 5510f1146b remove unneeded intersticial icons.mjs 2026-09-17 14:28:31 -05:00
Matt Walsh 05fb094694 condense hourly, travel and hazards to shared "scrolling" class 2026-09-17 14:20:31 -05:00
Matt Walsh 4cf4ef3244 cleanup hourly, travelforecast and hazards.mjs 2026-09-17 13:59:59 -05:00
Matt Walsh af7ce4aacf clean up hourly and travel forecast 2026-09-17 09:49:13 -05:00
Matt Walsh 2b4f83cfc0 update eslint and adjust code for best practices 2026-09-14 13:03:50 -05:00
AirRocker 40fb29a080 fix vertical scroll freezing after content is rebuilt
The scroll cache in hazards, hourly and travel forecast is invalidated by
comparing element identity, but the lines element is persistent - a rebuild
only replaces its children - and displayHeight is a fixed value from css. Both
conditions stay false after the first measurement, so maxOffset keeps the
height of whatever content was measured first. When later content is taller,
the scroll clamps at the old offset and sits frozen there for the rest of the
screen's timing.

Invalidate the cache explicitly when the list is rebuilt, and reset
navBaseCount so new content scrolls from the top.

Invalidating alone would regress hazards: it refreshes every 60 seconds but a
long multi-alert scroll can run for several minutes, so rebuilding on every
refresh would restart it from the top and it would never reach the end. Each
display now also compares a signature of the content it is about to render and
skips the rebuild entirely when nothing changed, leaving an in-progress scroll
undisturbed. Hourly's signature includes the starting hour because its row
labels are derived from the current time.
2026-07-20 10:14:20 -05:00
Matt Walsh 9f6b90919c hourly enhanced #188 #195 #196 #193 #194 2026-04-05 23:58:50 -05:00
Matt Walsh 320d3139c3 add dewpoint to hourly and expand to 36 hours 2026-01-17 11:42:26 -06:00
Matt Walsh 6422589b5c fix wind speed on hourly close #157 2025-10-22 00:22:29 +00:00
Eddy G e34137e430 Refactor timing calculations and improve scroll performance
- Replace magic numbers with seconds-based timing constants
- Switch from scrollTo() to hardware-accelerated transform for smooth scrolling
- Add scroll caching to prevent repeated DOM queries every scroll cycle
- Fix calculations to support flexible hourly forecast lengths
    (i.e. in the future, could offer every other hour)
- Switch to safeJson() for centralized error handling
2025-06-24 23:40:07 -04:00
Matt Walsh a83afa71cd code cleanup 2025-05-29 08:30:01 -05:00
Matt Walsh eacd82b4f4 fix hourly graph not updating close #77 2025-05-02 23:22:24 -05:00
Matt Walsh a592668d0d hourly color coded feels like temperatures close #69 2025-04-07 22:13:20 -05:00
Matt Walsh 8fa00b34b4 hourly and travel forecast silent reload 2025-04-02 16:45:11 -05:00
Matt Walsh 23cc1a1f7a add refresh flag to getdata funcions 2025-04-02 11:10:58 -05:00
Matt Walsh ef1477f9eb fix hourly forecast temperature double-converted 2025-02-25 09:49:12 -06:00
Matt Walsh d6335b2878 fix time zones on hourly and almanac close #67 2025-02-25 09:44:24 -06:00
Matt Walsh af53cca45e add si units close #52 2025-02-23 23:35:00 -06:00
Matt Walsh efeb45d3d0 fix travel forecast and hourly scrolling close #58 2024-11-25 09:40:36 -06:00
Matt Walsh 3743c45de6 additional eslint rules 2023-01-06 14:39:39 -06:00
Matt Walsh 111f077e20 add hazards 2022-12-14 16:28:33 -06:00
Matt Walsh 2a577aaea7 code cleanup 2022-12-14 13:08:49 -06:00
Matt Walsh 5dd8f4bd62 auto-retry for some forecast data 2022-12-12 13:53:33 -06:00
Matt Walsh f633631532 class static code cleanup 2022-12-09 13:51:51 -06:00
Matt Walsh d0382e0de1 better error handlig of shared data 2022-12-08 14:41:15 -06:00
Matt Walsh 1a7734b620 add hourly graph 2022-12-07 15:36:02 -06:00
Matt Walsh 8e6fd04b3a remove metric 2022-12-06 16:25:28 -06:00
Matt Walsh 6933e7b7f1 modular 2022-12-06 16:14:56 -06:00
Matt Walsh 72b2f275fa remove window. references 2022-11-22 16:29:10 -06:00
Matt Walsh cc61d2c6d1 weather displays complete 2022-11-22 16:19:10 -06:00