Data visualization by connecting "The Things Network(TTN V3)" and "TagoIO". Sensing using LoRaWAN.
Tags: ttn, tagoio, lorawan, visualization
Published: 2022-06-03 00:33:47

I will introduce how to connect the data uploaded to "The Things Network" to "TagoIO" and save and visualize the data.

# 1. How to connect "The Things Network" and "TagoIO".

- Create a free plan account for "TagoIO".

## 1.1 Device registration

- Log in to TagoIO.
- Click "Devices".

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9fkjo4hyl9k1fksxmbfl.png)

- Select "+ Add Device" → "Custom TTI / TTN" or "Custom TTI / TTN".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/quldcov98ear9rw3je2u.png)

- Enter the "device name" and "device EUI". Any "device name" is fine.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iosvvzls878jbhmfl3h1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ex836kv5tu7imy2j8cfs.png)

- Creating an authorization.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7d3dwlew71zaqkercvtg.png)

- Any name is fine.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crso5czg3e1usw4s6kf4.png)

- **Copy** the Authorization you created.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y538qkfasb1zv80h368t.png)

## 1.2 Settings in TTN

- Log in to TTN.
- Select "Webhooks" from your application.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v2mard1zenvfzt4wns8u.png)

- Select "TagoIO".

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0aj2z7wlq8mgye8oj4pc.png)

- Any "Webhook ID" is fine. 
- For "Authorization", enter the "Authorization" created by TagoIO.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4h2bu6sky3coul2j615v.PNG)

- If TTN and TagoIO can work together, "Active" will be "Yes".



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xnyrucxdx94s7rik9h4k.png)

# 2. Data visualization
- Click "+" on DASHBOARDS


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ner16p6uxq9yk681hf7t.png)

- Any name is fine.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/791auc69c0u2l74tt4zx.png)

- Click "Add widget".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zvcooj0dnno5v2g320qb.png)

- First, let's visualize the latest data. 
- Select "Solid".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a4srs85ucx20pvdr2rb1.png)

- Next, decide the details.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b99ak0husso03e6osflo.png)

- In "Data from", enter which variable data of which device is used.

- If you enable "Show last update" in "Options", you can see when it was updated.

- Enter the minimum and maximum values for "Range".
- Click "Create" when you are done.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bi1iuje4iddcz2v9nwn9.png)

- You can add a widget by clicking the "+" on the top right.
- Similarly, try various things.