INSTALACION SERVIDOR DE ATAK 1.9.9 CON UN COMANDO E INTEGRACIÓN CON TELEGRAM

 

Requerimientos

  • Servidor Ubuntu 20.04

¿Qué instala?

  • FreeTAKServer (FTS): Servidor de Atak
  • FreeTAKServer User Interface (FTS-UI): Interfaz web para gestionar el FTS
  • FreeTAKHub Webmap: Mapa donde se refleja las posiciones del personal
  • Video Server: Servidor de video
  • FreeTAKHub Server: Node-red para integrar check de video, informe SALUTE
  • FreeTAKHub Voice Server: Servidor de voz con Mumble para chatear con aplicaciones como Mumla (Android)
GitHub - FreeTAKTeam/FreeTAKHub-Installation: FreeTAKHub-Installation
FreeTAKHub-Installation. Contribute to FreeTAKTeam/FreeTAKHub-Installation development by creating an account on GitHub.

Instrucciones de instalación

  1. Una vez creado el droplet en digital ocean con Ubuntu 20.04 accedemos por SSH al droplet en cualquier terminal e introducimos el siguiente comando

wget -qO - https://raw.githubusercontent.com/FreeTAKTeam/FreeTAKHub-Installation/main/scripts/easy_install.sh | sudo bash

2. Accedemos a la ip del servidor:5000 y creamos un usuario con el token que generemos nos hará falta para introducirlo en node-red

3. Accedemos con la ip del servidor:1880 para acceder a node-red e importamos el flow de telegram

Link telegram

GitHub - FreeTAKTeam/FreeTAK_Hub_Telegram: TelegramTAK: Connects telegram to FTS
TelegramTAK: Connects telegram to FTS . Contribute to FreeTAKTeam/FreeTAK_Hub_Telegram development by creating an account on GitHub.

Link Flow telegram

FreeTAK_Hub_Telegram/telegramTAK.json at main · FreeTAKTeam/FreeTAK_Hub_Telegram
TelegramTAK: Connects telegram to FTS . Contribute to FreeTAKTeam/FreeTAK_Hub_Telegram development by creating an account on GitHub.

Importamos el flow copiándolo y pegándolo en node-red

Una vez importado nos vamos a fth pub

Hacemos doble click

Editamos el bot de telegram

Nos vamos a telegram y creamos un bot con BotFather

/newbot

Le damos un nombre al bot por ejemplo "atak_bot"

Y pegamos el token generado en node-red

Editamos la configuración del bot en "bot settings", "group privacy" y clicamos en "turn off"

Lo siguiente es crear un grupo en la barra lateral izquierda

Añadimos el bot generado anteriormente y todo el personal que nos interese que esté

Añadimos "What's my telegram ID?" en el grupo para que nos de la id del chat

Nada más que lo añadamos nos dará la id del chat del grupo
Importante añadir el guión delante como viene marcado

-643851983

Añadimos esta id en node-red

Nos vamos al flow de telegram, doble click en "post chat to fts"

Editamos la url con la ip del servidor:19023 y el endpoint de post a chat

http://IPDELSERVIDOR:19023/ManageChat/postChatToAll

E introducimos el token generado en la interfaz web del FTS

Nos vamos a "post emergency to fts" y lo editamos

Editamos la url para mandar la posición generada con el movil en el telegram como emergencia en el atak

http://IPDELSERVIDOR:19023/ManageEmergency/postEmergency

Y rellenamos el token como anteriormente

Una vez realizado todos estos pasos pinchamos en "deploy" y ya estaría funcionando node-red

A partir de ahora cualquier mensaje enviado en telegram o ubicación mandada en el grupo generado en telegram replicará sobre el FTS

ENLACE VIDEO