Repository navigation
feat(cctv): add 16 official camera sources, including Seoul, Seattle and Japan's national roads - #523
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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
src/app/api/cctv/, with unit tests for mapping, bounds, allowed hosts and freshness./api/cctv/streamresolves a Seoul camera's stream when it is opened./api/cctv/japan-roadsand/api/cctv/andorraredirect to the current picture, whose address changes with each update. Both redirect only to the agency's own host.currentOnlyaccepts a maximum picture age and the sizes of an agency's "camera unavailable" cards, so stopped cameras are left out.fetchand 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 buildfrom a clean.next: passes.Notes for review
🤖 Generated with SIMPLIFAI