Commit Graph
59 Commits
Author SHA1 Message Date
Nate EmmertandClaude Sonnet 4.6 1b206df92c Add Station and Dashboard links from main app
Tagline in header links to /conditions and /dashboard on desktop.
Settings tab adds a Station section with both links for mobile access.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:55:46 -04:00
Nate EmmertandClaude Sonnet 4.6 9ec31bfeb6 Add link back to main app in dashboard header
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:53:50 -04:00
Nate EmmertandClaude Sonnet 4.6 489f48e1ba Link station name back to main app on conditions page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:53:27 -04:00
Nate EmmertandClaude Sonnet 4.6 a4b5f08cd2 Set station name to Genesis 8:22 on public conditions page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:43:58 -04:00
Nate EmmertandClaude Sonnet 4.6 39d908b0fa Redesign public conditions page with radar-sweep hero and instrument layout
Full-bleed hero with animated radar sweep ring, dot-grid background, and a
giant temperature number that shifts color by value (ice blue → amber → red).
Canvas compass with N/S/E/W ticks and wind arrow in the Wind section.
Atmosphere, Wind, and Precipitation+Solar sections with Barlow Condensed data
tiles. Full light/dark theme support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:41:55 -04:00
Nate EmmertandClaude Sonnet 4.6 7665146b44 Add dashboard analytics, public conditions page, and station data features
- Dashboard: account-protected station data recorder with PBKDF2 auth and
  HMAC-signed sessions; Chart.js time-series charts with 1h–3y range selectors;
  wind rose canvas; auto-refresh every 2 min; 1-min polling cron
- Analytics endpoints: all-time records, rain totals (7d/30d/YTD), heating/cooling
  degree days, CSV export, year-over-year overlay, hourly anomaly detection
- Dashboard UI: pressure trend arrow, rain tile row, HDD/CDD tiles, anomaly tile,
  YoY toggle, collapsible records panel, CSV export, backfill progress bar
- Public conditions page at /conditions (no auth) with auto-refresh every 2 min
- Rain rate push alert via web-push and ntfy when threshold exceeded
- Station data stored as per-day JSONL files; backfill imports up to 1yr from Ambient

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:26:51 -04:00
Nate EmmertandClaude Sonnet 4.6 46e927370a Add Ambient historical data backfill to dashboard
- POST /api/station/backfill: pages backward through Ambient's historical API
  at 1 req/sec, deduplicates against existing JSONL records, writes to daily files
- GET /api/station/backfill/status: polls live progress (days done, readings inserted)
- Dashboard settings panel: day-range selector (7d/30d/90d/180d/1y), Import button,
  progress bar with live count; auto-reloads charts when complete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:02:27 -04:00
Nate EmmertandClaude Sonnet 4.6 2501842083 Auto-refresh charts every 2 min; show next refresh time in status line
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 13:52:21 -04:00
Nate EmmertandClaude Sonnet 4.6 7ba246a628 Fix stale poll interval message (10 min → 1 min)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 13:43:12 -04:00
Nate EmmertandClaude Sonnet 4.6 4aca8df808 Add API key settings panel to dashboard
- Station API Keys section at bottom of dashboard (auto-opens if unconfigured)
- Shows configured/missing status on load
- Fields for Ambient API Key and Application Key; saves via existing endpoint
- POST /api/ambient-config now requires dashboard auth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 13:39:27 -04:00
Nate EmmertandClaude Sonnet 4.6 fa4895a741 Add station dashboard with auth and historical data recording
- Protected /dashboard route with PBKDF2 password + HMAC-signed cookies
- First-run setup flow at /dashboard/setup
- Records Ambient station readings to daily JSONL files in app/data/station/
- Deduplicates on dateutc so 1-min polling never writes duplicate rows
- Dashboard charts: temp, humidity/dew, wind+gusts, wind rose, pressure,
  rain rate, rain accumulation, UV, solar radiation
- History range selector: 1h / 6h / 24h / 7d / 30d / 90d / 1y / 2y / 3y
- Auto-downsamples to 720 points for long ranges
- Cron interval changed from 10 min to 1 min (with dedup guard)
- app/data/ added to .gitignore (contains keys and session secret)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 13:32:18 -04:00
Nate EmmertandClaude Sonnet 4.6 fdc374b8bd Use Ambient station readings for wind/temp threshold alerts in cron
When station keys are configured and the last reading is < 15 min old,
the alert cron uses windgustmph and tempf from the station instead of
Open-Meteo model values. AQI still comes from Open-Meteo (no station
equivalent). Alert bodies now include "(station)" or "(forecast model)"
so the source is visible in the notification.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 12:19:29 -04:00
Nate EmmertandClaude Sonnet 4.6 9620c1b0cd Add Ambient station primary source toggle; swap location name to station
When configured, a new "Use as primary source" toggle appears in Settings
under Ambient Weather Station (defaults on). When on, the location header
shows the station name and "Ambient Weather Station" subtitle instead of the
city; the hero badge is hidden as redundant. Toggling off restores the city
name immediately and re-shows the hero badge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 12:13:00 -04:00
nmemmert 2d2e36d9fa Merge pull request #4 from nmemmert/claude/ambient-station-overlay-m8dh80
Use station data for current conditions; persist keys server-side
2026-08-19 11:56:20 -04:00
Claude 0005698264 Use station data for current conditions; persist keys server-side
Station overlay:
- When Ambient Weather station data is present and fresh (<15 min),
  its readings replace the model's current conditions: temp, feels-like,
  humidity, dewpoint, wind speed/direction, gusts, pressure (inHg→hPa),
  UV index, rain today, wind peek summary, and data-panel readouts
- A small "📡 My Station" badge appears in the hero when active
- applyStationOverlay() is called at the end of renderWeather (instant
  if station data already loaded) and again whenever station data
  refreshes (so the display stays live every 60 s)
- Hourly/daily forecasts continue to use Open-Meteo

Server-side key persistence:
- POST /api/ambient-config saves keys to data/ambient-config.json
  (same persistent volume as VAPID and subscriptions)
- GET /api/ambient-config returns {configured: bool} without exposing keys
- /api/ambient checks query params → saved config → env vars in order
- Settings Save button posts keys to server after a successful test;
  confirms "saved for all devices" in the status line
- On page load, if no localStorage keys but server is configured,
  the station loads automatically on any device
2026-08-19 15:53:10 +00:00
nmemmertandClaude b9e2b463f5 Add Ambient Weather personal station integration
* Add Ambient Weather personal station integration

Fetches live data from the user's Ambient Weather station via their
REST API and displays it as a "My Station" card in the conditions tab.

- server.js: add /api/ambient endpoint with 60s cache using
  AMBIENT_API_KEY and AMBIENT_APP_KEY env vars
- docker-compose.yml: expose AMBIENT_API_KEY/AMBIENT_APP_KEY env vars
- index.html: add collapsible "My Station" drawer to conditions tab
  showing temp, humidity, wind, gusts, daily rain, pressure, UV,
  solar radiation, and indoor readings
- app.js: add fetchAmbientStation() and renderAmbientStation(),
  auto-refresh every 60s, peek text summary in drawer header
- style.css: station drawer styles
- .gitignore: add .env so API keys stay off git

Co-Authored-By: Claude <noreply@anthropic.com>

* Move Ambient Weather keys to Settings panel

Users can now enter their API Key and Application Key directly in the
Settings tab under "Ambient Weather Station". Keys are saved to
localStorage and sent per-request to the server proxy.

- index.html: add API Key + Application Key inputs with Save button
- app.js: persist keys in localStorage, populate inputs on load,
  wire Save button (validates by testing the connection), pass keys
  as query params in fetchAmbientStation and its auto-refresh loop
- server.js: accept apiKey/appKey from query params with env var
  fallback; cache keyed per-user so multiple callers don't collide

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-19 11:35:16 -04:00
Nate EmmertandClaude Sonnet 4.6 b9e6cad190 Add CSS-based fullscreen for Map tab; fix state desync bug
- Add fullscreen toggle button (⛶/✕) to Map tab controls row
- CSS class `map-fs` hides header/nav and expands map to fill screen
- Drop unreliable requestFullscreen() API (blocked on iOS/PWA) in favor of pure CSS approach
- Fix button state desync: syncBtn() runs on init so stale ✕ state can't persist across reloads
- Shrink embedded radar height on mobile (220px) and tune dvh calculations for safe-area insets

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-17 09:44:33 -04:00
nmemmert 48ae797520 Merge pull request #2 from nmemmert/claude/pwa-alerts-radar-swipe-h9xik2 2026-08-16 21:25:03 -04:00
Claude 4d92739df4 Fix alert dedup across reloads, add radar fullscreen, fix swipe conflicts
- Persist alertIdsSeen to localStorage so already-seen alerts don't
  re-notify every time the PWA is opened; cap stored IDs at 200 entries
- Use serviceWorker.showNotification() for alert notifications so they
  work when the app is backgrounded, with fallback to new Notification()
- Add ⛶ fullscreen button to radar embed; uses Fullscreen API and
  resizes the MapLibre canvas after toggle
- Fix swipe-to-change-tab: block gesture when touch starts on a map,
  hourly scroll row, or radar timeline; also require the gesture to be
  more horizontal than vertical (dx > dy*1.5) to avoid conflict with
  vertical scrolling
2026-08-17 01:10:09 +00:00
Nate EmmertandClaude Sonnet 4.6 a25864d9ed Upgrade maps to MapLibre GL JS; compact header; move search to settings
- Replace Leaflet with MapLibre GL JS v4.7.1 across all map instances
- CARTO dark/light and Esri satellite raster basemaps (no API key)
- All overlays (hurricane, wildfire, SPC, wind arrows) ported to GeoJSON sources/layers
- AQI, alert, temp, sun/moon markers via maplibregl.Marker with custom HTML
- Radar animation pre-loads all frames on load for smoother playback
- Compact loc-header: tighter padding and font sizes, all info preserved
- Search bar moved from header to Settings tab under Location section
- Service worker bumped to weather-v7

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-14 11:04:32 -04:00
Nate Emmert 1863f6784b Fix XSS, validation, and CSS regressions; refactor proxy retry logic
- Sanitize geocode suggestion rendering to prevent XSS
- Add lat/lon validation and cache eviction to weather proxy endpoints
- Extract shared fetchWithRetry helper, dedupe retry/timeout logic
- Stop leaking upstream error details to clients
- Fix radar provider metadata and drop dead nowcast field
- Fix missing --surface-radius-sm var and duplicate/conflicting CSS rules
2026-06-15 08:51:18 -04:00
Nate Emmert 49b54e0fe4 Merge branch 'fix/network-main-parity' into main (resolve conflicts) 2026-03-17 14:21:49 -04:00
Nate Emmert 950e2708ab Enhance mobile UX: learn guide, alerts actions, and shareable weather cards 2026-03-17 14:21:32 -04:00
Nate Emmert 8f9a2d1c02 Unify map tab with feature toggles and shared radar overlay 2026-03-17 12:30:18 -04:00
Nate Emmert 98c45bb26f WIP: Begin unified map refactor - HTML structure, storage, CSS, state updates 2026-03-17 12:25:40 -04:00
Nate Emmert f4505b5650 Increase maps height to match radar and improve wind arrow visibility 2026-03-17 12:04:15 -04:00
Nate Emmert 6c7e2f7235 Increase RainViewer max zoom to 17 for better detail 2026-03-17 12:01:59 -04:00
Nate Emmert 14995987ae Stabilize SW and cache headers to match backup behavior 2026-03-17 11:36:12 -04:00
Nate 0d6d3985cc App title black text with white halo shadow 2026-03-16 15:29:09 -04:00
Nate 36605d8c90 Always-visible app title: white text + drop shadow on masthead h1/tagline 2026-03-16 15:24:46 -04:00
Nate ea20d31217 Fix persistent caching: no-store/no-cache headers, SW v4, versioned asset URLs 2026-03-16 15:19:54 -04:00
Nate 86914a7329 Rename app to NeCloud Weather and add iPhone/PWA PNG icons 2026-03-16 15:08:29 -04:00
Nate 37b751729e Add dynamic weather-based background themes with day/night variants 2026-03-16 15:05:38 -04:00
Nate 359e76bccb Add maps fullscreen and enforce single-line search controls 2026-03-16 15:03:27 -04:00
Nate 5003d3ec09 Fix stale UI cache with network-first app shell and forced SW updates 2026-03-16 14:57:59 -04:00
Nate defdfe2200 Refine mobile search bar to single-line compact controls 2026-03-16 14:49:18 -04:00
Nate 8ca6fa2fd0 Merge mobile-first redesign into main 2026-03-16 14:41:58 -04:00
Nate 1786bc8985 Fix persistent bottom nav by moving tabs outside sticky header 2026-03-16 14:38:36 -04:00
Nate cd45f0bf5e Keep bottom menu fixed during scroll across breakpoints 2026-03-16 14:34:17 -04:00
Nate 162969c2a2 Rebuild UI as true mobile-app layout with larger scale and emoji nav icons 2026-03-16 14:29:27 -04:00
Nate 78c7e8a9a9 Complete mobile-first UI overhaul with larger typography and touch-first layout 2026-03-16 14:22:41 -04:00
Nate 9bf83d44aa Add tab icons, fix mobile nav overflow, and soften card styling 2026-03-16 14:15:10 -04:00
Nate 11f2769d7f Tune mobile-first redesign for iPhone Safari and narrow Android screens 2026-03-16 14:09:48 -04:00
Nate 04ef97d675 Mobile-first UI redesign with bottom nav, sticky search, and card layout 2026-03-16 14:08:42 -04:00
Nate fedefb3616 Overhaul phone layout: stacked controls, 2-col stats, compact forecast rows 2026-03-16 14:03:06 -04:00
Nate 2d3f4f5960 Create writable /app/data in image for push subscription persistence 2026-03-16 13:30:02 -04:00
Nate 722e278f8e Improve mobile responsiveness for search, tabs, radar controls, and dense rows 2026-03-16 13:24:57 -04:00
Nate bb1a8db0f9 Persist push subscriptions to disk, add background NWS alert poller 2026-03-16 13:16:32 -04:00
Nate 52c96225b9 Add real lightning overlay, push notifications, map controls, hourly summary, favorites enhancements, API resilience, UI polish 2026-03-16 13:10:34 -04:00
Nate bd3e1e9605 Improve auto-detect place naming and add expandable 7-day forecast 2026-03-16 12:52:43 -04:00