Skip to content

Commit ea41e48

Browse files
committed
Update Webhooks
1 parent bd93753 commit ea41e48

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed
156 KB
Loading
235 KB
Loading
212 KB
Loading
232 KB
Loading
188 KB
Loading
180 KB
Loading

content/arduino-cloud/06.features/11.webhooks/iot-cloud-webhooks.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,7 @@ Webhooks allow you to send and receive automated messages to and from other serv
2727

2828
You will also need a cloud compatible board:
2929

30-
- [MKR 1000 WiFi](https://store.arduino.cc/arduino-mkr1000-wifi)
31-
- [MKR WiFi 1010](https://store.arduino.cc/arduino-mkr-wifi-1010)
32-
- [MKR WAN 1300](https://store.arduino.cc/arduino-mkr-wan-1300-lora-connectivity-1414)
33-
- [MKR WAN 1310](https://store.arduino.cc/mkr-wan-1310)
34-
- [MKR GSM 1400](https://store.arduino.cc/arduino-mkr-gsm-1400)\*
35-
- [MKR NB 1500](https://store.arduino.cc/arduino-mkr-nb-1500-1413)\*
36-
- [Nano RP2040 Connect](https://store.arduino.cc/nano-rp2040-connect)
37-
- [Nano 33 IoT](https://store.arduino.cc/arduino-nano-33-iot)
38-
- [Portenta H7](https://store.arduino.cc/portenta-h7)
39-
40-
***Please note: The MKR GSM 1400 and MKR NB 1500 require a SIM card to connect to the cloud, as they communicate over mobile networks.***
30+
***Read more about compatible board [here](/arduino-cloud/guides/overview#compatible-boards)***
4131

4232
## Webhook Setup
4333

@@ -79,20 +69,24 @@ The final step is finding the webhook link that you will need to set to your Thi
7969

8070
Linking a webhook to a Thing is a quite simple process, follow the steps below to set a webhook to your Thing:
8171

82-
![Setting a webhook](assets/setting-a-webhook.gif)
83-
8472
**1.** [Sign in to your Arduino account](https://create.arduino.cc/iot), and open the [Arduino IoT Cloud](https://create.arduino.cc/iot).
8573

8674
**2.** Navigate to [**Things** -> **Create Thing**](https://create.arduino.cc/iot/things).
8775

8876
**3.** Create your Variables. In our case, we will create a **"message"** Variable and set its type to **"Character String"**.
8977

78+
![Create Variabele](./assets/webhooks-01.png)
79+
9080
**4.** Add your **Device**, and configure your **Network** from the right side menu.
9181

9282
**5.** Click on "**Set Webhook**", one the bottom left corner.
9383

84+
![Set Webhook](./assets/webhooks-02.png)
85+
9486
**6.** Enter the webhook link provided from the platform you are using.
9587

88+
![Enter Webhook](./assets/webhooks-03.png)
89+
9690
**7.** Finally, navigate to the **Sketch** tab, and upload the automatically generated code to your board.
9791

9892
The Arduino IoT Cloud will share **five sets of values** through the assigned webhook:
@@ -115,7 +109,7 @@ The fifth value contains an array of objects, each representing a Variable in yo
115109
"persist": true/false,
116110
"updated_at": "DATE",
117111
"created_by": "USERID"
118-
},
112+
},1
119113
{
120114
"id": "VARIABLE_02_ID",
121115
"name": "NAME_OF_VARIABLE_02",
@@ -131,17 +125,19 @@ The fifth value contains an array of objects, each representing a Variable in yo
131125

132126
To test the webhook, we need to create a *Messenger widget*. We can do that by:
133127

134-
![Setting a webhook](assets/webhook-dashboard.gif)
135-
136128
**1.** Navigating to [*Dashboards*](https://create.arduino.cc/iot/dashboards) -> *Edit* -> *Add* -> stay on the *Widgets tab* -> select "Messenger".
137129

130+
![Add Messenger Widget](./assets/webhooks-04.png)
131+
138132
**2.** Press on *Link Variable*, select the Thing we created, then the **"message"** Variable.
139133

134+
![Link Widge](./assets/webhooks-05.png)
135+
140136
In the "messenger widget", we are modifying the value of the "message" Variable. Whenever we send a message, the "message" Variable is updated and using the webhook we set, the updates are sent to the spreadsheet file created by IFTTT.
141137

142138
To try it out, all you need to do is to navigate to your **Dashboards** on the Arduino IoT Cloud and send messages using the **Messenger Widget**. The messages, along with the exact date and time will be found in the Google Sheets file created by IFTTT, on our Google account. To access this file, you need to navigate to your [Google Sheets](https://docs.google.com/spreadsheets) -> find and open the file names **"IFTTT_Maker_Webhooks_Events"**.
143139

144-
![Setting a webhook](assets/webhook-dashboard-sheets.gif)
140+
![Setting a webhook](assets/ezgif.com-crop.gif)
145141

146142
## Available Platforms
147143

0 commit comments

Comments
 (0)