generated from openremote/custom-project
-
Notifications
You must be signed in to change notification settings - Fork 6
Quickstart
Panos Kalogeropoulos edited this page Apr 1, 2024
·
7 revisions
This page will show you how to quickly deploy the Fleet Management integration, and connect a Teltonika device to it, as a way to showcase the functions of the installation.
- A computer that is publically accessible through an FQDN. Of course, can be an EC2 instance, etc. with either an x86 or ARM64 processor. The following instructions will use a headless Ubuntu hostname.
- A Docker installation
- A Teltonika Telematics device (in this guide, we assume that there is no need for the Teltonika legacy server).
- A method of configuring the device, whether that is through SMS, TCT, or Teltonika Configurator. For simplicity, we are going to use the most recent (at the time of writing) Teltonika Configurator for this tutorial
- A SIM card
- Create an empty folder, where we will keep all fleet-management related files
mkdir fleet-management && \
cd fleet-management
- Download docker-compose.yml
wget https://raw.githubusercontent.com/openremote/fleet-management/main/docker-compose.yml
- Start the docker-compose project, with the correct hostname passed as environment variable
OR_HOSTNAME
:
OR_HOSTNAME={hostname} docker-compose -p fleet-management up -d
- When all Docker containers are
healthy
(except forfleet-management-deployment-1
), pull the certificate file from theproxy
container:
sudo docker cp -L fleet-management-proxy-1:/deployment/letsencrypt/live/{your FQDN}/fullchain.pem {path to your directory}/fullchain.pem
- Reverse the order of the certificate chain:
awk '/-----BEGIN CERTIFICATE-----/{x="cert"++i".pem"}; {print > x}' fullchain.pem && \
(cat cert3.pem; cat cert2.pem; cat cert1.pem) > reversed_certchain.pem && \
rm cert1.pem cert2.pem cert3.pem
- Security -> Certificates -> Upload -> select the file
reversed_certchain.pem
- System -> Codec JSON
- GPRS -> Ensure correct APN settings, follow ISP's instructions
- GPRS -> Server Settings -> Domain: {hostname}
- GPRS -> Server Settings -> Port: 8883
- GPRS -> Server Settings -> Protocol: MQTT
- GPRS -> Server Settings -> TLS Encryption -> TLS/DTLS
- GPRS -> MQTT Settings -> MQTT Client Type -> Custom
- GPRS -> MQTT Settings -> Device ID {leave empty}
- GPRS -> MQTT Settings -> Data Topic ->
{realm Name}/{random client ID}/teltonika/%imei%/data
- GPRS -> MQTT Settings -> Commands Topic ->
{realm Name}/{random client ID}/teltonika/%imei%/commands
If you want any other device-specific setup, you may do so now.
That's basically it. If you did everything right, you'll see the assets be created in the Assets tab on the map. You can now rename your asset, and use OpenRemote as normal. This guide does not include setup for AssetStateDuration.