Skip to content

Custom component for HomeAssistant to trigger automations when a team scores a goal

Notifications You must be signed in to change notification settings

timlindeberg/goal_sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goal sensor

Custom component to track when a team scores a goal

Setup

  • Install python 3.10 or later:
    • brew install python
    • ln -s -f /opt/homebrew/bin/python3 /usr/local/bin/python
  • Install tesseract
    • brew install tesseract
  • Install pip dependencies:
    • pip install numpy
    • pip install pytesseract
    • pip install python-opencv
    • pip install requests
    • pip install flask
    • pip install waitress

Example commands

  • Running server: python score_server.py --score_reader discovery2024 --url http://<ip-adress>:8090/json-rpc --port 8090

  • Executing tests: python test_extract_score.py

  • Extracting score from image: python extract_score.py test_images/discovery_2024/bkh_hif/2_1.jpg --save_images

About

Custom component for HomeAssistant to trigger automations when a team scores a goal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages