1 Ch Vibration Temperature Sensor V3 Raw Mode - Dashboard

We’ve developed a v1 for the Dashboard (Raw Mode only). (While we haven’t implemented styles and storage functions yet), I’m happy to share the flow with you. You can copy it, import it into your Node-RED instance, connect the nodes as shown in the image, and then open the dashboard. Feel free to test it and provide feedback on how it works for you.
@krish15

connection

Copy and Import in your Node-RED Instance this flow:

[{"id":"ced7521762aa0aa4","type":"subflow","name":"1 -Ch Raw Mode","info":"","category":"NCD","in":[{"x":60,"y":400,"wires":[{"id":"bcea8a15504c9bd2"}]}],"out":[],"env":[],"meta":{},"color":"#3FADB5","icon":"node-red/bridge-dash.svg"},{"id":"c66032906b8c911a","type":"ui-chart","z":"ced7521762aa0aa4","group":"48e286bf7d3525fb","name":"","label":"raw_x","order":9007199254740991,"chartType":"line","category":"x","categoryType":"str","xAxisProperty":"item","xAxisPropertyType":"msg","xAxisType":"linear","yAxisProperty":"data","ymin":"","ymax":"","action":"append","pointShape":"false","pointRadius":"1","showLegend":true,"removeOlder":"1","removeOlderUnit":"60","removeOlderPoints":"","colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"width":"10","height":"4","className":"","x":610,"y":360,"wires":[[]]},{"id":"f9bdc4e6898b426d","type":"ui-chart","z":"ced7521762aa0aa4","group":"48e286bf7d3525fb","name":"","label":"raw_y","order":9007199254740991,"chartType":"line","category":"y","categoryType":"str","xAxisProperty":"item","xAxisPropertyType":"msg","xAxisType":"linear","yAxisProperty":"data","ymin":"","ymax":"","action":"append","pointShape":"false","pointRadius":"1","showLegend":true,"removeOlder":1,"removeOlderUnit":"60","removeOlderPoints":"","colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"width":"10","height":"4","className":"","x":610,"y":400,"wires":[[]]},{"id":"0a69b086eda3a250","type":"ui-chart","z":"ced7521762aa0aa4","group":"48e286bf7d3525fb","name":"","label":"raw_z","order":9007199254740991,"chartType":"line","category":"z","categoryType":"str","xAxisProperty":"item","xAxisPropertyType":"msg","xAxisType":"linear","yAxisProperty":"data","ymin":"","ymax":"","action":"append","pointShape":"false","pointRadius":"1","showLegend":true,"removeOlder":1,"removeOlderUnit":"60","removeOlderPoints":"","colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"width":"10","height":"4","className":"","x":610,"y":440,"wires":[[]]},{"id":"710825018f125eae","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"Time ID:","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":400,"y":80,"wires":[]},{"id":"83447eba08306e53","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.time_id","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":80,"wires":[["710825018f125eae"]],"l":false},{"id":"02a6a9951cb0ffa8","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"MAC: ","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":390,"y":120,"wires":[]},{"id":"bd06e6071084ac4f","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.mac_address","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":120,"wires":[["02a6a9951cb0ffa8"]],"l":false},{"id":"64a2ea614c780e03","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"en axis:","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":400,"y":160,"wires":[]},{"id":"ba742978e1348360","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.en_axis","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":160,"wires":[["64a2ea614c780e03"]],"l":false},{"id":"cccde85fd5085ea7","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"fsr:","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":390,"y":200,"wires":[]},{"id":"e955e199ed3dec68","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.fsr","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":200,"wires":[["cccde85fd5085ea7"]],"l":false},{"id":"874ce64653e7aa53","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"ODR: ","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":390,"y":240,"wires":[]},{"id":"65d63ed1226ddca9","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.odr","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":240,"wires":[["874ce64653e7aa53"]],"l":false},{"id":"04d78f1fca5c291d","type":"ui-text","z":"ced7521762aa0aa4","group":"8dd0fbd8a2ff3545","order":0,"width":0,"height":0,"name":"","label":"Device Temperature:","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"","x":460,"y":280,"wires":[]},{"id":"621fe72b439a5f20","type":"change","z":"ced7521762aa0aa4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.device_temp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":280,"wires":[["04d78f1fca5c291d"]],"l":false},{"id":"f83890abb501d36a","type":"change","z":"ced7521762aa0aa4","name":"Clear","rules":[{"t":"set","p":"payload","pt":"msg","to":"[]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":465,"y":320,"wires":[["c66032906b8c911a","f9bdc4e6898b426d","0a69b086eda3a250"]],"l":false},{"id":"52d4690209f3e1cd","type":"function","z":"ced7521762aa0aa4","name":"ncdToChart","func":"let data = msg.payload.data;\nconst desiredOutput = [];\nmsg = {}\nfor (const key in data) {\n  desiredOutput.push({\n    item: parseInt(key),\n    data: data[key].x\n  });\n}\nmsg.payload = desiredOutput;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":360,"wires":[["f83890abb501d36a","5abe343e13f6c6f1"]],"icon":"node-red-dashboard/ui_chart.png"},{"id":"c6894674ae20bb1c","type":"function","z":"ced7521762aa0aa4","name":"ncdToChart","func":"let data = msg.payload.data;\nconst desiredOutput = [];\nmsg = {}\nfor (const key in data) {\n  desiredOutput.push({\n    item: parseInt(key),\n    data: data[key].y\n  });\n}\nmsg.payload = desiredOutput;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":400,"wires":[["8d8325c571942b7c"]],"icon":"node-red-dashboard/ui_chart.png"},{"id":"379dbeb950c26652","type":"function","z":"ced7521762aa0aa4","name":"ncdToChart","func":"let data = msg.payload.data;\nmsg = {}\nconst desiredOutput = [];\nfor (const key in data) {\n  desiredOutput.push({\n    item: parseInt(key),\n    data: data[key].z\n  });\n}\nmsg.payload = desiredOutput;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":440,"wires":[["ad4df05d79e32b81"]],"icon":"node-red-dashboard/ui_chart.png"},{"id":"5abe343e13f6c6f1","type":"delay","z":"ced7521762aa0aa4","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":465,"y":360,"wires":[["c66032906b8c911a"]],"l":false},{"id":"8d8325c571942b7c","type":"delay","z":"ced7521762aa0aa4","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":465,"y":400,"wires":[["f9bdc4e6898b426d"]],"l":false},{"id":"ad4df05d79e32b81","type":"delay","z":"ced7521762aa0aa4","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":465,"y":440,"wires":[["0a69b086eda3a250"]],"l":false},{"id":"bcea8a15504c9bd2","type":"junction","z":"ced7521762aa0aa4","x":140,"y":400,"wires":[["52d4690209f3e1cd","c6894674ae20bb1c","379dbeb950c26652","83447eba08306e53","bd06e6071084ac4f","ba742978e1348360","e955e199ed3dec68","65d63ed1226ddca9","621fe72b439a5f20"]]},{"id":"48e286bf7d3525fb","type":"ui-group","name":"ncd-dashboard","page":"996fba70f2d762e5","width":"10","height":"1","order":1,"showTitle":false,"className":"","visible":"true","disabled":"false"},{"id":"8dd0fbd8a2ff3545","type":"ui-group","name":"Data","page":"996fba70f2d762e5","width":"2","height":"1","order":-1,"showTitle":false,"className":"","visible":"true","disabled":"false"},{"id":"996fba70f2d762e5","type":"ui-page","name":"Industrial IoT Wireless Vibration Temperature Sensor V3","ui":"ec459411017ddf37","path":"/rawVibration","icon":"home","layout":"grid","theme":"20e753f7d63f7e1e","order":-1,"className":"","visible":"true","disabled":"false"},{"id":"ec459411017ddf37","type":"ui-base","name":"ncd-ui-base","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"navigationStyle":"default"},{"id":"20e753f7d63f7e1e","type":"ui-theme","name":"Theme Name","colors":{"surface":"#ffffff","primary":"#0094ce","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}},{"id":"8053a34bba5bef9e","type":"subflow:ced7521762aa0aa4","z":"0f850dc8977c3d53","name":"","x":530,"y":2640,"wires":[]}]

Let us know if you have any questions.
Thanks,
ncd team