docs: add profile and car customization guide
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -114,6 +114,34 @@ in [deploy/](./deploy). For a clean-install walkthrough on a fresh Pi, use
|
||||
|
||||
For the remote server (receives trip logs + dashcam uploads), see [server/README.md](./server/README.md).
|
||||
|
||||
## Customizing username and profile picture
|
||||
|
||||
The top-right username and avatar in the local app are currently code-configured.
|
||||
|
||||
### Change username
|
||||
|
||||
Edit [modules/app_account.py](./modules/app_account.py):
|
||||
|
||||
```python
|
||||
self.name = "quoije"
|
||||
```
|
||||
|
||||
Set it to your preferred name, then restart the app/service.
|
||||
|
||||
> Important: `account.name` is also used in the local SQLite filename (`db/sql/<name>_<car>.db` via [modules/app_sql.py](./modules/app_sql.py)).
|
||||
> If you already have trip data and change the name, the app will create a new DB file unless you rename/migrate the existing one.
|
||||
|
||||
### Change profile picture
|
||||
|
||||
Current avatar is hardcoded in [templates/base.html](./templates/base.html) to:
|
||||
|
||||
```html
|
||||
src="{{ url_for('static', filename='img/yaris.png') }}"
|
||||
```
|
||||
|
||||
Simplest option: replace [static/img/yaris.png](./static/img/yaris.png) with your image (same filename/path).
|
||||
Alternative: edit the `filename='img/yaris.png'` value in [templates/base.html](./templates/base.html).
|
||||
|
||||
## Project status
|
||||
|
||||
Phases 1–24.7 are complete. The system is fully built and audited, ready for the Phase 25 real-vehicle test:
|
||||
|
||||
Reference in New Issue
Block a user