For the IoT platform installation. 1
We're going to use a remote Linux server that we have rented in a cloud provider. 2
For this example, the server name will be: iot-app.univ-lorawan.fr. 3
If you don't have a remote server or a domain name, then don't worry. 4
You can do it on your own machine if you want. 5
We've prepared everything. 6
The only thing you need to do is to download the configuration code from our GitHub repository. 7
Git clone the repository called LoRaWAN. 8
The configuration is in a file called Docker-compose.yml in the folder LoRaWAN/application/IoT-app 9
... 10
If you look at this Docker-compose.yml file, then you can see the three services Node-RED, influxdb 11
and Grafana. 12
Obviously if you already have a Node-RED instance running because you installed it earlier in this course, 13
then you have to command the Node-RED part using the # symbol. 14
Otherwise you can stop your active Node-RED container and start everything over. 15
Anyway, we're going to give the explanation from a fresh installation, so we'll build everything from 16
the ground up. 17
Let's see in detail what we have prepared for these three services. 18
For Node-RED we've used the default Node-RED container, but we added the dashboard library, so we'll 19
be able to create dashboard in Node-RED if you don't want to use Grafana. 20
We also added a basic authentication to access the Node-RED web page with a login and password. 21
The login is "admin" and the password is "univ-lorawan." 22
For influxdb, there is also a username and a password to access the database. 23
Again, it's "admin" for the username and "univ-lorawan" for the password. 24
You can easily change it here if you want. 25
For influxdb. 26
We'll also see later that we need to provide the name of an organization, a bucket and a token. 27
You can choose your own value here so that it will be applied during the container creation. 28
If you don't provide these values, then it doesn't matter. 29
You will be able to create them from the user interface later. 30
And finally, to enter the Grafana user interface on Port 3000, we'll need the same username and password. 31
And again, you can see that you can change it here. 32
Great. 33
So you can use the default value from this file and use it exactly as you've downloaded it without modifying 34
anything. 35
But be careful. 36
Please check this configuration when you download the repository from GitHub because there might be 37
little changes or updates on this file. 38
When we're happy with the configuration, then we just need to use the command "sudo docker compose up -d" 39
... 40
All images are downloaded, containers are created and after a few seconds everything is up and running. 41
As usual, we can check the running services with the command "sudo docker ps" and there we go. 42
We have all the information on Node-RED, influxdb and Grafana.