Files
signalk-plugin/plugin/routes/collection/dashboard.js
Giuseppe Raffa c2c1598226 feat: Implement rulesets and layout management for kiosk plugin
- 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.
2026-05-12 10:17:54 +02:00

13 lines
336 B
JavaScript

const router = require('express').Router();
const express = require('express');
const path = require('path')
const kioskPath = path.join(__dirname, '../../tools/kiosk');
router.use('/', express.static(kioskPath));
router.get('/', (req, res) => {
res.sendFile(path.join(kioskPath, 'dashboard.html'));
});
module.exports = router;