Files
signalk-plugin/plugin/config/skSettings.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

53 lines
2.0 KiB
JavaScript

module.exports = {
type: 'object',
properties: { // impostazioni
wthr_update_interval: {
type: 'number',
title: 'Aggiornamento meteo (in secondi)',
description: 'Imposta ogni quanto verranno aggiornati i dati meteo attuali',
default: 60, //1m
},
wthr_longterm_interval: {
type: 'number',
title: 'Aggiornamenti Previsioni (in minuti)',
description: 'Imposta ogni quanti minuti verranno aggiornate le previsioni meteo fino a 7 ore',
default: 60, //1h
},
telemetry_log_interval: {
type: 'number',
title: 'Registrazione dei dati (in secondi)',
description: 'Imposta ogni quanto la telemetria della barca verrà registrata',
default: 10, //10sec
},
telegam_token: {
type: 'string',
title: 'Telegram Bot Token',
description: 'Inserisci il token del tuo bot Telegram per ricevere notifiche e interagire con la tua barca da remoto',
default: '',
},
sensor_code: {
type: 'string',
title: 'Sensore',
description: 'Inserisci un codice identificativo per inviare i dati al server',
default: '',
},
sensor_id: {
type: 'string',
title: 'ID Sensore',
description: 'ID del sensore generato dal server al momento della registrazione (POST /connect/new)',
default: '',
},
sensor_interval: {
type: 'number',
title: 'Aggiornamento dati (in secondi)',
description: 'Imposta ogni quanto i dati del sensore verranno inviati al server',
default: 60, //1m
},
reconnect_delay: {
type: 'number',
title: 'Ritardo di riconnessione (in secondi)',
description: 'Imposta il ritardo prima di tentare una nuova connessione al server',
default: 10, //10sec
}
}
}