<
From version < 23.1 >
edited by Xiaoling
on 2022/09/05 09:11
To version < 23.2 >
edited by Xiaoling
on 2022/09/05 09:35
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,27 +1,36 @@
1 +**Table of Contents:**
2 +
3 +{{toc/}}
4 +
5 +
1 1  = 1.  Indoor Tracking Examples base on iBeacon =
2 2  
3 3  
9 +
4 4  == Create a Losant Webhook ==
5 5  
12 +
6 6  If you do not have a Losant Account, you can sign up for a free [[Losant Developer Sandbox>>url:https://www.losant.com/iot-platform/sandbox]] account. Once you have an account, [[create a new application>>url:https://docs.losant.com/applications/overview/#creating-applications]]. You can start from a blank application or from a [[Losant Application Template>>url:https://docs.losant.com/templates/overview/]], like [[The Things Network Application Template>>url:https://docs.losant.com/templates/the-things-network/]].
7 7  
8 -Once youve created a new application, click Webhooks and then Add Webhook.
15 +Once you've created a new application, click **Webhooks** and then **Add Webhook**.
9 9  
10 10  [[image:image-20220905084626-2.png]]
11 11  
12 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]]
13 13  
14 -Enter a Webhook Name and then click Create Webhook. You may also enter a username and password to use Basic Auth. If you use Basic Auth, you will need to [[edit your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
15 15  
21 +
22 +Enter a **Webhook Name** and then click **Create Webhook**. You may also enter a username and password to use Basic Auth. If you use Basic Auth, you will need to [[edit your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
23 +
16 16  [[image:image-20220905084724-3.png]]
17 17  
18 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.jpg]]
19 19  
27 +
28 +
20 20  Once the Webhook is created, copy the unique identifier from the URL that comes after [[https:~~/~~/triggers.losant.com/webhooks/.>>url:https://triggers.losant.com/webhooks/]]
21 21  
31 +
22 22  [[image:image-20220905084736-4.png]]
23 23  
24 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.jpg]]
25 25  
26 26  
27 27  
... ... @@ -28,64 +28,64 @@
28 28  == Configure TTS to Use the Losant Webhook ==
29 29  
30 30  
31 -In the TTS application , click on Integrations, then Webhooks, and then Add webhook.
40 +In the TTS application , click on **Integrations**, then **Webhooks**, and then **Add webhook**.
32 32  
33 33  [[image:image-20220905084816-5.png]]
34 34  
35 35  
36 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.jpg]]
37 37  
38 -Click on the [[Losant Webhook>>url:https://www.thethingsindustries.com/docs/integrations/cloud-integrations/losant/]] tile. If you are using Basic Auth for this Webhook or need to subscribe to more than just uplink messages, then please review the end of this How-To Guide in the section named [[Editing Your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
39 39  
47 +Click on the [[Losant Webhook>>url:https://www.thethingsindustries.com/docs/integrations/cloud-integrations/losant/]] tile. If you are using Basic Auth for this Webhook or need to subscribe to more than just **uplink** messages, then please review the end of this How-To Guide in the section named [[Editing Your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
48 +
40 40  [[image:image-20220905084846-6.png]]
41 41  
42 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.jpg]]
43 43  
44 44  
45 45  Enter the following information into the Losant Webhook configuration:
46 46  
47 -* Webhook ID: Make up any name that you would like. This does not have to be the ID of the webhook as it is stored in Losant.
48 -* Unique ID of Losant Webhook URL: This is the Losant Webhook unique ID that was copied to the clipboard in LOSANT Webhooks.
55 +* **Webhook ID:** Make up any name that you would like. This does not have to be the ID of the webhook as it is stored in Losant.
56 +* **Unique ID of Losant Webhook URL:** This is the Losant Webhook unique ID that was copied to the clipboard in LOSANT Webhooks.
49 49  
50 -Finally, click Create Losant webhook. If you need to configure additional options (e.g. Basic Auth or additional messages to subscribe to), use the TTS Custom Webhook Template or add these options once the Webhook in TTS is created by following the last section of this guide, [[Editing Your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
58 +Finally, click **Create Losant webhook**. If you need to configure additional options (e.g. Basic Auth or additional messages to subscribe to), use the TTS Custom Webhook Template or add these options once the Webhook in TTS is created by following the last section of this guide, [[Editing Your Losant Webhook in TTS>>url:https://docs.losant.com/guides/how-to-integrate-with-the-things-stack/#editing-your-losant-webhook-in-tts]].
51 51  
52 52  [[image:image-20220905084936-7.png]]
53 53  
54 54  
55 55  
56 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image012.jpg]]
57 57  
58 58  == Create a Losant Application Workflow to Receive Data from the LoRaWAN Sensor and Confirm Data Flow to Losant via Uplinks ==
59 59  
60 60  
61 -Since TTS is now configured to forward data to the Losant Webhook, lets create a [[Losant Application Workflow>>url:https://docs.losant.com/workflows/application-workflows/]] to receive the data from TTS.
68 +Since TTS is now configured to forward data to the Losant Webhook, let's create a [[Losant Application Workflow>>url:https://docs.losant.com/workflows/application-workflows/]] to receive the data from TTS.
62 62  
63 -Click on Workflows and then in the Application Workflow section, click Add to create a new Application Workflow.
70 +Click on **Workflows** and then in the Application Workflow section, click **Add** to create a new Application Workflow.
64 64  
65 65  [[image:image-20220905085017-8.png]]
66 66  
67 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image014.jpg]]
68 68  
69 -Enter a name for your Application Workflow (as well as a description if you’d like) and click Create Workflow.
70 70  
71 -[[image:image-20220905085035-9.png]]
72 72  
77 +Enter a name for your Application Workflow (as well as a description if you'd like) and click **Create Workflow**.
73 73  
74 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image016.jpg]]Drag and drop the [[Webhook Trigger Node>>url:https://docs.losant.com/workflows/triggers/webhook/]] and the [[Debug Node>>url:https://docs.losant.com/workflows/outputs/debug/]] onto the visual workflow engine’s canvas and connect them together. If you have only one webhook in this Losant application, it will be automatically selected for the Webhook Trigger. If you have multiple webhooks, select the one that was created in Webhook. Next, click Save and Deploy. Now that this workflow is deployed, click on the [[Debug Panel>>url:https://docs.losant.com/workflows/debugging-workflows/#debug-node-messages]].
79 +[[image:image-20220905091131-22.png]]
75 75  
81 +
82 +
83 +Drag and drop the [[Webhook Trigger Node>>url:https://docs.losant.com/workflows/triggers/webhook/]] and the [[Debug Node>>url:https://docs.losant.com/workflows/outputs/debug/]] onto the visual workflow engine's canvas and connect them together. If you have only one webhook in this Losant application, it will be automatically selected for the Webhook Trigger. If you have multiple webhooks, select the one that was created in Webhook. Next, click **Save and Deploy**. Now that this workflow is deployed, click on the [[Debug Panel>>url:https://docs.losant.com/workflows/debugging-workflows/#debug-node-messages]].
84 +
76 76  [[image:image-20220905085051-10.png]]
77 77  
78 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image018.jpg]]
79 79  
88 +
80 80  When TTS receives new data from the sensor, it will send that data to Losant over the Losant Webhook and trigger this workflow. Each time this workflow runs, new data will be displayed in the Debug Panel as shown below.
81 81  
82 -**Note:** If TTS is not automatically decoding your data as shown below in data.body.uplink_message.decoded_payload, then you can decode your LoRaWAN device data in this Losant Application Workflow. Check out the blog post [[How To Decode and Visualize Your LoRaWAN Sensor Data Using TTS and Losant>>url:https://www.losant.com/blog/how-to-decode-and-visualize-your-lorawan-sensor-data-using-the-things-network-and-losant]] to learn more about decoding LoRaWAN data in Losant.
83 83  
92 +**Note:** If TTS is not automatically decoding your data as shown below in** data.body.uplink_message.decoded_payload**, then you can decode your LoRaWAN device data in this Losant Application Workflow. Check out the blog post [[How To Decode and Visualize Your LoRaWAN Sensor Data Using TTS and Losant>>url:https://www.losant.com/blog/how-to-decode-and-visualize-your-lorawan-sensor-data-using-the-things-network-and-losant]] to learn more about decoding LoRaWAN data in Losant.
93 +
84 84  [[image:image-20220905085115-11.png]]
85 85  
86 86  
87 87  
88 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image020.jpg]]
89 89  
90 90  == Create a device ==
91 91  
... ... @@ -93,46 +93,55 @@
93 93  [[image:image-20220905085132-12.png]]
94 94  
95 95  
96 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.jpg]]
97 97  
106 +
98 98  Select the appropriate equipment. In this example, select a Standalone equipment
99 99  
100 100  [[image:image-20220905085201-13.png]]
101 101  
102 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image024.jpg]]
103 103  
112 +
113 +
104 104  Name is required, others can be added later
105 105  
106 106  [[image:image-20220905085219-14.png]]
107 107  
108 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image026.jpg]]
109 109  
119 +
120 +
110 110  Add equipment in the workflow so that data can flow to the equipment
111 111  
112 112  [[image:image-20220905085236-15.png]]
113 113  
114 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.jpg]]
115 115  
126 +
127 +
116 116  Refer to the data in debug and add parameters to the device
117 117  
118 -[[image:image-20220905085253-16.png]][[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.jpg]]
130 +[[image:image-20220905085253-16.png]]
119 119  
120 120  
133 +
121 121  Create a new dashboard
122 122  
123 123  [[image:image-20220905085323-17.png]]
124 124  
125 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image032.jpg]]
126 126  
127 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.jpg]][[image:image-20220905085337-18.png]]
128 128  
129 129  
141 +
142 +[[image:image-20220905085337-18.png]]
143 +
144 +
145 +
130 130  Select the appropriate template
131 131  
132 132  [[image:image-20220905085355-19.png]]
133 133  
134 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.jpg]]
135 135  
151 +
152 +
153 +
136 136  Set beacon and position
137 137  
138 138  [[image:image-20220905085417-20.png]]
... ... @@ -141,8 +141,6 @@
141 141  
142 142  [[image:image-20220905085437-21.png]]
143 143  
144 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image038.jpg]]
145 145  
146 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image040.jpg]]
147 147  
148 148  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0