Reuse the Frigate integration devcontainer
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
---
|
||||
default_config:
|
||||
|
||||
logger:
|
||||
default: error
|
||||
logs:
|
||||
custom_components.frigate: debug
|
||||
homeassistant.components.mqtt: error
|
||||
|
||||
downloader:
|
||||
download_dir: www
|
||||
|
||||
homeassistant:
|
||||
name: Home
|
||||
latitude: 0
|
||||
longitude: 0
|
||||
elevation: 0
|
||||
unit_system: metric
|
||||
currency: USD
|
||||
time_zone: 'America/Los_Angeles'
|
||||
|
||||
demo:
|
||||
|
||||
lovelace:
|
||||
mode: yaml
|
||||
resources:
|
||||
- url: http://localhost:5001/frigate-hass-card.js
|
||||
type: module
|
||||
@@ -0,0 +1,15 @@
|
||||
views:
|
||||
- cards:
|
||||
- type: custom:frigate-card
|
||||
name: Frigate Card with Frigate Camera
|
||||
cameras:
|
||||
- camera_entity: camera.demo
|
||||
live_provider: frigate-jsmpeg
|
||||
id: camera_demo_jsmpeg
|
||||
- camera_entity: camera.demo
|
||||
live_provider: ha
|
||||
id: camera_demo_ha
|
||||
- type: custom:frigate-card
|
||||
name: Frigate Card with non-Frigate Camera
|
||||
cameras:
|
||||
- camera_entity: camera.demo_camera
|
||||
@@ -1,7 +0,0 @@
|
||||
default_config:
|
||||
lovelace:
|
||||
mode: yaml
|
||||
resources:
|
||||
- url: http://127.0.0.1:5000/frigate-hass-card.js
|
||||
type: module
|
||||
demo:
|
||||
@@ -1,17 +1,16 @@
|
||||
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
|
||||
{
|
||||
"image": "ghcr.io/ludeeus/devcontainer/generic:latest",
|
||||
"forwardPorts": [5000, 8123],
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "dev",
|
||||
"workspaceFolder": "/workspace",
|
||||
"shutdownAction": "stopCompose",
|
||||
"portsAttributes": {
|
||||
"5000": {
|
||||
"5001": {
|
||||
"label": "Rollup",
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
"8123": {
|
||||
"label": "Home Assistant",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"initializeCommand": "git submodule update --init",
|
||||
"postCreateCommand": "yarn install",
|
||||
"extensions": [
|
||||
"github.vscode-pull-request-github",
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
version: '3'
|
||||
services:
|
||||
dev:
|
||||
user: node
|
||||
image: mcr.microsoft.com/vscode/devcontainers/javascript-node:0-16
|
||||
ports:
|
||||
# Rollup
|
||||
- 5001:5001
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
command: [sleep, infinity]
|
||||
hass:
|
||||
extends:
|
||||
file: ./frigate-hass-integration/docker-compose.yml
|
||||
service: hass
|
||||
volumes:
|
||||
- ./config/ui-lovelace.yaml:/config/ui-lovelace.yaml:ro
|
||||
- ./config/configuration.yaml:/config/configuration.yaml:ro
|
||||
frigate:
|
||||
extends:
|
||||
file: ./frigate-hass-integration/docker-compose.yml
|
||||
service: frigate
|
||||
mqtt:
|
||||
extends:
|
||||
file: ./frigate-hass-integration/docker-compose.yml
|
||||
service: mqtt
|
||||
Submodule
+1
Submodule .devcontainer/frigate-hass-integration added at 051381644b
@@ -1,6 +0,0 @@
|
||||
views:
|
||||
- cards:
|
||||
- type: custom:frigate-card
|
||||
name: Frigate Card Development
|
||||
cameras:
|
||||
- camera_entity: camera.demo_camera
|
||||
Reference in New Issue
Block a user