Skip to content

Detects and alerts if the coffee maker was not rinsed after use

Notifications You must be signed in to change notification settings

groundlight/coffee_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee machine demo

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

Needs rinsing Already rinsed

Running

  1. Install poetry.
curl -sSL https://install.python-poetry.org | python3 -
  1. Install dependencies.
poetry install
  1. 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.

  1. Run the script.
poetry run python coffee_demo.py

About

Detects and alerts if the coffee maker was not rinsed after use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages