Capture images from Slack
@capture-bot capture
-
install
Raspbian
. -
sudo apt-get update
-
sudo apt-get upgrade
-
sudo apt-get install git
-
Enable camera from
raspi-config
. -
Install Docker.
curl -sSL https://get.docker.com | sh
-
Give the
pi
user the ability to run Docker.sudo usermod -aG docker pi
-
Logout and login again.
-
Clone this repo.
-
Create env file.
env.txt
API_TOKEN=hoge GOOGLE_API_KEY=hoge ERRORS_TO=hoge IMAGE_SENT_TO=hoge
-
Start the Docker service.
systemctl start docker.service
-
docker build ./ -t capture-bot
-
docker run --privileged --env-file ./env.txt capture-bot
capture-bot.sh
cd capture-bot
docker build ./ -t capture-bot && docker run --privileged --env-file ./env.txt --restart=always capture-bot
crontab -e
@reboot /home/pi/capture-bot.sh