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,13 +1,13 @@
# Referencia de API
Documentacion de la API REST de ADAN.
Documentacion de la API REST de ATLAS.
## Informacion General
- **Base URL**: `https://adan.tudominio.com/api/v1`
- **Base URL**: `https://atlas.tudominio.com/api/v1`
- **Autenticacion**: JWT Bearer Token
- **Formato**: JSON
- **Documentacion interactiva**: `https://adan.tudominio.com/api/docs`
- **Documentacion interactiva**: `https://atlas.tudominio.com/api/docs`
## Autenticacion
@@ -649,7 +649,7 @@ GET /reportes/{id}/descargar
### Conexion
```javascript
const ws = new WebSocket('wss://adan.tudominio.com/ws/v1/ubicaciones');
const ws = new WebSocket('wss://atlas.tudominio.com/ws/v1/ubicaciones');
ws.onopen = () => {
// Autenticar

View File

@@ -1,16 +1,16 @@
# Guia de Configuracion
Configuracion detallada de todos los componentes del sistema ADAN.
Configuracion detallada de todos los componentes del sistema ATLAS.
## Variables de Entorno
El archivo `/opt/adan/.env` contiene todas las configuraciones del sistema.
El archivo `/opt/atlas/.env` contiene todas las configuraciones del sistema.
### Base de Datos
```bash
# PostgreSQL
DATABASE_URL=postgresql://adan:PASSWORD@localhost:5432/adan_db
DATABASE_URL=postgresql://atlas:PASSWORD@localhost:5432/atlas_db
# Conexiones maximas al pool
DB_POOL_SIZE=10
@@ -60,7 +60,7 @@ MEDIAMTX_WEBRTC=http://localhost:8889
MEDIAMTX_HLS=http://localhost:8888
# Directorio de grabaciones
VIDEO_STORAGE_PATH=/opt/adan/videos
VIDEO_STORAGE_PATH=/opt/atlas/videos
VIDEO_RETENTION_DAYS=30
```
@@ -71,7 +71,7 @@ MQTT_HOST=localhost
MQTT_PORT=1883
MQTT_USER=mesh_gateway
MQTT_PASSWORD=password_seguro
MQTT_TOPIC=adan/mesh/#
MQTT_TOPIC=atlas/mesh/#
```
### Notificaciones
@@ -82,18 +82,18 @@ SMTP_HOST=smtp.tudominio.com
SMTP_PORT=587
SMTP_USER=notificaciones@tudominio.com
SMTP_PASSWORD=password
SMTP_FROM=ADAN <notificaciones@tudominio.com>
SMTP_FROM=ATLAS <notificaciones@tudominio.com>
# Push Notifications (Firebase)
FIREBASE_CREDENTIALS_FILE=/opt/adan/firebase-credentials.json
FIREBASE_CREDENTIALS_FILE=/opt/atlas/firebase-credentials.json
```
### Dominio
```bash
DOMAIN=adan.tudominio.com
API_URL=https://adan.tudominio.com/api
FRONTEND_URL=https://adan.tudominio.com
DOMAIN=atlas.tudominio.com
API_URL=https://atlas.tudominio.com/api
FRONTEND_URL=https://atlas.tudominio.com
```
---
@@ -108,8 +108,8 @@ Archivo: `/opt/traccar/conf/traccar.xml`
<properties>
<!-- Base de datos -->
<entry key='database.driver'>org.postgresql.Driver</entry>
<entry key='database.url'>jdbc:postgresql://localhost:5432/adan_db</entry>
<entry key='database.user'>adan</entry>
<entry key='database.url'>jdbc:postgresql://localhost:5432/atlas_db</entry>
<entry key='database.user'>atlas</entry>
<entry key='database.password'>TU_PASSWORD</entry>
<!-- Deshabilitar web UI de Traccar (usamos nuestro dashboard) -->
@@ -192,7 +192,7 @@ hlsSegmentDuration: 1s
# Grabacion
record: no # Manejamos grabacion desde nuestra API
recordPath: /opt/adan/videos/%path/%Y%m%d_%H%M%S.mp4
recordPath: /opt/atlas/videos/%path/%Y%m%d_%H%M%S.mp4
# Paths (camaras)
paths:
@@ -231,17 +231,17 @@ credentials-file: /root/.cloudflared/TU_TUNNEL_ID.json
ingress:
# API Backend
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /api/*
service: http://localhost:8000
# WebSocket
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /ws/*
service: http://localhost:8000
# Frontend (default)
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
service: http://localhost:3000
# Catch-all
@@ -352,21 +352,21 @@ ufw enable
## Configuracion de Systemd Services
### adan-api.service
### atlas-api.service
```ini
[Unit]
Description=ADAN API Backend
Description=ATLAS API Backend
After=network.target postgresql.service redis.service
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/adan/backend
Environment="PATH=/opt/adan/venv/bin"
EnvironmentFile=/opt/adan/.env
ExecStart=/opt/adan/venv/bin/uvicorn app.main:app \
WorkingDirectory=/opt/atlas/backend
Environment="PATH=/opt/atlas/venv/bin"
EnvironmentFile=/opt/atlas/.env
ExecStart=/opt/atlas/venv/bin/uvicorn app.main:app \
--host 127.0.0.1 \
--port 8000 \
--workers 4 \
@@ -379,18 +379,18 @@ RestartSec=5
WantedBy=multi-user.target
```
### adan-web.service
### atlas-web.service
```ini
[Unit]
Description=ADAN Web Frontend
Description=ATLAS Web Frontend
After=network.target
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/adan/frontend
WorkingDirectory=/opt/atlas/frontend
ExecStart=/usr/bin/npx serve -s dist -l 3000
Restart=always
RestartSec=5
@@ -439,11 +439,11 @@ Despues de modificar archivos de configuracion:
systemctl daemon-reload
# Reiniciar servicio especifico
systemctl restart adan-api
systemctl restart atlas-api
# Reiniciar todos los servicios
systemctl restart adan-api adan-web traccar mediamtx
systemctl restart atlas-api atlas-web traccar mediamtx
# Verificar estado
systemctl status adan-api adan-web traccar mediamtx
systemctl status atlas-api atlas-web traccar mediamtx
```

View File

@@ -1,6 +1,6 @@
# Guia de Instalacion
Esta guia cubre la instalacion completa del sistema ADAN en un servidor Proxmox.
Esta guia cubre la instalacion completa del sistema ATLAS en un servidor Proxmox.
## Requisitos Previos
@@ -31,7 +31,7 @@ Esta guia cubre la instalacion completa del sistema ADAN en un servidor Proxmox.
1. Click en "Create VM"
2. **General**:
- Name: `adan-server`
- Name: `atlas-server`
- Start at boot: Si
3. **OS**:
- ISO image: ubuntu-22.04-live-server-amd64.iso
@@ -77,9 +77,9 @@ sudo apt install -y git curl wget
```bash
cd /opt
sudo git clone https://git.consultoria-as.com/tu-usuario/adan.git adan
sudo chown -R $USER:$USER /opt/adan
cd /opt/adan
sudo git clone https://git.consultoria-as.com/tu-usuario/atlas.git atlas
sudo chown -R $USER:$USER /opt/atlas
cd /opt/atlas
```
## Paso 4: Configurar Variables
@@ -93,7 +93,7 @@ nano deploy/scripts/install.sh
Modificar las variables al inicio:
```bash
DOMAIN="adan.tudominio.com" # Tu dominio
DOMAIN="atlas.tudominio.com" # Tu dominio
ADMIN_EMAIL="admin@tudominio.com" # Email del admin
```
@@ -124,7 +124,7 @@ El script realizara automaticamente:
1. Ir a **Zero Trust** > **Access** > **Tunnels**
2. Click **Create a tunnel**
3. Nombre: `adan`
3. Nombre: `atlas`
4. Copiar el token del tunnel
### En tu servidor:
@@ -141,17 +141,17 @@ En el dashboard del tunnel, agregar Public Hostnames:
| Subdomain | Domain | Service |
|-----------|--------|---------|
| adan | tudominio.com | http://localhost:3000 |
| adan | tudominio.com | http://localhost:8000 (path: /api/*) |
| adan | tudominio.com | http://localhost:8000 (path: /ws/*) |
| atlas | tudominio.com | http://localhost:3000 |
| atlas | tudominio.com | http://localhost:8000 (path: /api/*) |
| atlas | tudominio.com | http://localhost:8000 (path: /ws/*) |
## Paso 7: Verificar Instalacion
### Verificar servicios:
```bash
sudo systemctl status adan-api
sudo systemctl status adan-web
sudo systemctl status atlas-api
sudo systemctl status atlas-web
sudo systemctl status traccar
sudo systemctl status mediamtx
sudo systemctl status cloudflared
@@ -161,7 +161,7 @@ Todos deben mostrar `active (running)`.
### Verificar acceso web:
Abrir en navegador: `https://adan.tudominio.com`
Abrir en navegador: `https://atlas.tudominio.com`
Deberia mostrar la pagina de login.
@@ -181,7 +181,7 @@ Las credenciales se generaron durante la instalacion.
Ver credenciales guardadas:
```bash
cat /opt/adan/.credentials
cat /opt/atlas/.credentials
```
Ejemplo de salida:
@@ -190,8 +190,8 @@ Ejemplo de salida:
=================================
CREDENCIALES DE ACCESO
=================================
Dashboard: https://adan.tudominio.com
Admin Email: admin@adan.tudominio.com
Dashboard: https://atlas.tudominio.com
Admin Email: admin@atlas.tudominio.com
Admin Password: xK9mN2pL5qR8
Database Password: [guardado en .env]
=================================
@@ -229,17 +229,17 @@ Si el servidor esta detras de NAT:
```bash
# Ver logs detallados
journalctl -u adan-api -n 100 --no-pager
journalctl -u atlas-api -n 100 --no-pager
# Verificar configuracion
cat /opt/adan/.env
cat /opt/atlas/.env
```
### No puedo acceder al dashboard
```bash
# Verificar tunnel
cloudflared tunnel info adan
cloudflared tunnel info atlas
# Reiniciar tunnel
sudo systemctl restart cloudflared

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:

View File

@@ -1,6 +1,6 @@
# Solucion de Problemas
Guia para diagnosticar y resolver problemas comunes en ADAN.
Guia para diagnosticar y resolver problemas comunes en ATLAS.
## Diagnostico Rapido
@@ -8,10 +8,10 @@ Guia para diagnosticar y resolver problemas comunes en ADAN.
```bash
# Ver estado de todos los servicios
systemctl status adan-api adan-web traccar mediamtx cloudflared redis postgresql
systemctl status atlas-api atlas-web traccar mediamtx cloudflared redis postgresql
# Resumen rapido
for svc in adan-api adan-web traccar mediamtx cloudflared; do
for svc in atlas-api atlas-web traccar mediamtx cloudflared; do
echo "$svc: $(systemctl is-active $svc)"
done
```
@@ -20,10 +20,10 @@ done
```bash
# API Backend
journalctl -u adan-api -f
journalctl -u atlas-api -f
# Frontend
journalctl -u adan-web -f
journalctl -u atlas-web -f
# Traccar (GPS)
journalctl -u traccar -f
@@ -45,7 +45,7 @@ curl http://localhost:8000/api/v1/health
curl http://localhost:3000
# Base de datos
psql -U adan -d adan_db -c "SELECT 1"
psql -U atlas -d atlas_db -c "SELECT 1"
# Redis
redis-cli ping
@@ -64,12 +64,12 @@ redis-cli ping
1. Estado del tunnel de Cloudflare:
```bash
systemctl status cloudflared
cloudflared tunnel info adan
cloudflared tunnel info atlas
```
2. Estado del frontend:
```bash
systemctl status adan-web
systemctl status atlas-web
curl http://localhost:3000
```
@@ -90,17 +90,17 @@ systemctl restart cloudflared
**Verificar**:
```bash
systemctl status adan-api
systemctl status atlas-api
curl http://localhost:8000/api/v1/health
```
**Soluciones**:
```bash
# Reiniciar backend
systemctl restart adan-api
systemctl restart atlas-api
# Ver logs de error
journalctl -u adan-api -n 100 --no-pager
journalctl -u atlas-api -n 100 --no-pager
```
### Error de SSL/Certificado
@@ -186,7 +186,7 @@ curl http://localhost:8082/api/devices
**Verificar**:
```bash
# Ver ubicaciones recientes en DB
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT vehiculo_id, tiempo, lat, lng
FROM ubicaciones
ORDER BY tiempo DESC
@@ -210,7 +210,7 @@ psql -U adan -d adan_db -c "
**Verificar en el servidor**:
```bash
# Ver ultimas ubicaciones de apps
journalctl -u adan-api | grep "ubicacion" | tail -20
journalctl -u atlas-api | grep "ubicacion" | tail -20
```
### App no puede conectar al servidor
@@ -238,7 +238,7 @@ journalctl -u adan-api | grep "ubicacion" | tail -20
**En el servidor**:
```bash
# Ver logs de notificaciones
journalctl -u adan-api | grep "push\|notification"
journalctl -u atlas-api | grep "push\|notification"
```
---
@@ -284,21 +284,21 @@ ffprobe rtsp://usuario:password@IP_CAMARA/stream
1. Espacio en disco:
```bash
df -h /opt/adan/videos
df -h /opt/atlas/videos
```
2. Permisos:
```bash
ls -la /opt/adan/videos
ls -la /opt/atlas/videos
```
**Solucion**:
```bash
# Liberar espacio
find /opt/adan/videos -name "*.mp4" -mtime +30 -delete
find /opt/atlas/videos -name "*.mp4" -mtime +30 -delete
# Arreglar permisos
chown -R www-data:www-data /opt/adan/videos
chown -R www-data:www-data /opt/atlas/videos
```
---
@@ -312,7 +312,7 @@ chown -R www-data:www-data /opt/adan/videos
systemctl status postgresql
# Verificar que acepta conexiones
psql -U adan -d adan_db -c "SELECT 1"
psql -U atlas -d atlas_db -c "SELECT 1"
```
**Soluciones**:
@@ -329,7 +329,7 @@ journalctl -u postgresql -f
**Verificar**:
```bash
# Ver consultas lentas
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT pid, now() - pg_stat_activity.query_start AS duration, query
FROM pg_stat_activity
WHERE state != 'idle'
@@ -341,26 +341,26 @@ psql -U adan -d adan_db -c "
1. Ejecutar VACUUM:
```bash
psql -U adan -d adan_db -c "VACUUM ANALYZE;"
psql -U atlas -d atlas_db -c "VACUUM ANALYZE;"
```
2. Verificar indices:
```bash
psql -U adan -d adan_db -c "\di"
psql -U atlas -d atlas_db -c "\di"
```
### Disco lleno por ubicaciones
**Verificar**:
```bash
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT pg_size_pretty(pg_total_relation_size('ubicaciones'));
"
```
**Solucion**: Comprimir datos antiguos (TimescaleDB):
```bash
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT compress_chunk(c)
FROM show_chunks('ubicaciones', older_than => INTERVAL '7 days') c;
"
@@ -406,10 +406,10 @@ ps aux | grep uvicorn
1. Aumentar workers en el servicio:
```bash
# Editar /etc/systemd/system/adan-api.service
# Editar /etc/systemd/system/atlas-api.service
# Cambiar --workers 4 a --workers 8
systemctl daemon-reload
systemctl restart adan-api
systemctl restart atlas-api
```
2. Verificar conexiones a Redis:
@@ -429,7 +429,7 @@ redis-cli info clients
systemctl status mosquitto
# Suscribirse para ver mensajes
mosquitto_sub -h localhost -t "adan/mesh/#" -u mesh_gateway -P password
mosquitto_sub -h localhost -t "atlas/mesh/#" -u mesh_gateway -P password
```
**Verificar configuracion del gateway**:
@@ -441,7 +441,7 @@ mosquitto_sub -h localhost -t "adan/mesh/#" -u mesh_gateway -P password
**Verificar**:
```bash
journalctl -u adan-api | grep "meshtastic\|mesh"
journalctl -u atlas-api | grep "meshtastic\|mesh"
```
**Solucion**: Verificar que el servicio MQTT esta corriendo en el backend.
@@ -455,38 +455,38 @@ journalctl -u adan-api | grep "meshtastic\|mesh"
**Verificar**:
```bash
# Espacio en disco
df -h /opt/adan/backups
df -h /opt/atlas/backups
# Permisos
ls -la /opt/adan/scripts/backup.sh
ls -la /opt/atlas/scripts/backup.sh
```
**Ejecutar manualmente para ver errores**:
```bash
/opt/adan/scripts/backup.sh 2>&1 | tee /tmp/backup.log
/opt/atlas/scripts/backup.sh 2>&1 | tee /tmp/backup.log
```
### Restauracion falla
**Verificar integridad del backup**:
```bash
gunzip -t /opt/adan/backups/db_FECHA.sql.gz
gunzip -t /opt/atlas/backups/db_FECHA.sql.gz
```
**Restaurar paso a paso**:
```bash
# Parar servicios
systemctl stop adan-api
systemctl stop atlas-api
# Recrear base de datos
psql -U postgres -c "DROP DATABASE adan_db;"
psql -U postgres -c "CREATE DATABASE adan_db OWNER adan;"
psql -U postgres -c "DROP DATABASE atlas_db;"
psql -U postgres -c "CREATE DATABASE atlas_db OWNER atlas;"
# Restaurar
gunzip -c backup.sql.gz | psql -U adan -d adan_db
gunzip -c backup.sql.gz | psql -U atlas -d atlas_db
# Iniciar servicios
systemctl start adan-api
systemctl start atlas-api
```
---
@@ -495,7 +495,7 @@ systemctl start adan-api
```bash
# Estado general del sistema
systemctl status adan-api adan-web traccar mediamtx cloudflared
systemctl status atlas-api atlas-web traccar mediamtx cloudflared
# Uso de recursos
htop
@@ -503,7 +503,7 @@ df -h
free -h
# Logs en tiempo real
journalctl -u adan-api -f
journalctl -u atlas-api -f
# Conexiones activas
ss -tlnp
@@ -515,10 +515,10 @@ netstat -tlnp
curl -s http://localhost:8000/api/v1/health | jq
# Test de base de datos
psql -U adan -d adan_db -c "SELECT COUNT(*) FROM vehiculos;"
psql -U atlas -d atlas_db -c "SELECT COUNT(*) FROM vehiculos;"
# Ultimas ubicaciones
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT v.nombre, u.tiempo, u.lat, u.lng, u.velocidad
FROM ubicaciones u
JOIN vehiculos v ON u.vehiculo_id = v.id
@@ -527,7 +527,7 @@ psql -U adan -d adan_db -c "
"
# Alertas pendientes
psql -U adan -d adan_db -c "
psql -U atlas -d atlas_db -c "
SELECT COUNT(*) as pendientes FROM alertas WHERE atendida = false;
"
```
@@ -545,12 +545,12 @@ Si no puedes resolver el problema:
echo "=== FECHA ==="
date
echo "=== SERVICIOS ==="
systemctl status adan-api adan-web traccar mediamtx cloudflared
systemctl status atlas-api atlas-web traccar mediamtx cloudflared
echo "=== RECURSOS ==="
free -h
df -h
echo "=== LOGS RECIENTES ==="
journalctl -u adan-api -n 50 --no-pager
journalctl -u atlas-api -n 50 --no-pager
} > /tmp/diagnostico.txt
```

View File

@@ -1,12 +1,12 @@
# Manual del Administrador
Guia completa para administrar el sistema ADAN.
Guia completa para administrar el sistema ATLAS.
## Acceso al Sistema
### Iniciar Sesion
1. Abrir `https://adan.tudominio.com` en el navegador
1. Abrir `https://atlas.tudominio.com` en el navegador
2. Ingresar email y contrasena
3. Click en "Ingresar"
@@ -386,15 +386,15 @@ Los mensajes y respuestas aparecen como conversacion en el detalle del conductor
```bash
ssh admin@servidor
/opt/adan/scripts/backup.sh
/opt/atlas/scripts/backup.sh
```
Los backups se guardan en `/opt/adan/backups/`
Los backups se guardan en `/opt/atlas/backups/`
### Restaurar Backup
```bash
/opt/adan/scripts/restore.sh /opt/adan/backups/db_20260121.sql.gz
/opt/atlas/scripts/restore.sh /opt/atlas/backups/db_20260121.sql.gz
```
### Backups Automaticos
@@ -408,5 +408,5 @@ Se ejecutan diariamente a las 3:00 AM. Se mantienen los ultimos 7 dias.
Para problemas tecnicos:
1. Revisar [Solucion de Problemas](troubleshooting.md)
2. Revisar logs: `journalctl -u adan-api -f`
2. Revisar logs: `journalctl -u atlas-api -f`
3. Contactar soporte tecnico

View File

@@ -1,20 +1,20 @@
# Manual del Conductor - App ADAN
# Manual del Conductor - App ATLAS
Guia completa para usar la aplicacion movil de ADAN.
Guia completa para usar la aplicacion movil de ATLAS.
## Instalacion de la App
### Android
1. Abrir Play Store
2. Buscar "ADAN Conductor"
2. Buscar "ATLAS Conductor"
3. Instalar la aplicacion
4. Abrir la app
### iPhone
1. Abrir App Store
2. Buscar "ADAN Conductor"
2. Buscar "ATLAS Conductor"
3. Instalar la aplicacion
4. Abrir la app
@@ -238,7 +238,7 @@ La app muestra el numero de telefono de emergencia de tu empresa. Puedes tocarlo
Si tienes problemas con el GPS:
1. Ir a **Configuracion** del telefono
2. Buscar la app **ADAN**
2. Buscar la app **ATLAS**
3. Tocar **Permisos**
4. Asegurar que **Ubicacion** este en **Siempre permitir**

View File

@@ -1,6 +1,6 @@
# Configuracion de Video Streaming
Guia para configurar camaras y video streaming en ADAN.
Guia para configurar camaras y video streaming en ATLAS.
## Arquitectura de Video
@@ -12,7 +12,7 @@ Camaras en Vehiculos Servidor Dashboard/App
[Cam IP] --RTSP--> |
|
[Grabaciones]
/opt/adan/videos/
/opt/atlas/videos/
```
## Tipos de Camaras Soportadas
@@ -50,7 +50,7 @@ Cualquier camara con:
### 4. Celular como Dashcam
La app ADAN puede usar la camara del celular:
La app ATLAS puede usar la camara del celular:
- Sin costo adicional
- Calidad depende del celular
- Consume bateria y datos
@@ -240,7 +240,7 @@ Configurar en **Configuracion** > **Retencion de datos**:
Script de limpieza automatica:
```bash
# Ejecutar diariamente via cron
find /opt/adan/videos -name "*.mp4" -mtime +30 -delete
find /opt/atlas/videos -name "*.mp4" -mtime +30 -delete
```
---
@@ -344,10 +344,10 @@ Soluciones:
Verificar:
```bash
# Espacio en disco
df -h /opt/adan/videos
df -h /opt/atlas/videos
# Permisos
ls -la /opt/adan/videos
ls -la /opt/atlas/videos
# Logs de MediaMTX
journalctl -u mediamtx -f