- Added rulesets manager to handle various data types and updates via HTTP and WebSocket. - Introduced layout store for managing kiosk layouts with caching and server synchronization. - Enhanced dashboard and data routes to support new layout and ruleset features. - Updated kiosk HTML and JavaScript to utilize new layout rendering and data binding. - Removed obsolete map route and integrated map functionality into the new tile renderer. - Improved Telegram commands to reflect changes in data structure and logging. - Refactored weather fetching intervals to prevent multiple instances. - Added SSE stream for real-time layout updates in the kiosk.
73 lines
1.7 KiB
JavaScript
73 lines
1.7 KiB
JavaScript
const FORECAST_CURRENT = [
|
|
'temperature_2m',
|
|
'wind_speed_10m',
|
|
'wind_direction_10m',
|
|
'wind_gusts_10m',
|
|
'precipitation',
|
|
'rain',
|
|
'relative_humidity_2m',
|
|
'pressure_msl'
|
|
];
|
|
|
|
const FORECAST_HOURLY = [
|
|
'temperature_2m',
|
|
'precipitation_probability',
|
|
'precipitation',
|
|
'rain',
|
|
'wind_speed_10m',
|
|
'cloud_cover',
|
|
'wind_direction_10m',
|
|
'relative_humidity_2m',
|
|
'pressure_msl'
|
|
];
|
|
|
|
const MARINE_CURRENT = [
|
|
'wave_height',
|
|
'wave_direction',
|
|
'wave_period',
|
|
'wave_peak_period',
|
|
'ocean_current_velocity',
|
|
'ocean_current_direction'
|
|
];
|
|
|
|
const MARINE_HOURLY = [
|
|
'wave_height',
|
|
'wave_direction',
|
|
'wave_period',
|
|
'wave_peak_period',
|
|
'ocean_current_velocity',
|
|
'ocean_current_direction'
|
|
];
|
|
|
|
const LOG_PATHS = [
|
|
'meb.forecast.temperature',
|
|
'meb.forecast.wind.direction',
|
|
'meb.forecast.wind.speed',
|
|
'meb.waves.direction',
|
|
'meb.waves.height',
|
|
'meb.waves.period',
|
|
'navigation.position.latitude',
|
|
'navigation.position.longitude',
|
|
'navigation.headingTrue',
|
|
'navigation.speedOverGround',
|
|
'navigation.courseOverGroundTrue',
|
|
'electrical.batteries.service.Voltage',
|
|
'electrical.batteries.service.current',
|
|
'electrical.batteries.service.stateOfCharge',
|
|
'electrical.batteries.traction.Voltage',
|
|
'electrical.batteries.traction.current',
|
|
'electrical.batteries.traction.stateOfCharge',
|
|
'electrical.batteries.traction.temperature',
|
|
'electrical.batteries.traction.power',
|
|
'propulsion.0.revolutions',
|
|
'system.uptime'
|
|
];
|
|
|
|
module.exports = {
|
|
FORECAST_CURRENT,
|
|
FORECAST_HOURLY,
|
|
MARINE_CURRENT,
|
|
MARINE_HOURLY,
|
|
LOG_PATHS
|
|
};
|