Repository navigation
feat(cctv): add Danish harbour, bridge, coast and airfield cameras - #524
Merged
Merged
Conversation
Twenty-five cameras shown by their operators: the Øresund Bridge, the ports of Hirtshals and Skagen, Juelsminde, Marselisborg, Køge, Hundested, Spodsbjerg and Gyldendal harbours, the Lynetteholm construction site, two lighthouses and Kongsted Airfield. Ten are live players. The Danish Road Directorate has removed its public road cameras. Juelsminde's pictures are dated, so its stopped cameras are left out. Suggested by morein1 in #522.
|
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 the first Danish cameras to OSIRIS: 25 cameras that their operators show publicly, 10 of them live video. No keys are needed, and each camera names its operator and links to the operator's own page.
Suggested by morein1 in #522.
The Danish Road Directorate has removed its public road cameras, so there is no national traffic feed to add.
Changes
src/app/api/cctv/denmark.ts: the camera list. Live cameras play in their operators' own players. Juelsminde's server dates its pictures, so cameras that have stopped there are left out until they post again.src/app/api/cctv/route.ts: registers thedenmarkregion and loads it for views of Denmark.src/app/api/cctv/denmark.test.ts: checks ids, positions, operators, HTTPS, named hosts, the absence of credentials in addresses, and the freshness check.No new dependencies or environment variables.
Testing
npx tsc --noEmit: no errors.npx vitest run: 1,914 passed, 27 skipped.npm run buildfrom a clean.next: passes.Notes for review
🤖 Generated with SIMPLIFAI