Skip to content

CAP-71: Edge Compute Burst Video Data#12

Open
jimmdd wants to merge 2 commits intomainfrom
jinglun/cap-71-edge-compute-burst-video-data
Open

CAP-71: Edge Compute Burst Video Data#12
jimmdd wants to merge 2 commits intomainfrom
jinglun/cap-71-edge-compute-burst-video-data

Conversation

@jimmdd
Copy link
Contributor

@jimmdd jimmdd commented Mar 12, 2026

Summary

  • Add video_cache module to beeutil with video file listing, S3 upload, GNSS position retrieval, and file management
  • Add geo module to beeutil with ray-casting point-in-polygon algorithm and Beemaps burst API integration
  • Create burst-video plugin that monitors device position against active burst geometries and uploads video data when driving through burst areas

How it works

  1. Plugin fetches active burst geometries from the Beemaps API (refreshed every 5 minutes)
  2. Every 10 seconds, checks device GNSS position against all active burst polygons
  3. When device is inside a burst area, queues cached video files for S3 upload
  4. Threaded upload workers handle S3 uploads with burst ID prefix for organization
  5. Tracks uploaded videos to prevent duplicate uploads

New files

  • src/beeutil/video_cache.py — Video cache management + GNSS
  • src/beeutil/geo.py — Point-in-polygon + burst API
  • src/plugin/burst_video.py — Burst video capture plugin

Test plan

  • Python syntax validation passes for all files
  • Point-in-polygon algorithm tested with 8 cases (inside, outside, real-world coords, polygon with holes, multipolygon)
  • Video filename parsing tested with all supported formats
  • End-to-end test on Bee device with active bursts
  • Verify S3 upload path structure

Linear: CAP-71

🤖 Generated with Claude Code

hive-claw and others added 2 commits March 11, 2026 17:38
Add video_cache module with functions to list, upload, and manage video
files from /data/video/, plus GNSS position retrieval. Add geo module
with point-in-polygon algorithm and Beemaps burst API integration.

CAP-71

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create burst-video plugin that monitors device GNSS position against
active burst geometries from the Beemaps API and uploads video data
when the device drives through burst areas.

CAP-71

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jimmdd jimmdd requested a review from mazar-farran March 12, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant