@zenofmud,
Thank you for your quick response.
Per your questoins
- are you looking to use a dashboard number pad or a physical number pad?
-Using a keyboard
- if a physical pad, how are you going to connect it to a computer? What pad is it?
-USB Keyboard with number pad.
- how will you reset the number back to zero after the counting is done?
-I will just subtract the actual number with itself to bring it back to "0"
- what device will you be running Node-RED on?
-Raspberry pi
- what have you tried so far?
-This is what I have so far.
I want to be able to have the result automatically get added as the "Number1". See in attachments. Once I add two numbers, the total is displayed as a value. I want that value to automatically get added to the Number1 field.
Also is there a way to have the "Operation" be able to be selected by pressing the "-" or "+" on the number pad instead of selecting the field and entering the "Operation". I will only need to use the "-" or "+".
[{"id":"753ea53bad373a24","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"6b1fbe08e324839c","type":"ui_form","z":"753ea53bad373a24","name":"","label":"Person1","group":"33e5c339802ecf45","order":2,"width":"0","height":"0","options":[{"label":"Number 1","value":"n1","type":"number","required":true,"rows":null},{"label":"Number 2","value":"n2","type":"number","required":true,"rows":null},{"label":"Operation","value":"op","type":"text","required":true,"rows":null}],"formValue":{"n1":"","n2":"","op":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":true,"className":"","x":380,"y":40,"wires":[["7c6bd57c2327a1fd"]]},{"id":"7c6bd57c2327a1fd","type":"function","z":"753ea53bad373a24","name":"Person1","func":"n1 = msg.payload.n1;\nn2 = msg.payload.n2;\nop = msg.payload.op;\n\nswitch(op){\n case \"+\" : msg.payload.result = n1+n2;\n break;\n case \"-\" : msg.payload.result = n1 - n2;\n break;\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":40,"wires":[["c5e8c10b3cf33f44"]]},{"id":"c5e8c10b3cf33f44","type":"ui_text","z":"753ea53bad373a24","group":"33e5c339802ecf45","order":1,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload.result}}","layout":"row-spread","className":"","x":670,"y":40,"wires":[]},{"id":"fbd14e9c750ff16c","type":"ui_form","z":"753ea53bad373a24","name":"","label":"Person2","group":"958b6ed2724a72dc","order":3,"width":"0","height":"0","options":[{"label":"Number 1","value":"n1","type":"number","required":true,"rows":null},{"label":"Number 2","value":"n2","type":"number","required":true,"rows":null},{"label":"Operation","value":"op","type":"text","required":true,"rows":null}],"formValue":{"n1":"","n2":"","op":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":true,"className":"","x":380,"y":120,"wires":[["61abcf6078aa9aa3"]]},{"id":"61abcf6078aa9aa3","type":"function","z":"753ea53bad373a24","name":"Person2","func":"n1 = msg.payload.n1;\nn2 = msg.payload.n2;\nop = msg.payload.op;\n\nswitch(op){\n case \"+\" : msg.payload.result = n1+n2;\n break;\n case \"-\" : msg.payload.result = n1 - n2;\n break;\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":120,"wires":[["de93f9f828d36ad4"]]},{"id":"de93f9f828d36ad4","type":"ui_text","z":"753ea53bad373a24","group":"958b6ed2724a72dc","order":2,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload.result}}","layout":"row-spread","className":"","x":670,"y":120,"wires":[]},{"id":"604326f671a3b8db","type":"ui_form","z":"753ea53bad373a24","name":"","label":"Person3","group":"958b6ed2724a72dc","order":8,"width":"0","height":"0","options":[{"label":"Number 1","value":"n1","type":"number","required":true,"rows":null},{"label":"Number 2","value":"n2","type":"number","required":true,"rows":null},{"label":"Operation","value":"op","type":"text","required":true,"rows":null}],"formValue":{"n1":"","n2":"","op":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":true,"className":"","x":380,"y":200,"wires":[["c87fd25ae2f14358"]]},{"id":"c87fd25ae2f14358","type":"function","z":"753ea53bad373a24","name":"Person3","func":"n1 = msg.payload.n1;\nn2 = msg.payload.n2;\nop = msg.payload.op;\n\nswitch(op){\n case \"+\" : msg.payload.result = n1+n2;\n break;\n case \"-\" : msg.payload.result = n1 - n2;\n break;\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":200,"wires":[["163bdc33ed0d32a0"]]},{"id":"163bdc33ed0d32a0","type":"ui_text","z":"753ea53bad373a24","group":"958b6ed2724a72dc","order":7,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload.result}}","layout":"row-spread","className":"","x":670,"y":200,"wires":[]},{"id":"87cb85be1cbda6cf","type":"ui_spacer","z":"753ea53bad373a24","name":"spacer","group":"958b6ed2724a72dc","order":1,"width":1,"height":1},{"id":"33e5c339802ecf45","type":"ui_group","name":"","tab":"c5575cfe102a97de","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"958b6ed2724a72dc","type":"ui_group","name":"","tab":"c5575cfe102a97de","order":2,"disp":false,"width":"6","collapse":false,"className":""},{"id":"c5575cfe102a97de","type":"ui_tab","name":"Budget","icon":"dashboard","disabled":false,"hidden":false}]