Commit Graph
92 Commits
Author SHA1 Message Date
Matt Walsh 08c3d26594 read id3 tags at build and server start for better music track info 2026-10-05 12:22:15 -05:00
Matt Walsh cf0157ace5 include custom files in buildDist (and update docker accordingly) 2026-10-01 15:31:33 -05:00
Matt Walsh a560a2210a clean up use of produciton flag during ejs build 2026-10-01 15:16:54 -05:00
Matt Walsh f33286062e tree-shake proj4 and update vendor files 2026-10-01 15:08:21 -05:00
Matt Walsh 1d410ed054 consolidate script build method 2026-10-01 14:51:33 -05:00
Matt Walsh 423ee72fe5 clean up playlist build 2026-10-01 14:28:26 -05:00
Matt Walsh ff2a6a452b pr and build workflow updates 2026-09-24 16:28:23 -05:00
Matt Walsh 1168f7f931 package scripts cleanup 2026-09-24 16:04:10 -05:00
Matt Walsh 6b58fd7ce5 docker build updates + icons 2026-09-24 15:05:07 -05:00
Matt Walsh ab3078a110 clean up build settings 2026-09-21 11:14:33 -05:00
Matt Walsh 9ad20bc251 add future radar 2026-09-20 21:56:49 -05:00
Matt Walsh da2cb76f75 update build script 2026-09-19 20:34:01 -05:00
Matt Walsh df3474600a Merge branch 'eslint-update' into update-basemaps 2026-09-18 15:09:58 -05:00
Matt Walsh 5510f1146b remove unneeded intersticial icons.mjs 2026-09-17 14:28:31 -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 cfbe6b540c remove publishing gulp tasks 2026-04-18 16:35:51 -05:00
Matt Walsh e37c58a0ab split webpack builds 2026-04-18 14:03:06 -05:00
Matt Walsh 89bf5e3f31 remote gulp-sourcemaps in favor of gulp's internal function 2026-04-18 12:14:05 -05:00
Matt Walsh 42f1f66117 squeeze preview format into available space 2026-04-08 23:36:33 -05:00
Matt Walsh d4f648f244 better 'version' numbers for staging site 2026-04-08 23:34:10 -05:00
Matt Walsh e70639d7a6 local forecast enhanced-wide #188 #196 #193 #194 2026-04-07 10:38:12 -05:00
Matt Walsh d5b7c6630a re-instate custom text scroll close #186 2026-03-01 10:03:52 -06:00
Matt Walsh 8c83736aba remove rss feeds close #184 2026-02-16 21:30:13 -06:00
Matt Walsh 767bb8f11d gulp now publishes sourcemaps 2025-11-30 04:16:02 +00:00
Matt Walsh 8255efd3f7 add version number to publish task 2025-11-10 04:52:13 +00:00
Matt Walsh b4de17ccd0 update dependencies 2025-10-02 21:50:28 -05:00
Matt Walsh 093b6ac239 unique version numbers for staging uploads 2025-09-04 21:57:12 -05:00
Matt Walsh 75eb81887f Clean up build around metar parser and locale 2025-08-04 12:03:18 -05:00
Eddy G 10baefc901 Merge remote-tracking branch 'upstream/main' into modernization-and-refactor 2025-07-02 09:08:07 -04:00
Matt Walsh 1120247c99 include custom rss feed in build #57 2025-06-30 23:32:30 -05:00
Eddy G 90c1ab92b4 Merge upstream/main: integrate radar worker removal and improvements
- Remove radar-worker.mjs and integrate functionality into radar-processor.mjs
- Update package.json and gulpfile.mjs with upstream changes
2025-06-27 11:05:32 -04:00
Matt Walsh efd4e0c66d Remove workers from build processes 2025-06-27 08:56:04 -05:00
Matt Walsh 5a80f43f30 add staging gulp tasks 2025-06-26 22:30:42 -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
Eddy G ec83c17ae2 Add 'metar-taf-parser' npm dependency
- Adds METAR (Meteorological Aerodrome Report) parsing capabilities
- metar-taf-parser has no dependencies, so impact is small
2025-06-24 22:58:51 -04:00
Eddy G ca272de8bf Replace separate .js data files with server-side JSON injection
- Remove need to maintain duplicate .js data files alongside JSON sources
- Load JSON data once at server startup and inject into templates
- Dev and production modes use the same data sources

Removes:
- server/scripts/data/{travelcities,regionalcities,stations}.js
- gulp compressJsData task for bundling data files
2025-06-24 22:51:09 -04:00
Eddy G be41d66de9 Improve kiosk mode startup experience
- Pass query parameters to EJS template for kiosk mode detection
- Add kiosk class to body when enabled via query parameter
- Simplify kiosk mode CSS to hide all elements except main weather display
- Add null checks for progress object to prevent errors in kiosk mode
- Prevent navigation errors when no suitable displays are available
2025-06-24 22:30:16 -04:00
Matt Walsh 3d75384848 build tool cleanup 2025-06-16 16:00:16 -05:00
Matt Walsh e2e22517b6 fix webpack for new radar-worker 2025-06-13 22:27:36 -05:00
Matt Walsh 1dece10679 cache-busting for radar worker 2025-06-12 12:14:56 -05:00
Matt Walsh 974a061b44 clean up paths for server and server-dist, remove cors #96 2025-06-02 20:59:35 -05:00
Matt Walsh 1609ab3d38 radar host overrides 2025-05-23 22:14:48 -05:00
Matt Walsh 101d0ac9ea page delivery tweaks 2025-05-20 22:10:13 -05:00
Matt Walsh 834d68f9e3 expose invalidate gulp taks 2025-05-20 18:26:50 -05:00
Matt Walsh 5946ee495a initial data and graph 2025-05-15 16:04:57 -05:00