Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DashPilot

![Dashpilot header](./assets/dashpilot-header.png)
![DashPilot dash apps running in a Tesla](./banner.jpg)

Turn your phone into a real-time dashboard for your car.
DashPilot connects to your car, and provides a real-time dashboard right on your phone. It serves as a speedometer, shows the ACC speed you set, speed limit, blinkers, blind spots, and many more.
Expand Down
Binary file removed assets/dashpilot-header.png
Binary file not shown.
Binary file added banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions dash-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ Web apps get one string of storage, usually JSON.

## Adding a web app to the apps

1. `dash-apps/web-<id>/` with `index.html`, `preview.jpg` (landscape, ~2:1) and a `manifest.json`. `settings` lists the display settings your app uses, so the app only offers those:
1. `dash-apps/web-<id>/` with `index.html`, `preview.jpg` (landscape, ~2:1) and a `manifest.json`:
```json
{ "$schema": "../../docs/dashapp-manifest.schema.json", "manifestVersion": 1, "id": "<id>", "settings": ["useImperial", "darkMode"] }
{ "$schema": "../manifest.schema.json", "manifestVersion": 1, "id": "<id>", "settings": ["useImperial", "darkMode"] }
```
`id` is lowercase letters, digits and hyphens, matching the folder name. `settings` lists the display settings your app uses, so the app only offers those: `showPhoneBattery`, `showCarBattery`, `showOdometer`, `alwaysOnBlindSpotMonitor`, `useImperial`, `darkMode`, `renderQuality`, `darkModeBackgroundGray`.
2. Add `web-<id>` to `DEFAULT_FOLDERS` in `scripts/sync-to-android.sh` and `scripts/sync-to-ios.sh`.
3. Android: an entry in `availableDashboards` (`datamodel/dash/DashboardConfig.kt`) and a `dashboard_name_<id>` string.
4. iOS: an entry in `availableDashboards` (`Models/DashboardConfig.swift`), `<id>` in `localApps` in `UI/WebDashView.swift`, and a `preview_<id>.imageset` in `Assets.xcassets` (copy an existing one).
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dash-apps/web-ambient/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../../docs/dashapp-manifest.schema.json",
"$schema": "../manifest.schema.json",
"manifestVersion": 1,
"id": "ambient",
"settings": ["useImperial", "darkMode"]
Expand Down
2 changes: 1 addition & 1 deletion dash-apps/web-analog/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../../docs/dashapp-manifest.schema.json",
"$schema": "../manifest.schema.json",
"manifestVersion": 1,
"id": "analog",
"settings": ["useImperial", "darkMode"]
Expand Down
2 changes: 1 addition & 1 deletion dash-apps/web-compose/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../../docs/dashapp-manifest.schema.json",
"$schema": "../manifest.schema.json",
"manifestVersion": 1,
"id": "compose",
"settings": ["useImperial", "darkMode"]
Expand Down
2 changes: 1 addition & 1 deletion dash-apps/web-retro/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../../docs/dashapp-manifest.schema.json",
"$schema": "../manifest.schema.json",
"manifestVersion": 1,
"id": "retro",
"settings": ["useImperial", "darkMode"]
Expand Down
2 changes: 1 addition & 1 deletion dash-apps/web-vanilla/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../../docs/dashapp-manifest.schema.json",
"$schema": "../manifest.schema.json",
"manifestVersion": 1,
"id": "vanilla",
"settings": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-manifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const fs = require("node:fs");
const path = require("node:path");

const SCHEMA_PATH = path.join(__dirname, "..", "docs", "dashapp-manifest.schema.json");
const SCHEMA_PATH = path.join(__dirname, "..", "dash-apps", "manifest.schema.json");
const APPS_DIR = path.join(__dirname, "..", "dash-apps");

const ROOT_KEYS = new Set(["$schema", "manifestVersion", "id", "settings"]);
Expand Down
Loading