Changes for page Losant

Last modified by Xiaoling on 2023/04/11 08:54

From version 24.2
edited by Xiaoling
on 2022/09/05 11:04
Change comment: There is no comment for this version
To version 24.6
edited by Xiaoling
on 2023/04/11 08:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,7 +5,6 @@
5 5  
6 6  = 1.  Indoor Tracking Examples base on iBeacon =
7 7  
8 -
9 9  == 1.1  Create a Losant Webhook ==
10 10  
11 11  
... ... @@ -13,18 +13,18 @@
13 13  
14 14  Once you've created a new application, click (% style="color:blue" %)**Webhooks** (%%)and then (% style="color:blue" %)**Add Webhook**.
15 15  
15 +
16 16  [[image:image-20220905084626-2.png]]
17 17  
18 18  
19 19  
20 -
21 21  Enter a (% style="color:blue" %)**Webhook Name**(%%) and then click (% style="color:blue" %)**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]].
22 22  
22 +
23 23  [[image:image-20220905084724-3.png]]
24 24  
25 25  
26 26  
27 -
28 28  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/]]
29 29  
30 30  
... ... @@ -31,34 +31,32 @@
31 31  [[image:image-20220905084736-4.png]]
32 32  
33 33  
34 -
35 -
36 36  == 1.2  Configure TTS to Use the Losant Webhook ==
37 37  
38 38  
39 39  In the TTS application , click on (% style="color:blue" %)**Integrations**(%%), then (% style="color:blue" %)**Webhooks**(%%), and then (% style="color:blue" %)**Add webhook**.
40 40  
38 +
41 41  [[image:image-20220905084816-5.png]]
42 42  
43 43  
44 44  
45 -
46 46  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 (% style="color:blue" %)**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]].
47 47  
45 +
48 48  [[image:image-20220905084846-6.png]]
49 49  
50 50  
51 -
52 52  Enter the following information into the Losant Webhook configuration:
53 53  
54 54  * (% style="color:blue" %)**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.
55 55  * (% style="color:blue" %)**Unique ID of Losant Webhook URL:**(%%) This is the Losant Webhook unique ID that was copied to the clipboard in LOSANT Webhooks.
56 56  
57 -Finally, click (% style="color:blue" %)**Create Losant webhook**(%%). If you need to configure additional options ((% style="color:red" %)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 58  
59 -[[image:image-20220905084936-7.png]]
55 +Finally, click (% style="color:blue" %)**Create Losant webhook**(%%). If you need to configure additional options ((% style="color:red" %)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]].
60 60  
61 61  
58 +[[image:image-20220905084936-7.png]]
62 62  
63 63  
64 64  == 1.3  Create a Losant Application Workflow to Receive Data from the LoRaWAN Sensor and Confirm Data Flow to Losant via Uplinks ==
... ... @@ -72,20 +72,18 @@
72 72  [[image:image-20220905085017-8.png]]
73 73  
74 74  
75 -
76 -
77 77  Enter a name for your Application Workflow (as well as a description if you'd like) and click (% style="color:blue" %)**Create Workflow**.
78 78  
74 +
79 79  [[image:image-20220905091131-22.png]]
80 80  
81 81  
82 -
83 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 (% style="color:blue" %)**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 84  
80 +
85 85  [[image:image-20220905085051-10.png]]
86 86  
87 87  
88 -
89 89  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.
90 90  
91 91  
... ... @@ -95,8 +95,6 @@
95 95  [[image:image-20220905085115-11.png]]
96 96  
97 97  
98 -
99 -
100 100  == 1.4  Create a device ==
101 101  
102 102  
... ... @@ -103,43 +103,33 @@
103 103  [[image:image-20220905085132-12.png]]
104 104  
105 105  
99 +**Select the appropriate equipment. In this example, select a Standalone equipment**
106 106  
107 -
108 -Select the appropriate equipment. In this example, select a Standalone equipment
109 -
110 -
111 111  [[image:image-20220905085201-13.png]]
112 112  
113 113  
114 114  
105 +**Name is required, others can be added later**
115 115  
116 -Name is required, others can be added later
117 117  
118 -
119 119  [[image:image-20220905085219-14.png]]
120 120  
121 121  
111 +**Add equipment in the workflow so that data can flow to the equipment**
122 122  
123 -
124 -Add equipment in the workflow so that data can flow to the equipment
125 -
126 -
127 127  [[image:image-20220905085236-15.png]]
128 128  
129 129  
130 130  
117 +**Refer to the data in debug and add parameters to the device.**
131 131  
132 -Refer to the data in debug and add parameters to the device.
133 -
134 -
135 135  [[image:image-20220905085253-16.png]]
136 136  
137 137  
138 138  
123 +**Create a new dashboard.**
139 139  
140 -Create a new dashboard.
141 141  
142 -
143 143  [[image:image-20220905085323-17.png]]
144 144  
145 145  
... ... @@ -148,15 +148,17 @@
148 148  
149 149  
150 150  
151 -Select the appropriate template
152 152  
135 +Select the appropriate template.
136 +
137 +
153 153  [[image:image-20220905085355-19.png]]
154 154  
155 155  
156 156  
157 157  
143 +Set beacon and position.
158 158  
159 -Set beacon and position
160 160  
161 161  [[image:image-20220905085417-20.png]]
162 162  
... ... @@ -166,3 +166,4 @@
166 166  
167 167  
168 168  
154 +