Lora Temperature Dashboard
In my last Instructable i have shown you how to connect a Temperature sensor to Lora over TTN. Now i'm going to show you how you can read this data and show it in a Dashboard. We will also cover, how to use the data in IFTTT.
Download Node-red
If you have already installed node-red you can skip this step.
Install node-red
First you have to install Node.js. After you finished the installation open the CMD and execute this command:
npm install -g --unsafe-perm node-red
to start node-red open CMD and execute this command:
node-red
Official Installation Guide: https://nodered.org/docs/getting-started/installation
Downloads
Install the Nodes
Now we have to install the nodes we will need.
There are 2 ways:
1) Open CMD and execute this command:
cd ./.node-red
npm install node-red-dashboard
2) Make sure node-red is running,open 127.0.0.1:1880, press the 3 bars in the top-right corner, go to manage palette, go to install, search for "node-red-dashboard", press install
Open Node-red and Install Flow
Open node-red with by typing "127.0.0.1:1880" in your browser.
Copy the text in the node-red.txt from below
Press the 3 bars in the top-right corner, go to import and press clipboard. Now paste the text you copied before.
Downloads
Configure MQTT-node
Double click on the MQTT node and edit it with the pencil in the top-right corner.
Set the server to: "eu.thethings.network" and the port to "1883"
Press "Security" and Insert your credentials
you can find your credentials on the application site.
Some Extras
In my Arduino script i have multiplied the temperature with the factor 100 in order to remove the decimalplaces. If you don't want this feature, you can easily remove the node and connect "Parsefloat" to "Celsius/Farenheit".
I also have a node which allows you to change between celsius and farenheit. In order to Switch to Farenheit, just comment the first line and remove the "//" from the second line.