Compare commits

..
27 Commits
Author SHA1 Message Date
iv3jdv 951396563a Release 3.0: Nuovo design Soft UI, Fleet Status centrato e fix vari 2026-10-24 12:25:27 +02:00
iv3jdv 000ac4f530 fix badge 2026-10-23 00:06:58 +02:00
iv3jdv 891c995cc0 fix hash client display 2026-10-22 23:53:18 +02:00
iv3jdv a3031ce33f update 2026-10-22 23:17:29 +02:00
iv3jdv 47b4bed21f update 2026-10-22 22:54:30 +02:00
iv3jdv 7a9008de78 update 2026-10-22 22:53:42 +02:00
iv3jdv dad1a656fe update 2026-10-22 22:35:51 +02:00
iv3jdv b33d495474 add agent version 2026-10-22 21:47:57 +02:00
iv3jdv 38f7efce6b add OTAcClient update signal 2026-10-22 18:59:09 +02:00
iv3jdv 24c81c1abb update CCS class 2026-10-22 14:01:58 +02:00
iv3jdv 126ad8cdaf add update logging 2026-10-22 13:21:19 +02:00
iv3jdv 2f0abdc9bf add Server OTA Update 2026-10-22 13:11:46 +02:00
iv3jdv a1449eedfb add Telemetry node Uptime 2026-10-22 12:52:10 +02:00
iv3jdv 2fa1b476c4 feat(ui): mostrato hash e messaggio dell'ultimo commit nel footer tramite subprocess 2026-10-22 01:36:35 +02:00
iv3jdv 8ce2ed243d fix/feat: stabilizzazione dashboard in tempo reale e log dinamici
- Modificato app.py per leggere i parametri del RotatingFileHandler dal config.json, permettendo la regolazione dello spazio su disco senza toccare il codice.
- Identificato e risolto il bug degli azzeramenti della tabella Lastheard (causato da un fallback continuo di Socket.IO a causa della mancata direttiva Upgrade nei reverse proxy)
2026-10-20 21:37:18 +02:00
iv3jdv 8ee2958b8e fix(dmr): risolto campo source mancante nei log
- MMDVMHost omette il campo source nel payload JSON dell'azione end per il DMR.
- Aggiunto il salvataggio in RAM di  e  (su active_calls) durante l'evento start.
- Ripristinata l'iniezione di questi dati prima della scrittura nel DB SQLite.
- Ora i badge RF/NET e la telemetria estesa funzionano correttamente anche sul DMR
2026-10-20 17:53:55 +02:00
iv3jdv 298478e36d feat(dashboard): estensione filtro nodo globale sulla UI
- Aggiunto  all'evento onchange del menu a tendina.
- Implementata logica lato client in index.html per filtrare dinamicamente i transiti.
- Ora la selezione di un singolo nodo isola sia i widget statistici che lo storico dei log sottostante, senza interferire con i log grezzi della vista NODES
2026-10-20 17:39:22 +02:00
iv3jdv 502244dff4 feat(dashboard): aggiunte colonne Source e YSF Mode, fix visibilità CQCQCQ per D-STAR e DG-ID per C4FM 2026-10-20 17:17:48 +02:00
iv3jdv c5dcacefd1 fix(mqtt): previene eccezione di decodifica su payload sporchi
- Aggiunto  alla decodifica dei messaggi MQTT in app.py.
- Evita che errori come UnicodeDecodeError (es. byte 0xb2) scartino interi pacchetti validi.
- Ora gli alias radio o i beacon con caratteri speciali/obsoleti vengono gestiti senza bloccare la visualizzazione del transito sulla dashboard
2026-10-20 15:34:46 +02:00
iv3jdv cae5c4ea83 fix(dashboard): refactoring colonne Target e REF/SLOT
- Separata la destinazione radio (Target) dall'infrastruttura di rete (REF/SLOT).
- Risolto il bug dei moduli D-STAR troncati causato dai beacon INFO locali di MMDVMHost.
- La colonna Target ora mostra l'UR CALL reale, mentre REF/SLOT usa in modo esclusivo la memoria di linking iniziale.
- Aggiornati index.html (nuova UI) e la logica di parsing/salvataggio in app.py.
2026-10-20 14:27:47 +02:00
iv3jdv 445cc5e97d refactor: rimossa etichetta Network dai Time Slot nell'interfaccia
Rimossa l'estrazione MQTT in app.py e la visualizzazione frontend (es. [BM]) accanto a TS1 e TS2. Il mapping esclusivo non è più coerente quando si utilizzano configurazioni multi-network con politiche di TGRewrite avanzate.
2026-10-19 22:49:42 +02:00
iv3jdv c502da2dfb update 2026-10-19 21:22:21 +02:00
iv3jdv 3b45c14ded frequency precision display 2026-10-18 13:49:21 +02:00
iv3jdv 255066eefa Delete system_monitor.py 2026-10-17 18:50:35 +02:00
iv3jdv 74d7910fec Upload files to "/" 2026-10-17 18:48:51 +02:00
iv3jdv bcb885c878 Merge pull request 'update' (#6) from develop into main
Reviewed-on: #6
2026-10-17 18:36:45 +02:00
iv3jdv 3f59b905c7 update 2026-10-17 18:35:22 +02:00
5 changed files with 711 additions and 588 deletions
+44
View File
@@ -37,6 +37,27 @@ The server acts as the brain of the network:
Please note that **Web Push Notifications** and the **Service Worker** require a secure connection to function. For security reasons, modern browsers only enable these features over **HTTPS**. If you are accessing the console via HTTP (outside of `localhost`), the "Push" button and notification registration will not work. We recommend using a reverse proxy (like Nginx, Caddy, or Traefik) with an SSL certificate. Please note that **Web Push Notifications** and the **Service Worker** require a secure connection to function. For security reasons, modern browsers only enable these features over **HTTPS**. If you are accessing the console via HTTP (outside of `localhost`), the "Push" button and notification registration will not work. We recommend using a reverse proxy (like Nginx, Caddy, or Traefik) with an SSL certificate.
**Pro Tip:** You can use Let's Encrypt to get a free SSL certificate for your domain. **Pro Tip:** You can use Let's Encrypt to get a free SSL certificate for your domain.
### ⚠️ Reverse Proxy & WebSocket Configuration
If you expose the Fleet Console through a reverse proxy like **Apache** on a public IP (HTTPS), standard HTTP proxying will drop Socket.IO real-time connections, causing the dashboard's tables to randomly clear or flash.
You must enable the WebSocket tunnel in Apache:
```bash
sudo a2enmod proxy_wstunnel rewrite headers
```
And insert the **Rewrite** rules *before* the `ProxyPass` directives inside your `<VirtualHost *:443>` block:
```apache
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:9000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://127.0.0.1:9000/$1 [P,L]
ProxyPass /socket.io/ ws://127.0.0.1:9000/socket.io/
ProxyPassReverse /socket.io/ ws://127.0.0.1:9000/socket.io/
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
```
#### 🛠️ Advanced Remote Control & Maintenance #### 🛠️ Advanced Remote Control & Maintenance
* **Remote .INI Editor:** Edit daemon configuration files (e.g., MMDVMHost.ini) directly from the web interface without SSH access. * **Remote .INI Editor:** Edit daemon configuration files (e.g., MMDVMHost.ini) directly from the web interface without SSH access.
* **Service Management:** Start, Stop, or Restart remote system daemons with a single click. * **Service Management:** Start, Stop, or Restart remote system daemons with a single click.
@@ -82,6 +103,7 @@ pip install -r requirements.txt
2. Configure your MQTT broker credentials. 2. Configure your MQTT broker credentials.
3. Define your repeaters in `clients.json`. 3. Define your repeaters in `clients.json`.
4. Generate VAPID keys at [vapidkeys.com](https://vapidkeys.com/) and add them to `config.json` to enable Web Push notifications. *(Note: Push notifications require HTTPS).* 4. Generate VAPID keys at [vapidkeys.com](https://vapidkeys.com/) and add them to `config.json` to enable Web Push notifications. *(Note: Push notifications require HTTPS).*
5. Configure dynamic log rotation sizes (`log_max_mb` and `log_backup_count`) directly in `config.json` to manage disk space.
#### 4. Running as a Service #### 4. Running as a Service
To run the server continuously in production using Gunicorn: To run the server continuously in production using Gunicorn:
@@ -126,6 +148,27 @@ Il server agisce da cervello della rete:
Si prega di notare che le **Notifiche Web Push** e il **Service Worker** richiedono una connessione sicura per funzionare. Per motivi di sicurezza, i browser moderni abilitano queste funzionalità solo su **HTTPS**. Se accedi alla console via HTTP (al di fuori di `localhost`), il tasto "Push" e la registrazione delle notifiche non saranno attivi. Si consiglia l'uso di un reverse proxy (come Nginx, Caddy o Traefik) con certificato SSL. Si prega di notare che le **Notifiche Web Push** e il **Service Worker** richiedono una connessione sicura per funzionare. Per motivi di sicurezza, i browser moderni abilitano queste funzionalità solo su **HTTPS**. Se accedi alla console via HTTP (al di fuori di `localhost`), il tasto "Push" e la registrazione delle notifiche non saranno attivi. Si consiglia l'uso di un reverse proxy (come Nginx, Caddy o Traefik) con certificato SSL.
**Suggerimento:** Puoi usare Let's Encrypt per ottenere un certificato SSL gratuito per il tuo dominio. **Suggerimento:** Puoi usare Let's Encrypt per ottenere un certificato SSL gratuito per il tuo dominio.
### ⚠️ Configurazione Reverse Proxy & WebSocket
Se esponi la Fleet Console tramite un reverse proxy come **Apache** su IP pubblico (HTTPS), il proxy HTTP standard farà cadere continuamente la connessione in tempo reale di Socket.IO, causando fastidiosi "azzeramenti" o lampeggiamenti della dashboard.
Devi abilitare il tunnel WebSocket in Apache:
```bash
sudo a2enmod proxy_wstunnel rewrite headers
```
E inserire le regole di **Rewrite** *prima* del `ProxyPass` all'interno del tuo blocco `<VirtualHost *:443>`:
```apache
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:9000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://127.0.0.1:9000/$1 [P,L]
ProxyPass /socket.io/ ws://127.0.0.1:9000/socket.io/
ProxyPassReverse /socket.io/ ws://127.0.0.1:9000/socket.io/
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
```
#### 🛠️ Controllo Remoto & Manutenzione Avanzata #### 🛠️ Controllo Remoto & Manutenzione Avanzata
* **Editor .INI Remoto:** Modifica i file di configurazione (es. MMDVMHost.ini) direttamente dal pannello web, senza bisogno di accessi SSH. * **Editor .INI Remoto:** Modifica i file di configurazione (es. MMDVMHost.ini) direttamente dal pannello web, senza bisogno di accessi SSH.
* **Gestione Demoni:** Avvia, arresta o riavvia i servizi di sistema remoti con un clic. * **Gestione Demoni:** Avvia, arresta o riavvia i servizi di sistema remoti con un clic.
@@ -171,6 +214,7 @@ pip install -r requirements.txt
2. Inserisci le credenziali del broker MQTT. 2. Inserisci le credenziali del broker MQTT.
3. Definisci i ripetitori nel file `clients.json`. 3. Definisci i ripetitori nel file `clients.json`.
4. Genera le chiavi VAPID su [vapidkeys.com](https://vapidkeys.com/) e inseriscile in `config.json` per attivare le notifiche Push. *(Attenzione: le notifiche Push richiedono obbligatoriamente un certificato HTTPS).* 4. Genera le chiavi VAPID su [vapidkeys.com](https://vapidkeys.com/) e inseriscile in `config.json` per attivare le notifiche Push. *(Attenzione: le notifiche Push richiedono obbligatoriamente un certificato HTTPS).*
5. Configura le dimensioni della rotazione dei log (`log_max_mb` e `log_backup_count`) direttamente nel `config.json` per gestire lo spazio su disco.
#### 4. Esecuzione come Servizio (systemd) #### 4. Esecuzione come Servizio (systemd)
Per eseguire il server in produzione in modo continuo e stabile con Gunicorn: Per eseguire il server in produzione in modo continuo e stabile con Gunicorn:
+244 -212
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -37,5 +37,7 @@
"id_urls": { "id_urls": {
"dmr": "https://radioid.net/static/dmrid.dat", "dmr": "https://radioid.net/static/dmrid.dat",
"nxdn": "https://radioid.net/static/nxdn.csv" "nxdn": "https://radioid.net/static/nxdn.csv"
} },
"log_max_mb": 50,
"log_backup_count": 10
} }
+1 -9
View File
@@ -1,4 +1,4 @@
const CACHE_NAME = 'fleet-c2-v3'; // incrementare a ogni modifica degli asset precaricati const CACHE_NAME = 'fleet-c2-v5';
const PRECACHE_URLS = [ const PRECACHE_URLS = [
'/', '/',
'/manifest.json', '/manifest.json',
@@ -6,8 +6,6 @@ const PRECACHE_URLS = [
]; ];
// --- 1. INSTALL: precache "best effort" ------------------------------------- // --- 1. INSTALL: precache "best effort" -------------------------------------
// Se un file manca (es. icona non ancora caricata) l'installazione NON fallisce:
// un SW che non si installa significa niente notifiche push.
self.addEventListener('install', event => { self.addEventListener('install', event => {
event.waitUntil( event.waitUntil(
caches.open(CACHE_NAME) caches.open(CACHE_NAME)
@@ -26,8 +24,6 @@ self.addEventListener('activate', event => {
}); });
// --- 3. FETCH: network-first, cache come ripiego offline --------------------- // --- 3. FETCH: network-first, cache come ripiego offline ---------------------
// Gestiamo solo le GET della nostra origine. API e WebSocket (socket.io) passano
// sempre direttamente dalla rete: i dati della flotta non vanno mai serviti "vecchi".
self.addEventListener('fetch', event => { self.addEventListener('fetch', event => {
const req = event.request; const req = event.request;
if (req.method !== 'GET') return; if (req.method !== 'GET') return;
@@ -80,8 +76,6 @@ self.addEventListener('push', event => {
icon: '/icon-512.png', icon: '/icon-512.png',
badge: '/icon-512.png', badge: '/icon-512.png',
vibrate: [200, 100, 200], vibrate: [200, 100, 200],
// Stesso tag = la nuova notifica dello stesso nodo sostituisce la precedente
// (invece di accumulare 10 notifiche) e rifà vibrare/suonare.
tag: data.tag || 'fleet-alert', tag: data.tag || 'fleet-alert',
renotify: true, renotify: true,
data: { data: {
@@ -100,8 +94,6 @@ self.addEventListener('push', event => {
}); });
// --- 5. CLICK SULLA NOTIFICA ------------------------------------------------- // --- 5. CLICK SULLA NOTIFICA -------------------------------------------------
// Click sul corpo O su "Apri Dashboard": porta in primo piano la finestra già aperta,
// altrimenti ne apre una nuova. "Chiudi" chiude soltanto.
self.addEventListener('notificationclick', event => { self.addEventListener('notificationclick', event => {
event.notification.close(); event.notification.close();
if (event.action === 'close') return; if (event.action === 'close') return;
+394 -341
View File
File diff suppressed because it is too large Load Diff