-
Notifications
You must be signed in to change notification settings - Fork 396
Add React UI with real-time music sync progress #1012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main-dev
Are you sure you want to change the base?
Conversation
Adds a new React-based web interface accessible at /react/ that provides a modern, responsive dashboard for TeslaUSB. Key features: - Real-time music sync progress with percentage, speed, and ETA - Device model display in sidebar (Pi, Radxa, etc.) - Per-drive storage info (TeslaCam, Music, LightShow, Boombox) - Improved temperature sensor support for non-Pi devices - Mobile-responsive design with ~58KB JS footprint New files: - teslausb-www-react/: Full source code and pre-built dist/ - cgi-bin/storage.sh: Per-drive storage API endpoint - cgi-bin/music_sync_progress.sh: Real-time rsync progress endpoint Modified: - configure-web.sh: Install React UI from local files - copy-music.sh: Add progress2 to rsync for real-time output - status.sh: Add device_model field and multi-device temp support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Awesome! I was thinking about creating a new React UI myself, but you beat me to it :) |
|
@oaquique I do see a recurring error in de console: |
|
Thanks for the feedback @KODIKAS-NL! 🙏 I've pushed a fix that addresses both issues: Relative paths: Changed Vite's base path to 416 errors: Added a HEAD request check before making range requests during log polling. This checks the file size first and only makes a range request when there's actually new content, eliminating those console errors. Regarding the Tesla SEI explorer / dashcam-mp4.js for metadata overlays - that's a great idea for a future enhancement! Would be cool to show event timestamps, location, and other metadata on the video player. |
Note that that code from Tesla does not specify any license. |
Agreed, without clear licensing terms, I wouldn't include that code. |
- Fix diagnostics generation by properly waiting for CGI response body - Add timestamp selector for all video clip types (Sentry, Saved, Recent) - Fix "No recordings" issue when switching between clip categories - Remove unnecessary 2-second delay in diagnostics loading - Improve CSS for video selector bar styling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add cgi-bin/cam_sync_progress.sh to track CAM archive progress - Add useCamSyncProgress hook for polling CAM sync progress - Refactor SyncStatus.jsx for consistent progress display - Fix "0/X files" showing without actual progress - Fix stale progress text persisting after sync completes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update: TeslaCam Archive Progress TrackingThis update adds consistent progress display for both TeslaCam and Music sync operations. Changes
Fixes
|
Summary
This PR adds a new React-based web interface accessible at
/react/that provides a modern, responsive dashboard for TeslaUSB. All code is embedded directly in this repository.Key Features
Files Changed
New:
teslausb-www-react/- Full source code (Preact/Vite) and pre-builtdist/foldercgi-bin/storage.sh- API endpoint for per-drive storage informationcgi-bin/music_sync_progress.sh- API endpoint for real-time rsync progressModified:
setup/pi/configure-web.sh- Installs React UI from localdist/folderrun/cifs_archive/copy-music.sh- Addsprogress2to rsync for real-time progress outputcgi-bin/status.sh- Addsdevice_modelfield and improves temperature detectionAccess Points
After installation, users will have three UI options:
//new//react/Screenshots
The UI includes:
Test plan
/react/