NodeRed 2 Node RED npm install g unsafeperm

  • Slides: 28
Download presentation

Node-Red 雲端平台

Node-Red 雲端平台

步驟 2 : 安裝Node. RED npm install -g --unsafe-perm nodered p (在命令提示字元

步驟 2 : 安裝Node. RED npm install -g --unsafe-perm nodered p (在命令提示字元

步驟 4: 進入Node. RED You can then access the Node-RED editor at http: //localhost:

步驟 4: 進入Node. RED You can then access the Node-RED editor at http: //localhost: 1880

安裝COM 埠(serialport) 搜尋serialport 安裝serialport

安裝COM 埠(serialport) 搜尋serialport 安裝serialport

成功安裝COM 埠(serialport)

成功安裝COM 埠(serialport)

安裝dashboard 搜尋 dashboard 安裝 dashboard

安裝dashboard 搜尋 dashboard 安裝 dashboard

成功安裝dashboard

成功安裝dashboard

了解JSON的資料格式 n JSON全名叫做Java. Script Object Notation 就是在Java. Script之中,表示物件的一種格式 n 物件(object) 就是用key-value的方式儲存,例如 {"subject": "Math", "score":

了解JSON的資料格式 n JSON全名叫做Java. Script Object Notation 就是在Java. Script之中,表示物件的一種格式 n 物件(object) 就是用key-value的方式儲存,例如 {"subject": "Math", "score": 80} n 陣列(array)例如數字 [0, 4, 5, 2, 7, 8, 3],或文字(text)的 [“Tom”, “John”, “Amy”, “Ivy”] n 範例如下 [{"name": "Tom", "lastname": "Chen", "report": [{"subject": "Math" , "score": 80}, {"subject": "English", "score": 90}]}, {"name": "Amy", "l astname": "Lin", "report": [{"subject": "Math", "score": 86}, {"subjec t": "English", "score": 88}]}]

Serial. Port 輸出設定

Serial. Port 輸出設定

Dashboard button/text輸入值設定

Dashboard button/text輸入值設定

Serial. Port 輸入值連結dashboard輸出設定

Serial. Port 輸入值連結dashboard輸出設定

Serial. Port 輸入值連結dashboard輸出設定- temp

Serial. Port 輸入值連結dashboard輸出設定- temp

Serial. Port 輸入值連結dashboard輸出設定- Light

Serial. Port 輸入值連結dashboard輸出設定- Light

Serial. Port 輸入值連結dashboard輸出設定- ADXL

Serial. Port 輸入值連結dashboard輸出設定- ADXL