Skip to content

okwrtdsh/slack_webcam_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack_webcam_bot

How to Use

$ git clone https://github.com/okwrtdsh/slack_webcam_bot.git

2. get slack api token and slack channel id

  • 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

3. check your camera devices

$ v4l2-ctl --list-devices
UCAM-DLY300TA (usb-0000:00:14.0-3):
	/dev/video0

4. modify docker-compose.yml

  • 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

5. run with docker-compose

$ docker-compose up -d