Slackbot to scan images for licence plates and report the known car details. The car owners are fetched from a csv-file on a fileshare.
- Create an app in api.slack.com
- configure
/car
slack commmand - configure event-api on file_created / file_shared events in channel-scope
- configure
- Host as a docker container in the cloud, or use nGrok while testing.
- Pass environment variables from Slack and/or opendata.rdw.nl
ACTIVE_TOKEN
OAuth Bot User OAuth Access Token (xoxb-***)CLIENT_ID
+CLIENT_SECRET
and perform OAuth by '(Re)install app' in Slack API.
RWD_APPTOKEN
(optional) the opendata.rdw.nl api-token
- Pass environment variables from Slack and/or opendata.rdw.nl
- Open data: RWD gekentekende voertuigen
- Github project: Open Automated LicencePlate Recogniser
Only if Flask is running in debug mode:
- Make the bot Workspace independend: Its now for a single Workspace (Xebia) using one fileshare with a single csv-file.
- Make API calls in parallel to reduce total time for a request. (A slack command must answer in 3 sec.)
- Security:
- Limit the incoming traffic from Slack or validate event hashes.
- Add an TSL-certificate using letsencrypt
- Pin Slack SSL certification.