Skip to content

feat(cctv): add 16 official camera sources, including Seoul, Seattle and Japan's national roads - #523

Merged
simplifaisoul merged 1 commit into
masterfrom
feat/cctv-seoul-seattle-japan-roads
Nov 30, 2026
Merged

simplifaisoul merged 1 commit into
masterfrom
feat/cctv-seoul-seattle-japan-roads

Conversation

@simplifaisoul

Copy link
Copy Markdown
Owner

Summary

Adds 16 official camera sources that OSIRIS did not carry: about 4,250 cameras, 1,015 of them live video. All are published openly by the agency that runs them, need no key, and are credited by name. Requests use the project's own user agent.

Country Source Cameras Type
South Korea Seoul TOPIS 496 Live video
South Korea Daegu Metropolitan City 177 Live video
United States City of Seattle (SDOT) 284 Live video
Indonesia Semarang city government 58 Live video
Japan MLIT national roads 1,905 Stills, every 15 minutes
United States USGS river cameras 586 Stills
United States USGS / FAA volcano cameras 103 Stills
Estonia City of Tallinn 247 Stills
United States North Dakota DOT 183 Stills
United States King County and City of Kirkland, WA 83 Stills
United States Beaufort County, SC 75 Stills
Andorra Mobilitat, Govern d'Andorra 70 Short loops
United States City of Lawrence, KS 64 Stills
New Zealand Horizons Regional Council 26 Stills
Germany Deutscher Wetterdienst 9 Stills

Counts vary. USGS rivers range from about 350 at night to 590 by day, because pictures older than three hours are left out. About 113 MLIT cameras that show a "being adjusted" card are removed by a background check after the first load.

Changes

  • One module per source in src/app/api/cctv/, with unit tests for mapping, bounds, allowed hosts and freshness.
  • /api/cctv/stream resolves a Seoul camera's stream when it is opened.
  • /api/cctv/japan-roads and /api/cctv/andorra redirect to the current picture, whose address changes with each update. Both redirect only to the agency's own host.
  • currentOnly accepts a maximum picture age and the sizes of an agency's "camera unavailable" cards, so stopped cameras are left out.
  • Seattle and Semarang list only cameras whose playlist answers, and use the longer fetch budget.
  • OpenCCTV no longer returns rows that these sources now cover.
  • IDENTIFY and WATCH can read MLIT pictures.
  • The route test stubs fetch and no longer reaches the network.

No new dependencies or environment variables.

Testing

  • npx tsc --noEmit: no errors.
  • npx vitest run: 1,910 passed, 27 skipped.
  • npm run build from a clean .next: passes.
  • Sampled cameras from each source through the production build. Every sampled camera returned a current picture or a playing stream, except one of 16 in Semarang, which timed out.
  • Opened cameras from all 16 sources on the map in Chrome and confirmed that the picture or video displays.
  • Checked the full catalogue: no repeated ids among the new cameras, MLIT positions fall within their prefecture and USGS positions within their state, and the new entries add 143 KB compressed.

Notes for review

  • Reachability of the Korean, Indonesian and Japanese hosts from the hosted deployment is not yet confirmed. A source that cannot be reached shows no cameras and does not affect the others.
  • A small number of Daegu cameras are offline at any time and show FEED UNAVAILABLE. Daegu starts streams on demand, so checking playlists in advance hid working cameras.

🤖 Generated with SIMPLIFAI

…Tallinn, North Dakota and eight more sources

Live video: Seoul TOPIS, Daegu, City of Seattle, Semarang.
Stills: MLIT national roads, USGS river and volcano cameras, Tallinn,
North Dakota DOT, King County and Kirkland, Beaufort County, Lawrence,
Horizons Regional Council, Deutscher Wetterdienst. Andorra's are short loops.

All are keyless and read with an honest user agent. Cameras that have stopped
or show an agency's "unavailable" card are left out where the source says so.

- /api/cctv/stream finds a Seoul camera's stream when it is opened
- /api/cctv/japan-roads and /api/cctv/andorra redirect to the current picture
- currentOnly takes a picture age and stand-in card sizes
- OpenCCTV leaves out rows these sources now carry
- the route test no longer reaches the network
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
osiris Ready Ready Preview Nov 30, 2026 10:23pm UTC

@simplifaisoul
simplifaisoul merged commit d6b7bf7 into master Nov 30, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview – osiris — a93259da Deployed Nov 30, 2026 by vercel[bot]
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