Call a webhook whenever a cast device is casted to! 🔊🔗💃
I use this automatically switch the input of my audio receiver (using ifttt and harmony) whenever I start casting to a device connected to it.
cast-webhook can be configured by command line argument or by environment variable (with prefix CAST_WEBHOOK_).
| Command Line | Environment Variable | Description |
|---|---|---|
| --host, -h | CAST_WEBHOOK_HOST | URL of cast device to watch |
| --start, -s | CAST_WEBHOOK_START | Webhook to call when a session starts |
| --end, -e | CAST_WEBHOOK_END | Webhook to call when a session ends |
A docker image can be found here. You can run it like this:
docker run --rm -e CAST_WEBHOOK_HOST=<cast-device-url> -e CAST_WEBHOOK_START=<webhook-url> mattbun/cast-webhook
version: '3.7'
services:
cast-webhook:
image: mattbun/cast-webhook
environment:
- CAST_WEBHOOK_HOST=<cast-device-url>
- CAST_WEBHOOK_START=<webhook-url>
Clone the repo and run:
npm install
npm start -- --host <cast-device-url> --start <webhook-url>
Content type
Image
Digest
Size
336.3 MB
Last updated
almost 7 years ago
docker pull mattbun/cast-webhook