1. clone this repository
$ git clone https://github.com/okwrtdsh/slack_webcam_bot.git
- slack api token
https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens
- slack channel id
https://www.wikihow.com/Find-a-Channel-ID-on-Slack-on-PC-or-Mac
$ v4l2-ctl --list-devices
UCAM-DLY300TA (usb-0000:00:14.0-3):
/dev/video0
- set
TOKEN
to your slack api token - set
CHANNEL
to your slack channel id - mount the camera device to
/dev/video0
docker-compose.yml
devices:
- YourCameraDevice:/dev/video0
environment:
- TOKEN=YourToken
- CHANNEL=YourChannelId
$ docker-compose up -d