mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-03 21:21:59 +10:00
16 lines
546 B
JavaScript
16 lines
546 B
JavaScript
// Configuration constants
|
|
export const MAX_RETRY_ATTEMPTS = 10;
|
|
export const RETRY_DELAY_MS = 5000; // 5 seconds between retries
|
|
|
|
// Get API base URL from global variable set by Razor view
|
|
export const API_BASE = window.API_BASE || '';
|
|
|
|
// Default settings
|
|
export const DEFAULT_SETTINGS = {
|
|
frameInterval: 2.0, // seconds between frames
|
|
refreshInterval: 30, // seconds between API refreshes
|
|
autoPlay: true, // auto-play on load
|
|
timespan: 'latest' // 'latest', '1h', '3h', '6h', '12h', '24h', 'custom'
|
|
};
|
|
|