Skip to content

Instantly share code, notes, and snippets.

@psorobka
Created July 12, 2018 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psorobka/72b9c683b02f7e1a38a647d3f92cbe03 to your computer and use it in GitHub Desktop.
Save psorobka/72b9c683b02f7e1a38a647d3f92cbe03 to your computer and use it in GitHub Desktop.
[Unit]
Description=RTL 433
After=network-online.target
[Service]
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rtl_433
Type=simple
ExecStart=/bin/bash -c "/usr/local/bin/rtl_433 -G -U -F json | tee >(exec logger -t rtl_433) | mosquitto_pub -h router -t rtl_433 -l -i rtl_433 -d"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment