Error after nodes reinstalled

hello friends, recently out of sudden the flow of node-red is not working due to missing nodes

after i have installed and deploy the nodes is missing, when i add up the nodes i guess error occured.

[{"id":"64915f5c.0a7238","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"X-AXIS,\" & $$.payload.`X-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":280,"wires":[["55a1aba7.7cb53c","8258bfd2.d739a"]]},{"id":"85bcb7f0.7b1cc8","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"Y-AXIS,\" & $$.payload.`Y-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":340,"wires":[["8258bfd2.d739a","a2609af6.5d05b"]]},{"id":"258a1d49.c7bce2","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"Z-AXIS,\" & $$.payload.`Z-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":400,"wires":[["8258bfd2.d739a","90b1a43d.e74fa"]]},{"id":"8258bfd2.d739a","type":"debug","z":"fade33b0.31dc2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":220,"wires":[]},{"id":"55a1aba7.7cb53c","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\x-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":280,"wires":[[]]},{"id":"a2609af6.5d05b","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\y-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":340,"wires":[[]]},{"id":"90b1a43d.e74fa","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\z-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":400,"wires":[[]]},{"id":"3124b708.80021","type":"mqtt in","z":"fade33b0.31dc2","name":"","topic":"SENSE","qos":"0","datatype":"json","broker":"277379c9.ca83a6","nl":false,"rap":true,"rh":0,"x":110,"y":500,"wires":[["64915f5c.0a7238","85bcb7f0.7b1cc8","258a1d49.c7bce2","6430742ae59fd37d","5862e4c958c9a421","b755f639bb350978"]]},{"id":"6430742ae59fd37d","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":1,"width":0,"height":0,"gtype":"gage","title":"X-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":560,"wires":[]},{"id":"5862e4c958c9a421","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":2,"width":0,"height":0,"gtype":"gage","title":"Y-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":640,"wires":[]},{"id":"b755f639bb350978","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":3,"width":0,"height":0,"gtype":"gage","title":"Z-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":720,"wires":[]},{"id":"277379c9.ca83a6","type":"mqtt-broker","name":"","broker":"broker.hivemq.com","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"789a278d.b59438","type":"ui_group","name":"X-AXIS","tab":"5736cae9.f98874","order":2,"disp":true,"width":"6","collapse":false},{"id":"5736cae9.f98874","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

could anybody help to look at it,,also im trying to make line chart (above is gauge chart )..


something like this image or any type of line chart

  1. Please stop/start node red and then copy the startup log and paste it to a reply.

  2. what nodes did you install?

1 Like
[{"id":"64915f5c.0a7238","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"X-AXIS,\" & $$.payload.`X-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":280,"wires":[["55a1aba7.7cb53c","8258bfd2.d739a"]]},{"id":"85bcb7f0.7b1cc8","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"Y-AXIS,\" & $$.payload.`Y-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":340,"wires":[["8258bfd2.d739a","a2609af6.5d05b"]]},{"id":"258a1d49.c7bce2","type":"change","z":"fade33b0.31dc2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"Z-AXIS,\" & $$.payload.`Z-AXIS` & $moment().tz(\"Asia/Kuala_Lumpur\").format(\",DD/MM/YYYY,h:mm:ss a\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":400,"wires":[["8258bfd2.d739a","90b1a43d.e74fa"]]},{"id":"8258bfd2.d739a","type":"debug","z":"fade33b0.31dc2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":220,"wires":[]},{"id":"55a1aba7.7cb53c","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\x-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":280,"wires":[[]]},{"id":"a2609af6.5d05b","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\y-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":340,"wires":[[]]},{"id":"90b1a43d.e74fa","type":"file","z":"fade33b0.31dc2","name":"","filename":"C:\\Users\\User\\Desktop\\z-axis.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":860,"y":400,"wires":[[]]},{"id":"3124b708.80021","type":"mqtt in","z":"fade33b0.31dc2","name":"","topic":"SENSE","qos":"0","datatype":"json","broker":"277379c9.ca83a6","nl":false,"rap":true,"rh":0,"x":110,"y":500,"wires":[["64915f5c.0a7238","85bcb7f0.7b1cc8","258a1d49.c7bce2","6430742ae59fd37d","5862e4c958c9a421","b755f639bb350978"]]},{"id":"6430742ae59fd37d","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":1,"width":0,"height":0,"gtype":"gage","title":"X-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":560,"wires":[]},{"id":"5862e4c958c9a421","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":2,"width":0,"height":0,"gtype":"gage","title":"Y-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":640,"wires":[]},{"id":"b755f639bb350978","type":"ui_gauge","z":"fade33b0.31dc2","name":"","group":"789a278d.b59438","order":3,"width":0,"height":0,"gtype":"gage","title":"Z-AXIS","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":500,"y":720,"wires":[]},{"id":"277379c9.ca83a6","type":"mqtt-broker","name":"","broker":"broker.hivemq.com","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"789a278d.b59438","type":"ui_group","name":"X-AXIS","tab":"5736cae9.f98874","order":2,"disp":true,"width":"6","collapse":false},{"id":"5736cae9.f98874","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

i reinstall dashboard nodes ,to show the gauge/graph

It looks like you posted your flow not the start up log. Please post the log.

im so sorry for the inconvenience caused(still a beginner).. im not sure which one is log, is it as in the picture? under view option the event log?

2021-10-14T12:11:10.337Z Install : node-red-contrib-machine-learning-v2 1.0.9

2021-10-14T12:11:10.662Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-machine-learning-v2@1.0.9
2021-10-14T12:11:23.179Z [out] 
2021-10-14T12:11:23.179Z [out] added 6 packages in 12s
2021-10-14T12:11:23.199Z rc=0

How do you start node-red?
On a pi you open a terminal and enter ‘node-red’ and node-red will start running outputting information. That is the startup log I want to see.

im using windows and start using command prompt, here is the startup log

Good, that is what I wanted to see. It looks like your gauges are working at this point. Now for a chart you need to add in ui-chart. Have you tried that?

Here is one example of how charts work,

[{"id":"47c2da400933b75f","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"c91197a9.1b0818","type":"inject","z":"47c2da400933b75f","name":"","repeat":"1","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":150,"y":100,"wires":[["53a7b7d0.a82148","1b00715a.fd86cf"]]},{"id":"5ae57209.00e5ac","type":"ui_switch","z":"47c2da400933b75f","name":"Choice1","label":"{{msg.label1}}","group":"d3390420.783878","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":380,"y":280,"wires":[["a9110e08.3f754"]]},{"id":"53a7b7d0.a82148","type":"function","z":"47c2da400933b75f","name":"thai Date","func":"function thaiDate(date) {\n  var monthName = [\n    \"January\", \"February\", \"March\",\n    \"April\", \"May\", \"June\", \"July\",\n    \"August\", \"September\", \"October\",\n    \"November\", \"December\"\n  ];\n\n  var day = date.getDate();\n  var monthIndex = date.getMonth();\n  var year = date.getFullYear()+543;\n\n  return day + ' ' + monthName[monthIndex] + ' ' + year;\n}\n\nvar d = new Date(msg.payload);\nmsg.payload =thaiDate(d) + '  ' + d.toLocaleTimeString();\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":220,"y":160,"wires":[["3c20cd84.3e6892","ddc0d4.8190bf3"]]},{"id":"3c20cd84.3e6892","type":"ui_text","z":"47c2da400933b75f","group":"d3390420.783878","order":1,"width":0,"height":0,"name":"time","label":"{{msg.payload}}","format":"","layout":"col-center","className":"","x":370,"y":200,"wires":[]},{"id":"ddc0d4.8190bf3","type":"debug","z":"47c2da400933b75f","name":"","active":true,"console":"false","complete":"payload","x":390,"y":160,"wires":[]},{"id":"1b00715a.fd86cf","type":"function","z":"47c2da400933b75f","name":"set Label","func":"msg.label1='Test Choice1';\nmsg.label2='Test Choice2';\nmsg.label3='Test Choice3';\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":280,"wires":[["5ae57209.00e5ac","9a227703.8617c8","42081181.74a09"]]},{"id":"9a227703.8617c8","type":"ui_switch","z":"47c2da400933b75f","name":"Choice2","label":"{{msg.label2}}","group":"d3390420.783878","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":380,"y":320,"wires":[["d723bf24.96d7"]]},{"id":"42081181.74a09","type":"ui_switch","z":"47c2da400933b75f","name":"Choice3","label":"{{msg.label3}}","group":"d3390420.783878","order":5,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":380,"y":360,"wires":[["81017ea0.3fe91"]]},{"id":"a9110e08.3f754","type":"function","z":"47c2da400933b75f","name":"msg1","func":"var msg1={};\nif (msg.payload===true) {\n    msg1.payload = Math.round(Math.random()*100);\n    msg1.topic = msg.label1;\nreturn msg1;\n}","outputs":1,"noerr":0,"x":530,"y":280,"wires":[["d4a52bb0.f0f188"]]},{"id":"d723bf24.96d7","type":"function","z":"47c2da400933b75f","name":"msg2","func":"var msg2={};\nif (msg.payload===true) {\n    msg2.payload = Math.round(Math.random()*100);\n    msg2.topic = msg.label2;\nreturn msg2;\n}","outputs":1,"noerr":0,"x":530,"y":320,"wires":[["d4a52bb0.f0f188"]]},{"id":"81017ea0.3fe91","type":"function","z":"47c2da400933b75f","name":"msg3","func":"var msg3={};\nif (msg.payload===true) {\n    msg3.payload = Math.round(Math.random()*100);\n    msg3.topic = msg.label3;\nreturn msg3;\n}","outputs":1,"noerr":0,"x":530,"y":360,"wires":[["d4a52bb0.f0f188"]]},{"id":"d4a52bb0.f0f188","type":"ui_chart","z":"47c2da400933b75f","name":"","group":"faee512b.7f9bb","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":2,"x":690,"y":320,"wires":[[],[]]},{"id":"46399bdc.041db4","type":"function","z":"47c2da400933b75f","name":"reset chart","func":"msg.payload=[];\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":440,"wires":[["d4a52bb0.f0f188"]]},{"id":"9a3fcaad.2112b8","type":"ui_button","z":"47c2da400933b75f","name":"","group":"d3390420.783878","order":0,"width":0,"height":0,"passthru":false,"label":"reset chart","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":390,"y":440,"wires":[["46399bdc.041db4"]]},{"id":"d3390420.783878","type":"ui_group","name":"Group1","tab":"5ec074b0.493abc","order":2,"disp":true,"width":"5"},{"id":"faee512b.7f9bb","type":"ui_group","name":"Group 2","tab":"5ec074b0.493abc","order":2,"disp":true,"width":"15"},{"id":"5ec074b0.493abc","type":"ui_tab","name":"example ui_chart","icon":"dashboard"}]
1 Like

well, its quite complex example :sweat_smile:

however i noticed that something is wrong with my node-red..everytime i get error including running the example provided..

is this software issue or did i miss anything :frowning_face: :frowning_face:

Click on the node id above the error and it will take you to the node showing the error. One of them is called decision tree classifier trainer.

1 Like

thanks i manage to find the error

the graph works ,thanks alot..i will try to study and make one

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

1 Like

thanks alot i already did watch halfway