name = msg.payload.d.name;var temp = msg.payload.d.temp; var humidit = msg.payload.d.humidity; var objectTemp = msg.payload.d.objectTemp; var dt = new Date(); // UTC var year = dt.getFullYear(); var month = dt.getMonth()+1; var day = dt.getDate(); var hour = dt.getHours(); var minute = dt.getMinutes(); var second = dt.getSeconds(); var utcdate = year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second; msg.payload = { "name": name, "type": "simulator", "temp": temp, "humidit": humidit, "objectTemp": objectTemp, "CREATED_AT": utcdate}; return msg; 記述内容 Code and Response Day Online #2 2020/05/22 8
Qiita : https://qiita.com/tags/node-red イベント Node-RED UG : https://node-red.connpass.com/ 2020年 6月25-26日 : IBM User Group Conference 2020 https://ibm-user-group-conf.us-south.cf.appdomain.cloud/ Code and Response Day Online #2 2020/05/22 13