From 523ba3024be58b491cbaea6181fb286a3169c5fd Mon Sep 17 00:00:00 2001 From: Nox Date: Wed, 25 Mar 2026 11:42:55 +0100 Subject: [PATCH] feat: initial tuya-ipc-terminal stack --- Dockerfile | 14 ++++++++++++++ README.md | 23 +++++++++++++++++++++++ docker-compose.yml | 18 ++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0301e3e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.22-alpine AS builder +RUN apk add --no-cache git bash +WORKDIR /app +RUN git clone https://github.com/seydx/tuya-ipc-terminal.git . +RUN go mod download && go build -o tuya-ipc-terminal . + +FROM alpine:3.19 +RUN apk add --no-cache ca-certificates tzdata +WORKDIR /app +COPY --from=builder /app/tuya-ipc-terminal . +VOLUME ["/app/.tuya-data"] +EXPOSE 8554 +ENTRYPOINT ["./tuya-ipc-terminal"] +CMD ["rtsp", "start", "--port", "8554"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8623aac --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# tuya-ipc — LSC Smart Connect RTSP Bridge + +Bridge WebRTC → RTSP pour caméras LSC Smart Connect (Tuya) via [tuya-ipc-terminal](https://github.com/seydx/tuya-ipc-terminal). + +## Auth (une seule fois) + +```bash +docker exec -it tuya-ipc ./tuya-ipc-terminal auth add eu-central email@example.com --password +# Code pays France : 33 +``` + +## Caméras + +```bash +docker exec tuya-ipc ./tuya-ipc-terminal cameras refresh +docker exec tuya-ipc ./tuya-ipc-terminal cameras list +docker exec tuya-ipc ./tuya-ipc-terminal rtsp list-endpoints +``` + +## URLs RTSP + +- HD : `rtsp://192.168.1.150:8554/NomCamera` +- SD : `rtsp://192.168.1.150:8554/NomCamera/sd` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c74224c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +services: + tuya-ipc: + build: . + image: tuya-ipc:latest + container_name: tuya-ipc + restart: always + ports: + - "8554:8554" + volumes: + - /share/ZFS24_DATA/docker/tuya-ipc/data:/app/.tuya-data + environment: + - TZ=Europe/Paris + networks: + - swag_lan + +networks: + swag_lan: + external: true