Skip to content

Instantly share code, notes, and snippets.

@nrandell
Created December 2, 2022 16:20
Show Gist options
  • Save nrandell/49cc015cd3443632dbd066741f56e5d1 to your computer and use it in GitHub Desktop.
Save nrandell/49cc015cd3443632dbd066741f56e5d1 to your computer and use it in GitHub Desktop.
#! /bin/bash
IMAGE=hertzg/rtl_433:latest
NAME=rtl433-docker
docker pull $IMAGE
docker stop $NAME
docker rm $NAME
docker run \
--detach --restart=always \
--name $NAME \
--device /dev/bus/usb/001/004 \
$IMAGE \
-F "mqtt://server.home:1883,retain=1,states=nick/states,events=nick/events[/model]/[id:0]"
docker logs -f $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment