denysvitali / tesla-sentry-viewer-frontend

A web interface to view your Tesla Sentry Mode videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tesla-sentry-viewer-frontend

A web interface to see your Tesla Sentry Mode recordings on your computer.

Viewing a single clip

Getting Started

This project only takes care of being the frontend to tesla-sentry-viewer.

To be able to see your Sentry clips on this web interface, you need to start the backend (tesla-sentry-viewer). There are multiple ways of doing that, but the easiest one is to use the pre-packaged Docker Images with docker-compose, so that you can run both the frontend and the backend at the same time.

Using Docker-Compose

Requirements

  • Docker
  • docker-compose

Starting the frontend

git clone https://github.com/denysvitali/tesla-sentry-viewer-frontend
cd tesla-sentry-viewer-frontend
docker-compose up -d

Manually

Requirements

Starting the backend

Start tesla-sentry-viewer:

tesla-sentry-viewer /run/media/$USER/TESLADRIVE/TeslaCam/SentryClips -l 0.0.0.0:8150

Confirm that the backend is working:

curl -v http://127.0.0.1:8150/api/v1/clips | jq .

You should now see a list of clips:

{
  "events": [
    "2022-06-18_12-00-00",
    "2022-06-18_12-05-33"
  ]
}

Starting the frontend

yarn install
# Generate the src/assets/config.json based on your environment variables:
make config
# Start the web app and listen on the default address, if available http://127.0.0.1:3000
yarn run dev

Visit http://127.0.0.1:3000 and confirm that by visiting "Clips" you can see your clips.

About

A web interface to view your Tesla Sentry Mode videos


Languages

Language:Vue 72.6%Language:TypeScript 14.7%Language:Makefile 3.9%Language:Dockerfile 2.8%Language:HTML 1.7%Language:JavaScript 1.7%Language:Shell 1.2%Language:CSS 1.0%Language:Jinja 0.4%