Elffuss BraidHub

kikocis/osiris public

09d1cb3093e4 · 2.7 KiBRawPermalink
1import type { CctvCamera } from './types';
2
3/** Windy embed helper — iframe only, no broken image URLs */
4function 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
13const ITALY_CAMERAS: CctvCamera[] = [
14 // Rome
15 {
16 id: 'it-rome-colosseum',
17 lat: 41.8902, lng: 12.4922,
18 name: 'Roma - Colosseum',
19 city: 'Rome', country: 'Italy',
20 ...windy('1586955498'),
21 },
22 {
23 id: 'it-rome-pantheon',
24 lat: 41.8986, lng: 12.4769,
25 name: 'Roma - Pantheon / Piazza della Rotonda',
26 city: 'Rome', country: 'Italy',
27 ...windy('1363017757'),
28 },
29 {
30 id: 'it-rome-st-peters',
31 lat: 41.9022, lng: 12.4539,
32 name: 'Roma - St. Peter\'s Basilica',
33 city: 'Rome', country: 'Italy',
34 ...windy('1415100696'),
35 },
36 // Venice
37 {
38 id: 'it-venice-rialto',
39 lat: 45.438, lng: 12.336,
40 name: 'Venezia - Rialto Bridge',
41 city: 'Venice', country: 'Italy',
42 ...windy('1340720365'),
43 },
44 {
45 id: 'it-venice-stmark',
46 lat: 45.4341, lng: 12.339,
47 name: 'Venezia - St. Mark\'s Square',
48 city: 'Venice', country: 'Italy',
49 ...windy('1363852427'),
50 },
51 // Milan
52 {
53 id: 'it-milan-duomo',
54 lat: 45.4642, lng: 9.1900,
55 name: 'Milano - Duomo Cathedral',
56 city: 'Milan', country: 'Italy',
57 ...windy('1586862002'),
58 },
59 // Naples / Vesuvius
60 {
61 id: 'it-naples-vesuvius',
62 lat: 40.8518, lng: 14.2681,
63 name: 'Napoli - Mount Vesuvius',
64 city: 'Naples', country: 'Italy',
65 ...windy('1442453557'),
66 },
67 {
68 id: 'it-naples-harbor',
69 lat: 40.835, lng: 14.261,
70 name: 'Napoli - Harbor / Castel dell\'Ovo',
71 city: 'Naples', country: 'Italy',
72 ...windy('1502972244'),
73 },
74 // Florence
75 {
76 id: 'it-florence-duomo',
77 lat: 43.7731, lng: 11.2560,
78 name: 'Firenze - Duomo / Piazza del Duomo',
79 city: 'Florence', country: 'Italy',
80 ...windy('1546268098'),
81 },
82 // Amalfi Coast
83 {
84 id: 'it-amalfi-coast',
85 lat: 40.6340, lng: 14.6027,
86 name: 'Amalfi Coast - Panoramic View',
87 city: 'Amalfi', country: 'Italy',
88 ...windy('1523789742'),
89 },
90 // Sardinia
91 {
92 id: 'it-cagliari-port',
93 lat: 39.2181, lng: 9.1109,
94 name: 'Cagliari - Port & Marina',
95 city: 'Cagliari', country: 'Italy',
96 ...windy('1588063754'),
97 },
98 // Sicily - Mount Etna
99 {
100 id: 'it-etna-volcano',
101 lat: 37.7510, lng: 14.9934,
102 name: 'Mount Etna - Volcano',
103 city: 'Catania', country: 'Italy',
104 ...windy('1283466604'),
105 },
106];
107
108export async function fetchItalyCameras(): Promise<CctvCamera[]> {
109 return ITALY_CAMERAS;
110}
111
112export default ITALY_CAMERAS;