Skip to content

Add Camping app: V2L dashboard for BYD Dolphin#2

Draft
wheregoes wants to merge 1 commit into
mainfrom
claude/camping-app-byd-dolphin-MNkuF
Draft

Add Camping app: V2L dashboard for BYD Dolphin#2
wheregoes wants to merge 1 commit into
mainfrom
claude/camping-app-byd-dolphin-MNkuF

Conversation

@wheregoes
Copy link
Copy Markdown
Owner

Summary

  • New full-screen V2L camping dashboard app with glass-morphism UI matching the Cabin app's visual style
  • Real-time discharge rate monitoring (SOC sampling with EMA smoothing), remaining time estimate, and configurable low-battery alarm
  • Door security alarm, AC quick controls (on/off, temperature), window controls (open/close all), wake-up alarm clock, and session logging with energy cost tracking
  • Foreground service persistence (START_STICKY + wake lock + RestarterJobService + BootReceiver) to survive BYD's auto-close
  • English and Portuguese (BR) localization

Details

15 Java source files including:

  • DischargeMonitor — samples SOC every 30s, computes watts via rolling window + EMA (alpha=0.3), estimates remaining time
  • AcController / WindowController — AC on/off/temp and window open/close via BYD CAN bus APIs
  • DoorAlarmManager / BatteryAlarmManager / WakeAlarmManager — audible alarms with snooze support
  • SessionLogger — periodic logging + summary with duration, kWh consumed, min/max temp, cost
  • CampingService — foreground service orchestrating all monitors and alarms
  • MainActivity — full-screen dark-mode dashboard with aurora backdrop and glass panels
  • SettingsActivity — battery threshold, energy cost, temp unit (°C/°F), screen brightness

Resources: aurora dark backdrop, ~50 glass-morphism drawables, battery bar, alarm overlay, control buttons, vector icons

Test plan

  • Build with cd apps/camping && bash build.sh (requires Android SDK build-tools locally)
  • Install via USB or ADB, verify app launches in dark mode with glass UI
  • Verify battery % and temperature display from CAN bus
  • Run V2L load, confirm discharge rate stabilizes after ~2 min
  • Test low battery alarm (set threshold near current SOC)
  • Test door alarm: arm, open door, verify audible + visual alert
  • Test AC toggle and temperature adjustment
  • Test window controls (carefully, one window first)
  • Test wake alarm (set 1 min ahead)
  • Verify session summary on exit (duration, kWh, cost)
  • Verify foreground service persists after screen off / app switch

https://claude.ai/code/session_015F2x24GBVxbSQvaH33o6N2


Generated by Claude Code

Full-screen dark-mode camping dashboard with real-time V2L discharge
monitoring, battery remaining time estimate, configurable low-battery
alarm, door security alarm, AC quick controls, window controls,
wake-up alarm clock, session logging with energy cost tracking,
and adjustable screen brightness for nighttime use.

Reuses Cabin app's glass-morphism UI, aurora animations, BYD API
permission bypass, and foreground service persistence pattern.

https://claude.ai/code/session_015F2x24GBVxbSQvaH33o6N2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants