A Go + React application for home automation and room monitoring.
- 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.
- Go 1.21+
- Node.js & npm (for building the frontend)
Copy at2.example.yaml to at2.yaml and adjust the settings:
cp at2.example.yaml at2.yaml- Start the backend with the frontend in dev mode:
go run . -dev-frontend- The browser will open or navigate to
http://localhost:8080. Frontend changes will hot-reload.
- Build the application (this includes building the frontend and embedding it):
go generate ./...
go build -o temp-at- Run the binary:
./temp-atBuild 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-atSensitive 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_fileoidc.client_secret/oidc.client_secret_fileweb.jwt_secret/web.jwt_secret_file