Scripts for remote logging data from ratgdo
- Usage:
./ratgdo-logger.sh <RATGDO HOSTNAME OR IP> [OPTIONAL OUTPUT LOG FILE] - To capture to a file append the optional
[OPTIONAL OUTPUT LOG FILE]. - Optionally, you can specify the ratgdo hostname/ip and output log file by
setting the environment variables
HOSTandLOG_FILE, respectively.
Example:
$ ./ratgdo-logger.sh 10.0.1.191
Pinging 10.0.1.191...
✅ Host 10.0.1.191 is reachable.
Checking firmware type...
✅ ratgdo-esphome detected
2025-08-01T12:20:03Z data: [D][ratgdo_secplus2:322]: Received packet: : [55 01 00 94 3F 38 DA FC 72 BE FF 91 12 E9 D0 02 A9 74 9C]
2025-08-01T12:20:03Z data: [D][ratgdo:120]: Door state=CLOSED
2025-08-01T12:20:03Z data: [D][ratgdo:229]: Light state=OFF
2025-08-01T12:20:03Z data: [D][ratgdo:235]: Lock state=UNLOCKED
2025-08-01T12:20:03Z data: [D][ratgdo:214]: Learn state=INACTIVE- Usage:
.\ratgdo-logger.ps1 -HostName <RATGDO HOSTNAME OR IP> - To capture to a file append the command with:
> my.log
Launch background log collector:
docker run -d -e HOST="<RATGDO HOSTNAME OR IP>" \
-v ratgdo-log:/log \
--name ratgdo-logger \
--restart unless-stopped \
ghcr.io/ratgdo/remote-logging:latestShow logs:
# add -f for live logs
docker logs ratgdo-logger
# or
docker run --rm -v ratgdo-log:/l busybox cat /l/ratgdo.logStop collection:
docker stop ratgdo-loggerCompose/stack example
version: "3.8"
services:
ratgdo-logger:
image: ghcr.io/ratgdo/remote-logging:latest
environment:
HOST: "<RATGDO HOSTNAME OR IP>"
volumes:
- ratgdo-log:/log
restart: unless-stopped
volumes:
ratgdo-log: