Elffuss BraidHub

kikocis/osiris public

master · 889 BRawPermalink
1import type { CctvCamera } from './types';
2
3const ATTiki_ODOS_CAMERAS = [
4 { alias: 'cam128', name: 'I/C D. Plakentias', city: 'Athens', lat: 38.0208, lng: 23.8578 },
5 { alias: 'cam231', name: 'I/C Papagou', city: 'Athens', lat: 37.9906, lng: 23.7947 },
6];
7
8export async function fetchGreeceCameras(): Promise<CctvCamera[]> {
9 // Using IPCamLive's web player as an iframe stream bypasses the need for API secrets
10 // that were failing for raw HLS/snapshot extraction.
11 return ATTiki_ODOS_CAMERAS.map(cam => ({
12 id: `gr-aodos-${cam.alias}`,
13 lat: cam.lat,
14 lng: cam.lng,
15 name: cam.name,
16 city: cam.city,
17 country: 'Greece',
18 stream_url: `https://ipcamlive.com/player/player.php?alias=${cam.alias}&autoplay=1`,
19 stream_type: 'iframe',
20 feed_url: `https://ipcamlive.com/player/player.php?alias=${cam.alias}&autoplay=1`,
21 source: 'Attiki Odos',
22 }));
23}