A small docker compose setup to run a local webhook on a raspberry pi which is connected and made public securely via webhookrelay. As soon as the webhook is called the TV connected via hdmi will receive a "on" signal and be switched on.
It was built to automatically switch on a TV from standby mode via webhooks.
Run setup.sh
- this will
- Install docker
- Install docker-compose
- Create a
.env
file
If you already have docker or docker compose installed you can skip this step and run
cp .env.template .env
to create your .env
file manually
Now you need to fill in the env variables based on your webhookrelay data
BUCKETS
: Name of your bucketRELAY_KEY
: Key of your tokenRELAY_SECRET
: Secret of your token
As soon as the setup is done you should be able to start the application by running
docker-compose up
If you want to run it on startup of your raspberry pi just add the following line to your crontab by running sudo crontab -e
@reboot cd /path/to/your/repo/webhook-hdmi-tv-control && docker-compose up -d &