Changes for page Losant

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

From version 24.4
edited by Xiaoling
on 2022/09/05 11:07
Change comment: There is no comment for this version
To version 24.1
edited by Xiaoling
on 2022/09/05 11:04
Change comment: Uploaded new attachment "image-20220905110438-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -11,17 +11,15 @@
11 11  
12 12  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/]].
13 13  
14 -Once you've created a new application, click (% style="color:blue" %)**Webhooks** (%%)and then (% style="color:blue" %)**Add Webhook**.
14 +Once you've created a new application, click **(% style="color:blue" %)Webhooks** (%%)and then **(% style="color:blue" %)Add Webhook**.
15 15  
16 -
17 17  [[image:image-20220905084626-2.png]]
18 18  
19 19  
20 20  
21 21  
22 -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]].
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]].
23 23  
24 -
25 25  [[image:image-20220905084724-3.png]]
26 26  
27 27  
... ... @@ -38,17 +38,15 @@
38 38  == 1.2  Configure TTS to Use the Losant Webhook ==
39 39  
40 40  
41 -In the TTS application , click on (% style="color:blue" %)**Integrations**(%%), then (% style="color:blue" %)**Webhooks**(%%), and then (% style="color:blue" %)**Add webhook**.
39 +In the TTS application , click on **(% style="color:blue" %)Integrations**(%%), then **(% style="color:blue" %)Webhooks**(%%), and then **(% style="color:blue" %)Add webhook**.
42 42  
43 -
44 44  [[image:image-20220905084816-5.png]]
45 45  
46 46  
47 47  
48 48  
49 -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]].
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]].
50 50  
51 -
52 52  [[image:image-20220905084846-6.png]]
53 53  
54 54  
... ... @@ -55,12 +55,11 @@
55 55  
56 56  Enter the following information into the Losant Webhook configuration:
57 57  
58 -* (% 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.
59 -* (% 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.
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 +* **(% 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.
60 60  
61 -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]].
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]].
62 62  
63 -
64 64  [[image:image-20220905084936-7.png]]
65 65  
66 66  
... ... @@ -71,24 +71,21 @@
71 71  
72 72  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.
73 73  
74 -Click on (% style="color:blue" %)**Workflows**(%%) and then in the Application Workflow section, click (% style="color:blue" %)**Add** (%%)to create a new Application Workflow.
69 +Click on **(% style="color:#037691" %)Workflows**(%%) and then in the Application Workflow section, click **(% style="color:#037691" %)Add** (%%)to create a new Application Workflow.
75 75  
76 -
77 77  [[image:image-20220905085017-8.png]]
78 78  
79 79  
80 80  
81 81  
82 -Enter a name for your Application Workflow (as well as a description if you'd like) and click (% style="color:blue" %)**Create Workflow**.
76 +Enter a name for your Application Workflow (as well as a description if you'd like) and click **Create Workflow**.
83 83  
84 84  [[image:image-20220905091131-22.png]]
85 85  
86 86  
87 87  
82 +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]].
88 88  
89 -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]].
90 -
91 -
92 92  [[image:image-20220905085051-10.png]]
93 93  
94 94  
... ... @@ -96,9 +96,8 @@
96 96  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.
97 97  
98 98  
99 -(% style="color:red" %)**Note:**(%%) If TTS is not automatically decoding your data as shown below in(% style="color:blue" %)** 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.
91 +**(% style="color:red" %)Note:**(%%) If TTS is not automatically decoding your data as shown below in**(% style="color:blue" %) 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.
100 100  
101 -
102 102  [[image:image-20220905085115-11.png]]
103 103  
104 104  
... ... @@ -114,7 +114,6 @@
114 114  
115 115  Select the appropriate equipment. In this example, select a Standalone equipment
116 116  
117 -
118 118  [[image:image-20220905085201-13.png]]
119 119  
120 120  
... ... @@ -122,7 +122,6 @@
122 122  
123 123  Name is required, others can be added later
124 124  
125 -
126 126  [[image:image-20220905085219-14.png]]
127 127  
128 128  
... ... @@ -130,34 +130,30 @@
130 130  
131 131  Add equipment in the workflow so that data can flow to the equipment
132 132  
133 -
134 134  [[image:image-20220905085236-15.png]]
135 135  
136 136  
137 137  
138 138  
139 -Refer to the data in debug and add parameters to the device.
127 +Refer to the data in debug and add parameters to the device
140 140  
141 -
142 142  [[image:image-20220905085253-16.png]]
143 143  
144 144  
145 145  
133 +Create a new dashboard
146 146  
147 -Create a new dashboard.
148 -
149 -
150 150  [[image:image-20220905085323-17.png]]
151 151  
152 152  
153 153  
154 -[[image:image-20220905110438-1.png]]
155 155  
156 156  
141 +[[image:image-20220905085337-18.png]]
157 157  
158 158  
159 -Select the appropriate template.
160 160  
145 +Select the appropriate template
161 161  
162 162  [[image:image-20220905085355-19.png]]
163 163  
... ... @@ -164,8 +164,8 @@
164 164  
165 165  
166 166  
167 -Set beacon and position.
168 168  
153 +Set beacon and position
169 169  
170 170  [[image:image-20220905085417-20.png]]
171 171