Commit Graph
86 Commits
Author SHA1 Message Date
Matt Walsh 93cb1e63ec Merge branch 'climate-data' 2026-10-24 11:30:44 -05:00
Matt Walsh a299819a68 Gracefully handle stale observation data 2026-10-22 14:53:33 -05:00
Matt Walsh 7875135084 climate info completed 2026-10-09 11:58:05 -05:00
Matt Walsh 63a18d3bac move timing code out of weatherdisplay 2026-10-01 14:17:05 -05:00
Matt Walsh 11d94f3aeb change retry to an await and timeout loop 2026-10-01 14:12:33 -05:00
Matt Walsh 26c6703ecd code cleanup, efficiency, loading order 2026-09-28 22:45:24 -05:00
Matt Walsh 187dd74e1a clean up full screen enter/exit and scaling parameters 2026-09-28 22:06:03 -05:00
Matt Walsh 4b61a07d2a minor code cleanup 2026-09-28 22:00:23 -05:00
Matt Walsh dc139e01d6 consolidate shortening condition strings 2026-09-27 18:21:41 -05:00
Matt Walsh 8edb124116 make screen reader friendly for autocomplete 2026-09-27 18:18:02 -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 25760e2e05 vertical scrollbar and display width fix 2026-09-25 21:15:01 -05:00
Matt Walsh 889e06fa15 fix for docker containers and sub-path hosting 2026-09-25 20:59:53 -05:00
Matt Walsh b779b72b7f don't load data into winow globals 2026-09-24 23:05:37 -05:00
Matt Walsh 2d24130bd7 break up navigation.mjs 2026-09-24 22:10:59 -05:00
Matt Walsh ed26b347d9 accessibility for new tabs 2026-09-24 16:03:51 -05:00
Matt Walsh 806577d02c surface point lookup errors 2026-09-24 12:16:14 -05:00
Matt Walsh 5047f97495 code cleanup 2026-09-24 11:41:33 -05:00
Matt Walsh 1cba2d6026 consolidate radar and future-radar to use a "filmstrip" base class 2026-09-21 08:42:45 -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 df3474600a Merge branch 'eslint-update' into update-basemaps 2026-09-18 15:09:58 -05:00
Matt Walsh 4cf4ef3244 cleanup hourly, travelforecast and hazards.mjs 2026-09-17 13:59:59 -05:00
Matt Walsh 4df95fb15e clean up current weather and hazards 2026-09-16 13:39:13 -05:00
Matt Walsh a40f2c8621 radar rendering optimizations 2026-09-15 21:31:18 -05:00
Matt Walsh 9172ba0d4c Merge branch 'eslint-update' into update-basemaps 2026-09-14 14:31:41 -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 e37c58a0ab split webpack builds 2026-04-18 14:03:06 -05:00
Matt Walsh 5adf74feee Merge branch 'main' into screen-enhance 2026-04-15 09:40:02 -05:00
Matt Walsh 994c9240b8 shorten permalinks close #206 2026-04-13 16:19:26 -05:00
Matt Walsh a41b0da196 more generalized fix for mapclick enhanced timestamps close #203
moves changes made in 0b47cf79c1 to the mapclick processing for benefit of other mapclick calls
2026-04-09 12:18:56 -05:00
Matt Walsh 5dc214c6a5 filter station list upon receipt 2026-04-08 09:57:18 -05:00
Matt Walsh 6f97e3d2b9 add volume control slider and overhaul settings close #109 2025-11-10 12:54:54 -06:00
Matt Walsh 14b1891efd direct check of regex lookbehind capability 2025-09-11 08:47:16 -05:00
Matt Walsh 517c560ef6 don't parse metar for old ios versions 2025-09-03 21:46:48 -05:00
Matt Walsh 75eb81887f Clean up build around metar parser and locale 2025-08-04 12:03:18 -05:00
Eddy G c3d863f89f Fixup mapclick.mjs 2025-07-13 22:45:04 -04:00
Eddy G 996baa78aa Add MapClick adapter and "fallback" logic when observations are stale
- Create utils/mapclick.mjs with centralized MapClick API functionality
- Refactor modules to use the new utility:
  - Current Weather
  - Latest Observations
  - Regional Forecast
- Add staleness checking utility for use by modules
2025-07-13 22:10:41 -04:00
Eddy G 4b34ffabcb Fix retry count display in doFetch 2025-07-13 19:45:52 -04:00
Eddy G 9c5ed0dcca Improve error handling to help prevent runtime errors
Adds input validation and safe property access to utility functions
to handle edge cases and invalid arguments gracefully
2025-07-07 12:43:32 -04:00
Eddy G 771ab37eaf Improve cache error handling in various edge cases
- Add null-safe operations and fallbacks for missing properties
- Simplify retry logic and enhance error logging
- Enable default retries and improve timeout handling
2025-07-07 12:43:32 -04:00
Eddy G 10baefc901 Merge remote-tracking branch 'upstream/main' into modernization-and-refactor 2025-07-02 09:08:07 -04:00
Eddy G 67dfd7ec08 Add "Sticky Kiosk" setting that stores "Kiosk" mode when activate
- This setting is important to allow creation ofa Home Screen app on iOS/iPadOS
- If kiosk mode is accidentally made sticky, it can be cleared by adding '&kiosk=false` to the URL
- Ctrl-K will now also exit kiosk mode

This adds a `stickyRead` parameter to settings, that means "read it if it's there, but don't write it"
2025-07-02 08:11:52 -04:00
Eddy G b49433f5ff Add responsive scaling; improve scanlines and Mobile Safari support
- Replace CSS zoom with CSS transform scaling for better mobile compatibility
- Implement wrapper-based scaling approach that includes both content and navigation bar
- Replace Almanac layout with CSS Grid for better cross-browser layout
- Greatly improve scanline algorithm to handle a wide variety of displays
- Add setting to override automatic scanlines to user-specified scale factor
- Remove scanline scaling debug functions
- Refactor settings module: initialize settings upfront and improve change handler declarations
- Enhance scanline SCSS with repeating-linear-gradient for better performance
- Add app icon for iOS/iPadOS
- Add 'fullscreen' event listener
- De-bounce 'resize' event listener
- Add 'orientationchange' event listener
- Implement three resize scaling algorithms:
  - Baseline (when no scaling is needed, like on the index page)
  - Mobile scaling (except Mobile Safari kiosk mode)
  - Mobile Safari kiosk mode (using manual offset calculations)
  - Standard fullscreen/kiosk mode (using CSS centering)
2025-07-02 00:22:06 -04:00
Matt Walsh 9f9667c895 add single text scroll option #57 2025-06-28 09:20:36 -05:00
Matt Walsh 945c12e6c6 parse rss feed #57 2025-06-28 00:29:55 -05:00
Eddy G 517cafe40a Refactor data loading: move from inline JSON to client-side fetch
- Remove large JSON data injection from EJS templates
- Add client-side data-loader utility with cache-busting support
- Create server endpoints for JSON data with long-term caching
- Add graceful failure handling if core data fails to load
- Copy JSON data files to dist/data for static hosting
- Update app initialization to load data asynchronously
- Set serverAvailable flag for static builds in gulp task

This reduces HTML payload size and enables better caching strategies
for both server and static deployment modes.
2025-06-26 20:10:15 -04:00
Eddy G 7f7cb96231 Add STATIC environment variable for browser-only deployment mode
Implement STATIC=1 environment variable to enable browser-only deployment
without proxy server infrastructure. Uses WS4KP_SERVER_AVAILABLE flag to
distinguish between server-backed and static deployments for proper URL
rewriting and User-Agent header handling.

- Add STATIC env var to skip proxy route registration at startup
- Inject WS4KP_SERVER_AVAILABLE flag via EJS template based on STATIC mode
- Update fetch.mjs to conditionally send User-Agent headers based on server availability
- Update url-rewrite.mjs to skip proxy rewriting when server is unavailable
- Use renderIndex helper for consistent template data across dev/prod modes
- Improve music playlist logging

Benefits of integrated approach:
- Single environment variable controls both server and client behavior
- Flag injection happens once at render time, not on every request
- No runtime HTML string manipulation overhead
- Clean separation between server-backed and static deployment logic
- Same codebase supports both deployment modes without duplication

Static mode (STATIC=1): Direct API calls to external services, no caching
Server mode (default): Local proxy with caching and API request observability
2025-06-26 20:10:11 -04:00