Commit Graph
439 Commits
Author SHA1 Message Date
Matt Walsh 1cba2d6026 consolidate radar and future-radar to use a "filmstrip" base class 2026-09-21 08:42:45 -05:00
Matt Walsh 0c01e88875 clean up future-radar interfaces 2026-09-20 23:31:38 -05:00
Matt Walsh bf37285d30 implement fallback station id lookup until stations.json data expires 2026-09-20 23:27:53 -05:00
Matt Walsh 9ad20bc251 add future radar 2026-09-20 21:56:49 -05:00
Matt Walsh a1099b333d clean up coercing lat/lon variables #238 2026-09-19 11:22:47 -05:00
Matt Walsh 68c96b243d regional cities less cities in portrait #238 2026-09-19 10:37:15 -05:00
Matt Walsh 4bd6e79e7f regional forecast fetch tuning #238 2026-09-19 08:37:58 -05:00
Matt Walsh c0b9b4dcfb store stations for regional cities and preload images #238 2026-09-19 07:35:46 -05:00
Matt Walsh 64886eeea5 regional cities layout fixes #238 2026-09-19 06:26:12 -05:00
Matt Walsh df3474600a Merge branch 'eslint-update' into update-basemaps 2026-09-18 15:09:58 -05:00
Matt Walsh ea96a07083 navigation and weather display cleanup 2026-09-18 14:51:10 -05:00
Matt Walsh a821e22efd cleanup share.mjs 2026-09-18 00:04:26 -05:00
Matt Walsh efffa82846 settings cleanup 2026-09-17 23:55:04 -05:00
Matt Walsh 11f1083519 clean up scrolling status bar animation 2026-09-17 23:46:10 -05:00
Matt Walsh fa84029db1 status bar character-by-character draw effect 2026-09-17 23:14:22 -05:00
Matt Walsh 7100390702 better music/volume ui 2026-09-17 22:47:05 -05:00
Matt Walsh c4caf584de local forecast cleanup and timing adjustment close #191 2026-09-17 20:52:41 -05:00
Matt Walsh 70dcb2a5e1 latest observations better get in parallel algorithm 2026-09-17 15:46:50 -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 641f720a87 optimize hourly graph 2026-09-16 14:52:36 -05:00
Matt Walsh 8fe11928a1 cleanup extended forecast 2026-09-16 14:19:52 -05:00
Matt Walsh 4df95fb15e clean up current weather and hazards 2026-09-16 13:39:13 -05:00
Matt Walsh ab23b0261b almanac cleanup 2026-09-16 11:20:43 -05:00
Matt Walsh cac7976805 spc-outlook fetching cleanup 2026-09-16 10:04:06 -05:00
Matt Walsh 403264984f switch radar from canvas to data urls for better performance 2026-09-16 00:11:58 -05:00
Matt Walsh c35b990c5b refactor radar image fetch method 2026-09-16 00:00:21 -05:00
Matt Walsh a40f2c8621 radar rendering optimizations 2026-09-15 21:31:18 -05:00
Matt Walsh e246f5f95e better radar projection 2026-09-15 14:25:49 -05:00
Matt Walsh 9172ba0d4c Merge branch 'eslint-update' into update-basemaps 2026-09-14 14:31:41 -05:00
Matt Walsh ba9695c0c8 suncalc update 2026-09-14 13:56:04 -05:00
Matt Walsh 50a87e0a16 resolve renaming rules regarding eslint 2026-09-14 13:30:06 -05:00
Matt Walsh 2b4f83cfc0 update eslint and adjust code for best practices 2026-09-14 13:03:50 -05:00
Matt Walsh 7351025d14 update regional forecast to new map and plotting method #238 2026-09-14 00:00:47 -05:00
Matt Walsh 3e45499e5c add hooks for the start and end of page drawing to support ws4kchannels capture methods better 2026-08-09 23:34:30 -05:00
Matt Walsh 8a9f4df319 Merge pull request #228 from AirRocker/scroll-cache-invalidation-fix
Fix vertical scroll freezing after content is rebuilt
2026-08-09 10:15:16 -05:00
AirRocker 00e03aa947 Regional forecast: skip points with a null grid instead of requesting gridpoints/null
api.weather.gov returns HTTP 200 for offshore marine stations (forecastOffice
NH2) but with gridId, gridX and gridY all explicitly null -- those locations
have no land grid. getAndFormatPoint copied those fields through unchecked, so
it returned a truthy object with null fields. The caller's `if (!point)` guard
cannot catch that, and the request is built as

  https://api.weather.gov/gridpoints/null/null,null/forecast
  https://api.weather.gov/gridpoints/null/null,null/stations?limit=10

both of which 404.

Validate the grid fields rather than just the wrapper object and return null
when any are missing, so the affected city is skipped and drops off the
regional map -- the same outcome the module already produces for a point that
fails to load.

Reproduces against the live API with stations KGHB ("GB172") and KVAF
("East Breaks 643"), and is visible in tests/index.mjs on Houston and San
Antonio, whose regional maps include Gulf platforms.
2026-07-27 16:11:13 -05:00
Matt Walsh 5ec61be62a expand custom script options to mjs 2026-07-25 19:59:01 -05:00
Matt Walsh 3a7185b5a6 Merge pull request #231 from limelightdev/fix/hide-pressure-row-nan
Fix pressure row showing NaN in current conditions
2026-07-24 23:17:22 -05:00
Matt Walsh 2e87d174f1 test regional map layout in pixels close #199 2026-07-24 23:10:16 -05:00
Nick Jabbour 4d634777e7 fix pressure row showing NaN in current conditions
Some locations such as Denver return no pressure reading, which appears as "NaN" in the Current Conditions display. Hide the pressure row by default and only reveal it when the value is a valid number.
2026-07-25 02:59:18 +00:00
Matt Walsh bc2d34ccd1 better regional city selection 2026-07-24 14:49:13 -05:00
Matt Walsh ce5cbce02f more regional cities to choose from 2026-07-24 13:46:42 -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 3018c5ecbc fix no-data large icon url 2026-05-28 22:35:05 -05:00
Matt Walsh a5451e1779 update media query string parameters close #221 2026-05-28 18:31:30 -05:00
Matt Walsh 5f366c2b71 spc outlook styling and background portrait close #167 2026-05-17 22:32:13 -05:00
Matt Walsh 922cc21579 portrait spc additional data #167 2026-05-15 21:27:39 -05:00