- Electron main process subscribes to Frigate's MQTT topics (frigate/<camera>/person and frigate/events) directly via mqtt.js, bypassing the broken HA MQTT integration - Watched cameras: Front_Porch, FPE, Porch_Downstairs, Driveway_door - On person detection, exits photo-frame idle and shows full-screen camera feed for 30 seconds - Removed HA entity-based person detection code (entityToCameraName, personDetectionEntities config dependency) - Deleted unused useFrigateDetection HTTP polling hook (superseded)
74 lines
2.1 KiB
JSON
Executable File
74 lines
2.1 KiB
JSON
Executable File
{
|
|
"name": "imperial-command-center",
|
|
"version": "1.0.0",
|
|
"description": "Full-screen touchscreen kiosk dashboard for Home Assistant with Star Wars Imperial theme",
|
|
"main": "dist-electron/main.js",
|
|
"author": "Homelab",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build && tsc -p tsconfig.electron.json",
|
|
"build:web": "./node_modules/.bin/tsc && ./node_modules/.bin/vite build",
|
|
"preview": "vite preview",
|
|
"electron:dev": "concurrently \"vite\" \"wait-on http://localhost:5173 && electron .\"",
|
|
"electron:build": "npm run build && electron-builder",
|
|
"build:linux": "npm run build && electron-builder --linux AppImage",
|
|
"build:win": "npm run build && electron-builder --win nsis",
|
|
"lint": "eslint src --ext ts,tsx",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
|
"@tensorflow/tfjs": "^4.17.0",
|
|
"date-fns": "^3.3.1",
|
|
"electron-store": "^8.1.0",
|
|
"googleapis": "^131.0.0",
|
|
"home-assistant-js-websocket": "^9.4.0",
|
|
"mqtt": "^5.15.1",
|
|
"zustand": "^4.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.0",
|
|
"@types/react": "^18.2.48",
|
|
"@types/react-dom": "^18.2.18",
|
|
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
"@typescript-eslint/parser": "^6.19.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.17",
|
|
"concurrently": "^8.2.2",
|
|
"electron": "^28.2.0",
|
|
"electron-builder": "^24.9.1",
|
|
"eslint": "^8.56.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"postcss": "^8.4.33",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"tailwindcss": "^3.4.1",
|
|
"typescript": "^5.3.3",
|
|
"vite": "^5.0.12",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"build": {
|
|
"appId": "com.homelab.imperial-command-center",
|
|
"productName": "Imperial Command Center",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"dist-electron/**/*"
|
|
],
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"category": "Utility"
|
|
},
|
|
"win": {
|
|
"target": "nsis"
|
|
},
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": true
|
|
}
|
|
}
|
|
}
|