Elffuss BraidHub

kikocis/osiris public

Remove broken Windy cameras from Turkey and Italy
Changesetf2fca399f627d0a25716691ca96ebf0be286bb36ea67acce89bbc6118f47bdbe
AuthorGemini CLI <gemini@example.com> · 2026-05-26 23:12 -04:00
CommitterGemini CLI <gemini@example.com> · 2026-05-26 23:12 -04:00
Parents21933d3ac111

Browse the files at this changeset

2 files changed

modified src/app/api/cctv/route.ts +1 −5
@@ -8,7 +8,6 @@
88 import { fetchTurkeyCameras } from './turkey';
99 import { fetchRomaniaCameras } from './romania';
1010 import { fetchAustraliaCameras } from './australia';
11-import { fetchItalyCameras } from './italy';
1211
1312 /**
1413 * OSIRIS — Worldwide CCTV Camera API v2
@@ -291,7 +290,6 @@
291290 'turkey': fetchTurkeyCameras,
292291 'romania': fetchRomaniaCameras,
293292 'australia': fetchAustraliaCameras,
294- 'italy': fetchItalyCameras,
295293 };
296294
297295 // Determine which regions to fetch based on viewport bounds
@@ -314,8 +312,7 @@
314312 const inMacedonia = lat > 40.8 && lat < 42.8 && lng > 20.4 && lng < 23.2;
315313 const inRomania = lat > 43.5 && lat < 48.5 && lng > 20 && lng < 29.8;
316314 const inTurkey = lat > 35.5 && lat < 42.5 && lng > 25.5 && lng < 45;
317- const inItaly = lat > 36 && lat < 47.5 && lng > 6.5 && lng < 18.5;
318- const inBalkans = inBulgaria || inGreece || inSerbia || inMacedonia || inRomania || inTurkey || inItaly;
315+ const inBalkans = inBulgaria || inGreece || inSerbia || inMacedonia || inRomania || inTurkey;
319316
320317 if (lat > 35 && lat < 72 && lng > -11 && lng < 40 && !inBalkans) {
321318 regions.push('europe');
@@ -326,7 +323,6 @@
326323 if (inMacedonia) regions.push('macedonia');
327324 if (inRomania) regions.push('romania');
328325 if (inTurkey) regions.push('turkey');
329- if (inItaly) regions.push('italy');
330326
331327 // Asia (includes Middle East, SE Asia, overriding parts of china but that's ok they can both load)
332328 if ((lat > -10 && lat < 60 && lng > 60 && lng < 150)) regions.push('asia');
modified src/app/api/cctv/turkey.ts +0 −85
@@ -1,75 +1,6 @@
11 import type { CctvCamera } from './types';
22
3-/** Windy embed helper — iframe only, no broken image URLs */
4-function windy(id: string): Pick<CctvCamera, 'stream_url' | 'stream_type' | 'external_url' | 'source'> {
5- return {
6- stream_url: `https://www.windy.com/webcams/${id}/embed`,
7- stream_type: 'iframe',
8- external_url: `https://www.windy.com/webcams/${id}`,
9- source: 'Windy',
10- };
11-}
12-
133 const TURKEY_CAMERAS: CctvCamera[] = [
14- // Istanbul — European side & Bosphorus
15- {
16- id: 'tr-istanbul-galata',
17- lat: 41.019, lng: 28.974,
18- name: 'Istanbul - Galata Bridge',
19- city: 'Istanbul', country: 'Turkey',
20- ...windy('1573888456'),
21- },
22- {
23- id: 'tr-istanbul-sultanahmet',
24- lat: 41.009, lng: 28.977,
25- name: 'Istanbul - Sultanahmet / Grand Bazaar',
26- city: 'Istanbul', country: 'Turkey',
27- ...windy('1573537594'),
28- },
29- {
30- id: 'tr-istanbul-bosphorus',
31- lat: 41.042, lng: 29.009,
32- name: 'Istanbul - Bosphorus (Radisson view)',
33- city: 'Istanbul', country: 'Turkey',
34- ...windy('1511515262'),
35- },
36- {
37- id: 'tr-istanbul-yavuz-bridge',
38- lat: 41.202, lng: 29.121,
39- name: 'Istanbul - Yavuz Sultan Selim Bridge',
40- city: 'Istanbul', country: 'Turkey',
41- ...windy('1601452975'),
42- },
43- // Edirne — Border crossings
44- {
45- id: 'tr-kapikule-windy',
46- lat: 41.717, lng: 26.33,
47- name: 'Kapikule - Customs (TR, BG direction)',
48- city: 'Edirne', country: 'Turkey',
49- ...windy('1375653055'),
50- },
51- {
52- id: 'tr-hamzabeyli-windy',
53- lat: 41.97, lng: 26.388,
54- name: 'Hamzabeyli - Border (TR, live)',
55- city: 'Edirne', country: 'Turkey',
56- ...windy('1639080445'),
57- },
58- // Tekirdag (European coast)
59- {
60- id: 'tr-tekirdag-cumhuriyet',
61- lat: 40.983, lng: 27.515,
62- name: 'Tekirdag - Cumhuriyet Mahallesi',
63- city: 'Tekirdag', country: 'Turkey',
64- ...windy('1641362068'),
65- },
66- {
67- id: 'tr-tekirdag-center',
68- lat: 40.978, lng: 27.508,
69- name: 'Tekirdag - City Center',
70- city: 'Tekirdag', country: 'Turkey',
71- ...windy('1610814488'),
72- },
734 // Makaza / Nymfea (GR-TR border) — YouTube live
745 {
756 id: 'tr-makaza-nymfea-1',
@@ -91,22 +22,6 @@
9122 external_url: 'https://weather-webcam.eu/ueb-kameri-ot-gkpp-makaza-nimfeya/',
9223 source: 'YouTube / GKPP',
9324 },
94- // Antalya — Mediterranean coast
95- {
96- id: 'tr-antalya-harbor',
97- lat: 36.8841, lng: 30.7056,
98- name: 'Antalya - Old Harbor',
99- city: 'Antalya', country: 'Turkey',
100- ...windy('1546441490'),
101- },
102- // Alanya
103- {
104- id: 'tr-alanya-coast',
105- lat: 36.5437, lng: 31.9935,
106- name: 'Alanya - Coastline',
107- city: 'Alanya', country: 'Turkey',
108- ...windy('1539516234'),
109- },
11025 ];
11126
11227 export async function fetchTurkeyCameras(): Promise<CctvCamera[]> {