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>
This commit is contained in:
1 parent
b9e6cad190
commit
b9e2b463f5
6 files changed
+303
No files matched your search
@@ -14,6 +14,9 @@ services:
|
||||
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY:-}
|
||||
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY:-}
|
||||
- VAPID_SUBJECT=${VAPID_SUBJECT:-mailto:nate@necloud.us}
|
||||
# Ambient Weather personal station integration
|
||||
- AMBIENT_API_KEY=${AMBIENT_API_KEY:-}
|
||||
- AMBIENT_APP_KEY=${AMBIENT_APP_KEY:-}
|
||||
# Optional: how often to poll NWS alerts (ms). Default: 300000 (5 min)
|
||||
# - ALERT_POLL_INTERVAL_MS=300000
|
||||
volumes:
|
||||
|
||||
Reference in new issue
Block a user