Skip to content

A microservice for fetching camera snapshots from frigate every 5 minutes and displaying them on a webpage

Notifications You must be signed in to change notification settings

HackerspaceKRK/temp-at

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temp-at

A Go + React application for home automation and room monitoring.

Features

  • Room Monitoring: View room states, camera feeds, and history.
  • Device Control: Control MQTT devices via the web interface.
  • Authentication: OIDC integration for secure access.
  • Localization: Support for multiple languages.

Getting Started

Prerequisites

  • Go 1.21+
  • Node.js & npm (for building the frontend)

Configuration

Copy at2.example.yaml to at2.yaml and adjust the settings:

cp at2.example.yaml at2.yaml

Running Locally (Dev Mode)

  1. Start the backend with the frontend in dev mode:
go run . -dev-frontend
  1. The browser will open or navigate to http://localhost:8080. Frontend changes will hot-reload.

Building for Production

  1. Build the application (this includes building the frontend and embedding it):
go generate ./...
go build -o temp-at
  1. Run the binary:
./temp-at

Docker

Build the container:

docker build -t temp-at .

Run the container:

docker run -v $(pwd)/at2.yaml:/at2.yaml -v $(pwd)/data:/data -p 8080:8080 temp-at

Secrets

Sensitive configuration (passwords, secrets) can be provided directly in at2.yaml or loaded from files using the *_file config options. This is useful for Docker Swarm or Kubernetes secrets.

  • mqtt.password / mqtt.password_file
  • oidc.client_secret / oidc.client_secret_file
  • web.jwt_secret / web.jwt_secret_file

About

A microservice for fetching camera snapshots from frigate every 5 minutes and displaying them on a webpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages