Well hello,
I'am using node red mainly for home automation. But I have a question about the dashboard.
I want to make a checklist in Dashboard and submit this to a CSV file or SQL. First CSV.
I have some switches and some textinput ui nodes. What I want is when I press the submit button the values in the switches and text input has to go to the CSV file after that the dashboard has to be cleared for the next check. The problem is when I fill in the form every value will write directly.
Can someone help me?
This is my flow
``[{"id":"4a808c43.22a654","type":"ui_switch","z":"b6b193d4.358de","name":"","label":"Check 1","tooltip":"","group":"7a66740e.12a50c","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"2","offvalueType":"num","officon":"","offcolor":"","x":840,"y":1060,"wires":[]},{"id":"955ff15.12cd01","type":"change","z":"b6b193d4.358de","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":1180,"wires":[["4a808c43.22a654","c7c8ae1a.c5c57","84a99804.e12058"]]},{"id":"c7c8ae1a.c5c57","type":"ui_switch","z":"b6b193d4.358de","name":"","label":"Check 2","tooltip":"","group":"7a66740e.12a50c","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"2","offvalueType":"num","officon":"","offcolor":"","x":840,"y":1120,"wires":[]},{"id":"84a99804.e12058","type":"ui_switch","z":"b6b193d4.358de","name":"","label":"Check 3","tooltip":"","group":"7a66740e.12a50c","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"2","offvalueType":"num","officon":"","offcolor":"","x":840,"y":1180,"wires":[]},{"id":"8d3e8af5.8e1038","type":"ui_text_input","z":"b6b193d4.358de","name":"","label":"Name","tooltip":"","group":"7a66740e.12a50c","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"","x":830,"y":1000,"wires":[]},{"id":"5a46c91a.224578","type":"change","z":"b6b193d4.358de","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":1100,"wires":[["8d3e8af5.8e1038"]]},{"id":"12c94bab.36da74","type":"delay","z":"b6b193d4.358de","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":400,"y":1140,"wires":[["5a46c91a.224578","955ff15.12cd01"]]},{"id":"4eb595ea.1acb7c","type":"ui_button","z":"b6b193d4.358de","name":"","group":"7a66740e.12a50c","order":5,"width":0,"height":0,"passthru":false,"label":"Ok","tooltip":"","color":"","bgcolor":"","icon":"","payload":"Test","payloadType":"flow","topic":"","x":210,"y":1260,"wires":[["12c94bab.36da74"]]},{"id":"7a66740e.12a50c","type":"ui_group","z":"","name":"Login","tab":"8adf1d7d.4d575","disp":true,"width":"6","collapse":false},{"id":"8adf1d7d.4d575","type":"ui_tab","z":"","name":"Keuringsrapport","icon":"dashboard","disabled":false,"hidden":false}]