如何將 QIoT Suite Lite 與 IFTTT 在行動裝置上做連接並發送訊息

事先準備:需要使用 IFTTT 帳戶才能使用此功能

步驟一:建立 maker webhook 連結:

  1. 登入 IFTTT 帳號後開啟此連結: https://ifttt.com/maker_webhooks
  2. 點選中間的 connect 進行連結
  3. https://ifttt.com/maker_webhooks,點選 Documentation
  4. 將產生的 key 數值記錄下來

步驟二:建立 Applets:

  1. 在 My Applets 選擇 New Applet
  2. 點選 " + this"

  3. 搜尋 "webhooks", 並點選它

  4. 選擇 Receive a web request,並設定自己的 Event Name,點選 Create trigger
  5. 點選 "that"
  6. 搜尋 "Notifications",並點選它,選擇後點選 Connect
  7. 選擇 Send a notification from the IFTTT app,並設定當程式觸發後你所要接收的訊息(選擇 Add ingredient 可以自行新增 webhook 的所需變數,並顯示到訊息中)
  8. 點選 Create action 在點選 Finish

步驟三:測試通知

  1. 在 Android 或 iOS 設備上安裝 IFTTT 應用程式,並登錄。 IFTTT 應用程式的下載連結可以參考 https://ifttt.com/products
  2. 接著回到步驟一產生 key 數值的頁面

  3. 在 {event} 輸入剛剛設定的 Event Name
  4. 設定底下 value 的值,按下 Teast It 進行測試

  5. 打開 IFTTT app 並檢視手機是否有接收到訊息

  6. Make a POST or GET web request to 底下的網址就是送通知的網址,記錄下來

步驟四:設定NodeRED

  1. 組合訊息字串:建立一個 function node,並在內容格式化你要的訊息:
  2. 建立一個 HTTP request node,並在URL輸入步驟三的URL,底下勾選TLS驗證
  3. 將 rule 串接起來即完成 .jpg)

results matching ""

    No results matching ""