Introduction: 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.
Step 1: Download Node-red
If you have already installed node-red you can skip this step.
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:
Official Installation Guide: https://nodered.org/docs/getting-started/installation
Step 2: Install the Nodes
Now we have to install the nodes we will need.
There are 2 ways:
1) Open CMD and execute this command:
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
Step 3: 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.
Step 4: 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.
Step 5: 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.
We have a be nice policy.
Please be positive and constructive.