Skip to content

Add lightning-alert ability#273

Open
hassan1731996 wants to merge 1 commit into
openhome-dev:devfrom
hassan1731996:feature/lightning-alert
Open

Add lightning-alert ability#273
hassan1731996 wants to merge 1 commit into
openhome-dev:devfrom
hassan1731996:feature/lightning-alert

Conversation

@hassan1731996
Copy link
Copy Markdown
Contributor

Summary

  • Real-time lightning and thunderstorm proximity monitor with zero API keys required
  • Background daemon auto-detects location from user IP via ip-api.com, polls Open-Meteo 15-min granularity forecast + NOAA/NWS active alerts every 10 minutes
  • Proactive voice alerts on storm onset (with minutes-to-arrival) and storm clearance
  • Foreground skill handles on-demand queries (current status, timing, clear-check) and preferences (location, warning threshold)

Data sources

Source Use Key
Open-Meteo minutely_15 Storm timing at 15-min precision, global None
NOAA NWS Alerts API Official thunderstorm/lightning warnings, US None
ip-api.com Auto-detect lat/lon/timezone from user IP None
Nominatim City geocoding fallback when IP is cloud/VPN None

Test plan

  • Trigger "any lightning nearby?" — should respond with current conditions
  • Trigger "how long until the storm?" — should give minutes-to-storm or "no storms forecast"
  • Trigger "use London instead" — should geocode and confirm city switch
  • Trigger "warn me 2 hours ahead" — should confirm 120-minute threshold
  • Background: confirm daemon starts, location auto-detects from IP in logs
  • Background: confirm 90-second startup grace period suppresses first-poll duplicates
  • python3 validate_ability.py community/lightning-alert/ — passes clean

@hassan1731996 hassan1731996 requested a review from a team as a code owner May 31, 2026 06:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2026

🚫 Community PR Path Check — Failed

Community PRs can only modify files inside the community/ folder.

❌ Not Allowed

  • .gitignore
  • .vscode/extensions.json
  • .vscode/launch.json
  • .vscode/settings.json
  • .vscode/spellright.dict
  • .vscode/tasks.json
  • CONTRIBUTORS.md
  • public/fonts/README.md
  • public/fonts/fa-brands-400.eot
  • public/fonts/fa-brands-400.svg
  • public/fonts/fa-brands-400.ttf
  • public/fonts/fa-brands-400.woff
  • public/fonts/fa-brands-400.woff2
  • public/fonts/fa-regular-400.eot
  • public/fonts/fa-regular-400.svg
  • public/fonts/fa-regular-400.ttf
  • public/fonts/fa-regular-400.woff
  • public/fonts/fa-regular-400.woff2
  • public/fonts/fa-solid-400.woff2
  • public/fonts/fa-solid-900.eot
  • public/fonts/fa-solid-900.svg
  • public/fonts/fa-solid-900.ttf
  • public/fonts/fa-solid-900.woff
  • public/fonts/fa-solid-900.woff2

Please remove changes to files outside community/.
If you need changes elsewhere, open an issue to discuss with maintainers.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2026

🔀 Branch Merge Check

PR direction: feature/lightning-alertdev

Passedfeature/lightning-alertdev is a valid merge direction

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2026

✅ Ability Validation Passed

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

@github-actions github-actions Bot added the community-ability Community-contributed ability label May 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2026

🔍 Lint Results

🔧 Auto-formatted

Some files were automatically cleaned and formatted with autoflake + autopep8 and committed.

  • Unused imports removed (autoflake)
  • Unused variables removed (autoflake)
  • PEP8 formatting applied (autopep8)

__init__.py — Empty as expected

Files linted: community/lightning-alert/background.py community/lightning-alert/main.py

✅ Flake8 — Passed

✅ All checks passed!

@hassan1731996 hassan1731996 force-pushed the feature/lightning-alert branch from efa82ab to 4bf04ff Compare May 31, 2026 07:18
@hassan1731996 hassan1731996 requested a review from a team as a code owner May 31, 2026 07:18
@hassan1731996 hassan1731996 force-pushed the feature/lightning-alert branch 2 times, most recently from 9250e92 to 4bf04ff Compare June 1, 2026 23:25
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.

1 participant