feat: Complete ATLAS system installation and API fixes

## Backend Changes
- Add new API endpoints: combustible, pois, mantenimiento, video, configuracion
- Fix vehiculos endpoint to return paginated response with items array
- Add /vehiculos/all endpoint for non-paginated list
- Add /geocercas/all endpoint
- Add /alertas/configuracion GET/PUT endpoints
- Add /viajes/activos and /viajes/iniciar endpoints
- Add /reportes/stats, /reportes/templates, /reportes/preview endpoints
- Add /conductores/all and /conductores/disponibles endpoints
- Update router.py to include all new modules

## Frontend Changes
- Fix authentication token handling (snake_case vs camelCase)
- Update vehiculosApi.listAll to use /vehiculos/all
- Fix FuelGauge component usage in Combustible page
- Fix chart component exports (named + default exports)
- Update API client for proper token refresh

## Infrastructure
- Rename services from ADAN to ATLAS
- Configure Cloudflare tunnel for atlas.consultoria-as.com
- Update systemd service files
- Configure PostgreSQL with TimescaleDB
- Configure Redis, Mosquitto, Traccar, MediaMTX

## Documentation
- Update installation guides
- Update API reference
- Rename all ADAN references to ATLAS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
ATLAS Admin
2026-01-25 03:04:23 +00:00
parent 0dfce3ce20
commit e59aa2a742
73 changed files with 4415 additions and 450 deletions

View File

@@ -1,6 +1,6 @@
# Integracion Meshtastic
Guia para configurar dispositivos Meshtastic con ADAN.
Guia para configurar dispositivos Meshtastic con ATLAS.
## Que es Meshtastic
@@ -11,7 +11,7 @@ Meshtastic es una plataforma de comunicacion mesh usando radio LoRa:
- **Bajo costo**: Dispositivos desde $20 USD
- **Bajo consumo**: Semanas de bateria
### Casos de Uso en ADAN
### Casos de Uso en ATLAS
- Vehiculos en zonas rurales sin cobertura celular
- Operaciones en minas, campos, areas remotas
@@ -48,7 +48,7 @@ Meshtastic es una plataforma de comunicacion mesh usando radio LoRa:
| MQTT / Internet
v
[Tu Servidor]
ADAN
ATLAS
```
---
@@ -153,7 +153,7 @@ meshtastic --set mqtt.enabled true
meshtastic --set mqtt.address tu-servidor.com
meshtastic --set mqtt.username mesh_gateway
meshtastic --set mqtt.password tu_password
meshtastic --set mqtt.root_topic adan/mesh
meshtastic --set mqtt.root_topic atlas/mesh
meshtastic --set mqtt.encryption_enabled true
meshtastic --set mqtt.json_enabled true
```
@@ -168,7 +168,7 @@ MQTT Enabled: true
MQTT Server: tu-servidor.com:1883
MQTT Username: mesh_gateway
MQTT Password: tu_password
Root Topic: adan/mesh
Root Topic: atlas/mesh
JSON Enabled: true
```
@@ -190,7 +190,7 @@ mosquitto_passwd -c /etc/mosquitto/passwd mesh_gateway
# Ingresar password
```
Configuracion `/etc/mosquitto/conf.d/adan.conf`:
Configuracion `/etc/mosquitto/conf.d/atlas.conf`:
```
listener 1883
allow_anonymous false
@@ -207,12 +207,12 @@ systemctl restart mosquitto
Suscribirse al topic para ver mensajes:
```bash
mosquitto_sub -h localhost -t "adan/mesh/#" -u mesh_gateway -P tu_password
mosquitto_sub -h localhost -t "atlas/mesh/#" -u mesh_gateway -P tu_password
```
Deberian aparecer mensajes JSON cuando los nodos envien posicion.
### 3. Configurar en ADAN
### 3. Configurar en ATLAS
Variables de entorno en `.env`:
```bash
@@ -220,7 +220,7 @@ MQTT_HOST=localhost
MQTT_PORT=1883
MQTT_USER=mesh_gateway
MQTT_PASSWORD=tu_password
MQTT_TOPIC=adan/mesh/#
MQTT_TOPIC=atlas/mesh/#
```
---
@@ -319,7 +319,7 @@ Cada vehiculo puede actuar como relay si esta configurado como ROUTER_CLIENT.
1. Verificar que el gateway recibe mensajes:
```bash
mosquitto_sub -h localhost -t "adan/mesh/#" -u mesh_gateway -P password
mosquitto_sub -h localhost -t "atlas/mesh/#" -u mesh_gateway -P password
```
2. Verificar que el nodo esta en el mismo canal: