Keeps an eye on the clover coffee machine in the Groundlight office, and alerts if somebody forgets to rinse.
This demonstrates how to use the Groundlight Python SDK to:
- Set up a simple logic loop to watch for a specific condition
- Fetch images from an RTSP camera
- Run inference on the images
- Send alerts to a Slack channel
- Play audio alerts
- Install poetry.
curl -sSL https://install.python-poetry.org | python3 -
- Install dependencies.
poetry install
- Configure environment variables:
export RTSP_URL=rtsp://...
export SLACK_WEBHOOK_URL=https://...
export GROUNDLIGHT_API_TOKEN=api_...
See manual for instructions on how to get the Groundlight API token.
For instructions on RTSP URLs look here.
For instructions on setting up slack webhooks, see here.
- Run the script.
poetry run python coffee_demo.py