Skip to content

Add sports-score-alert ability: live scores, schedule, results with proactive game alerts#289

Open
hassan1731996 wants to merge 10 commits into
openhome-dev:devfrom
hassan1731996:feature/sports-score-alert
Open

Add sports-score-alert ability: live scores, schedule, results with proactive game alerts#289
hassan1731996 wants to merge 10 commits into
openhome-dev:devfrom
hassan1731996:feature/sports-score-alert

Conversation

@hassan1731996

Copy link
Copy Markdown
Contributor

What this does

Voice-activated sports tracker that monitors followed teams and proactively alerts during live games. Supports ESPN sports (MLB, NBA, NFL, NHL, MLS, soccer) and cricket via CricAPI.

Features

  • Follow/unfollow teams — by name, extracted from natural speech
  • Live scores — real-time score with game situation
  • Upcoming schedule — checks today + next 3 days per team
  • Recent results — checks today + past 3 days per team
  • Proactive alerts — background daemon fires for game start, score changes, comeback detection, halftime, final whistle
  • Multi-sport — ESPN API (no key needed) for mainstream sports; CricAPI for cricket

Trigger phrases

"sports alert" / "what's the score?" / "follow the Yankees" / "when do they play next?" / "did they win?" / "unfollow the Lakers"

Demo

Live test recorded on the editor — full flow (follow multiple teams, live scores, schedule, results, unfollow):
https://mega.nz/file/3Qc2kKqD#5xkg5p99mWGs3OjmWB-gHzQopkfo2EEytKYxE3FYFRY

APIs used

  • ESPN public scoreboard API (no key required)
  • CricAPI (optional — only needed for cricket, key stored via get_api_keys("cricapi_key"))

hassan1731996 and others added 8 commits June 24, 2026 22:01
… with comeback detection

Watches followed teams across NFL, NBA, MLB, NHL, soccer, and cricket and fires
voice interrupts for pre-match, game start, score changes, comebacks, halftime, and
final results. Smart polling: 60s live, 300s pre-game, 1800s idle. Event deduplication
via game-id + alert-type in persistent KV store.
@hassan1731996 hassan1731996 requested a review from a team as a code owner July 5, 2026 13:15
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

🔀 Branch Merge Check

PR direction: feature/sports-score-alertdev

Passedfeature/sports-score-alertdev is a valid merge direction

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

✅ Community PR Path Check — Passed

All changed files are inside the community/ folder. Looks good!

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

✅ Ability Validation Passed

📋 Validating: community/sports-score-alert
  ✅ All checks passed!

@github-actions github-actions Bot added the community-ability Community-contributed ability label Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

🔍 Lint Results

__init__.py — Empty as expected

Files linted: community/sports-score-alert/background.py community/sports-score-alert/main.py

✅ Flake8 — Passed

✅ All checks passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-ability Community-contributed ability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants