Node-RED 連結MQTT 資料上傳至 Google Sheet服務
LHB阿好伯, 2021/03/20
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
安裝節點
https://flows.nodered.org/node/node-red-contrib-google-sheets
搜尋google就可以看到本次使用的node-red-contrib-google-sheets套件
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
在使用這節點之前需先完成
新增一個Google服務帳戶
下載服務帳戶的JSON金鑰
授予該帳戶訪問Google Sheet API的權限
最後再與服務帳戶的電子郵件地址共享Google Sheet
例如 nodered@nodered-12345.iam.gserviceaccount.com
連結google服務
建立服務帳戶
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
點擊我建立服務帳戶
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
取得帳戶金鑰
點選帳戶信箱
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
建立或新增金鑰
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
貼到節點中
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
開啟Google Sheet & Drive API
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
共用試算表
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
測試結果
建立一個最基本的節點測試
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
節點資料
[{"id":"86531bb5.4a6e48","type":"tab","label":"流程2","disabled":false,"info":""},{"id":"bb9215b2.f64bc8","type":"mqtt in","z":"86531bb5.4a6e48","name":"MQTT","topic":"","qos":"0","datatype":"utf8","broker":"","x":170,"y":180,"wires":[["8268adb1.6c9df"]]},{"id":"8268adb1.6c9df","type":"GSheet","z":"86531bb5.4a6e48","creds":"","method":"get","action":"","sheet":"","cells":"","flatten":false,"name":"Google Sheet","x":440,"y":180,"wires":[[]],"inputLabels":["1"],"outputLabels":["2"]}]
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
試算表ID位置
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Node-RED 連結MQTT 資料上傳至 Google Sheet服務
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
JavaScript自1970年1月1日(UTC)
參考資料
https://flows.nodered.org/flow/a36ccbcfc43c264cda892383fe034fe3
https://flows.nodered.org/node/node-red-contrib-google-sheets
🌟全文可以至下方連結觀看或是補充
https://hackmd.io/@LHB-0222/NodeRED-GSeet
全文分享至
https://www.facebook.com/LHB0222/
https://www.instagram.com/ahb0222/
有疑問想討論的都歡迎於下方留言
喜歡的幫我分享給所有的朋友 \o/
有所錯誤歡迎指教
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →