iot:bit 物聯網觸發 Line通知設定教學 (無IFTTT方案、取代Line Notify)|奧斯丁國際有限公司 OURSTEAM Internationl
icon教學資源
2025/05/14

iot:bit 物聯網觸發 Line通知設定教學 (無IFTTT方案、取代Line Notify)
























【LINE Developers】網站
https://developers.line.biz/en/?status=success





































【Google Apps Script】網站
https://script.google.com/home


























【ThingHTTP Name】: 輸入裝置或感測器名稱
【URL】:https://api.line.me/v2/bot/message/push
【Method】:POST
【Content Type】:application/json

Header 的 【Name】:Authorization
Header 的 【Value】:Bearer 你的 Channel Access Token
補充說明 : Bearer 與 LINE 的權杖中間須有一個英文空白




【Body】:複製這段語法 (這是 LINE 推送訊息的 JSON 格式內容。你需要根據 LINE Messaging API 的文件來構造這個 JSON。)
{
  "to": "你的LINE ID User或Group ID",
  "messages": [
    {
      "type": "text",
      "text": "ThingSpeak 警報:感測器數據異常!目前溫度:%%trigger%% 度。"
    }
  ]
}













【實測影片】





LINE Messaging API設定教學圖文及步驟原自 https://hackmd.io/@flagmaker/SJLKW4lV1e
logo
iconiconiconiconicon
icon  電話:04-2375-3535
icon  傳真:04-2256-9949
icon  統編:90386785
icon  E-mail:service@oursteam.com.tw
icon  LINE ID:@oursteam
Inspire every child to create