Record a sky camera around the clock, keep the footage on your own disk, and find what flew past.
TypeScript astronomycloudflare-workerscomputer-visionmcpmeteor-detectionobject-trackingrtspself-hostedsky-camerayolo
Skill: build and run a workflow
Goal: a workflow that samples a footage window, detects objects, keeps the frames you want, and runs to completion.
- Know the parts. Read guide
workflowsif you haven't. Then gather:models list: pick aworkflow_readymodel whose classes fit the goal.buckets list: pick an output bucket, orbuckets createone with a descriptive name.footage daysandfootage list: make sure the window you want has recordings.
- Create it with every step and link in one call:
Class names must match the model's exactly (see{"action":"create","name":"Planes 18:00–19:00", "steps":[ {"id":"input","kind":"input","bucketId":"camera-archive","camera":"sky01"}, {"id":"footage","kind":"footage","day":"2026-09-23","from":"18:00:00","until":"19:00:00","interval":5}, {"id":"detect","kind":"model","modelKey":"combined-detector/v2","score":0.4}, {"id":"planes","kind":"condition","match":"all","rules":[{"kind":"class","className":"Plane","operator":"present"}]}, {"id":"keep","kind":"output","bucketId":"<bucket_id>"}, {"id":"drop","kind":"nothing"}], "links":[{"from":"input","to":"footage"},{"from":"footage","to":"detect"},{"from":"detect","to":"planes"}, {"from":"planes","to":"keep","port":"yes"},{"from":"planes","to":"drop","port":"no"}]}models list). - Read the result.
ready: truemeans it can run. Otherwise fixissuewithworkflows update(pass the returnedrevision), and repeat until ready. - Check the size.
workflows checkreports the clips and frames in the window. A run allows at most 100 clips and 2,000 frames. Shorten the window or raiseintervalif needed. - Test.
runs testwithimage_limit10. Loopruns watchuntilfinished: true. Look at a few previews withimages view(pass the test'srun_id). Are the detections right? Isscoretoo strict or too loose? Adjust and test again. - Run.
runs start, then loopruns watchuntil finished. Report progress to the user as it moves. - Verify (skill
verify-changes):runs statusshowscompletedwith noerrors, andimages searchwith therun_idreturns the saved frames.
To run it automatically, add a schedule step linked into the input (guide workflows, Schedules). Use run-day or previous-day as the footage day; When new footage arrives (arrival) needs run-day and a window that ends by 23:35 UTC.