Slackbot to scan images for licence plates and report the known car details:
- Create an app in api.slack.com
- configure /kenteken and /my_car
- configure event-api for
- 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:
- More secure incoming connection
- Use
from slackeventsapi import SlackEventAdapter
see: https://github.com/slackapi/python-slack-events-api - Include LetsEncrypt for a valid TLS connection.
- Validate events from Slack
- Use
- Use a single command
/kenteken
and not also/my_car
and use an english name, I like:/car
simple and short! - Make the bot Workspace independend: Its now for a single Workspace (Xebia) using one fileshare with a single csv-file