1、大數據於物聯網之應用 Node RED 流程與數位儀表版,建國科技大學資訊管理系協同教學授課講師:林維展,議程,Node-RED 流程控制 Node-RED 數位儀表版,Node-RED 流程控制,一次性或按鈕觸發流程 (Trigger a flow whenever Node-RED starts),定時定期觸發流程(Trigger a flow at regular intervals),特定時間觸發流程(Trigger a flow at a specific time),條件觸發-特定屬性 (Route a message based on one of its properties)
2、,條件觸發-範圍屬性 (Route a message based on a context property),條件觸發-陣距條件 (Perform an operation on each element in an array),例外觸發-特定時間未發觸時 (Trigger a flow if a message isnt received after a defined time),例外觸發-超過流量限制時 (Limit the rate of messages passing through a flow),例外觸發-屬性值被改變時 (Trigger a flow when a me
3、ssage property changes value),建立設計一個狀態機 (Create a simple state machine),Node-RED 數位儀表版,http:/ = Math.round(Math.random()*1000); max = Math.round(Math.random()*10000)+1000); msg.payload = factory: machine00: min: min,max: max,failProb: 20,name: “GE 5200“,machine01: min: min*5,max: max*2,failProb: 10,name: “BB SQ100“ return msg;,RPM MinRPM MaxFailure ProbMachine typemachine.minmachine.maxmachine.failProb%machine.name ,