How to join two messages of different format?

Hello !
I need to join two messages in the same mode to be able to upload to AWS Iot, add the no to format the time because node red does not show me the time of my region. I have been reviewing youtube forums and videos for several days, I am new to this platform, I would be very grateful for your help.

[{"id":"870e3dea.43e1e","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"321f3c38.7b8f64","type":"ui_form","z":"870e3dea.43e1e","name":"","label":"","group":"eccfb0b5.c7841","order":3,"width":"6","height":"15","options":[{"label":"Ingrese proveedor","value":"proveedor","type":"text","required":false,"rows":null},{"label":"Identificación Interna","value":"interna","type":"number","required":false,"rows":null},{"label":"Identificación externa","value":"Externa","type":"number","required":false,"rows":null},{"label":"Fecha de ingreso","value":"Fecha","type":"date","required":false,"rows":null},{"label":"Hora","value":"Hora","type":"time","required":false,"rows":null}],"formValue":{"proveedor":"","interna":"","Externa":"","Fecha":"","Hora":""},"payload":"","submit":"Enviar","cancel":"Cancelar","topic":"datos","topicType":"msg","splitLayout":false,"className":"","x":170,"y":380,"wires":[["3b53af26.72e7","7071c6f3.0a30c8"]]},{"id":"3b53af26.72e7","type":"change","z":"870e3dea.43e1e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.Hora","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":420,"wires":[["5ebe2e2b.da06b"]]},{"id":"7071c6f3.0a30c8","type":"change","z":"870e3dea.43e1e","name":"","rules":[{"t":"delete","p":"payload.Hora","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":240,"wires":[["a62a6312.250f1"]]},{"id":"5ebe2e2b.da06b","type":"moment","z":"870e3dea.43e1e","name":"","topic":"HoraF","input":"payload","inputType":"msg","inTz":"America/Guayaquil","adjAmount":0,"adjType":"days","adjDir":"add","format":" HH-mm-ss","locale":"es-EC","output":"payload","outputType":"msg","outTz":"America/Guayaquil","x":510,"y":440,"wires":[["2d86d5aa.f8430a"]]},{"id":"a62a6312.250f1","type":"debug","z":"870e3dea.43e1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":260,"wires":[]},{"id":"2d86d5aa.f8430a","type":"debug","z":"870e3dea.43e1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":440,"wires":[]},{"id":"eccfb0b5.c7841","type":"ui_group","name":"Datos cafrilosa","tab":"e76a9497.de2648","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"e76a9497.de2648","type":"ui_tab","name":"Ingreso de datos Cafrilosa","icon":"dashboard","disabled":false,"hidden":false}]

See this article in the cookbook for an example of how to join messages into one object.

NOTE: Ensure both messages have unique topics. (set topic in the change node)

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.

You can achieve the same result without split and join, like this:

Untitled 1

[
    {
        "id": "321f3c38.7b8f64",
        "type": "ui_form",
        "z": "870e3dea.43e1e",
        "name": "",
        "label": "",
        "group": "eccfb0b5.c7841",
        "order": 3,
        "width": "6",
        "height": "15",
        "options": [
            {
                "label": "Ingrese proveedor",
                "value": "proveedor",
                "type": "text",
                "required": false,
                "rows": null
            },
            {
                "label": "Identificación Interna",
                "value": "interna",
                "type": "number",
                "required": false,
                "rows": null
            },
            {
                "label": "Identificación externa",
                "value": "Externa",
                "type": "number",
                "required": false,
                "rows": null
            },
            {
                "label": "Fecha de ingreso",
                "value": "Fecha",
                "type": "date",
                "required": false,
                "rows": null
            },
            {
                "label": "Hora",
                "value": "Hora",
                "type": "time",
                "required": false,
                "rows": null
            }
        ],
        "formValue": {
            "proveedor": "",
            "interna": "",
            "Externa": "",
            "Fecha": "",
            "Hora": ""
        },
        "payload": "",
        "submit": "Enviar",
        "cancel": "Cancelar",
        "topic": "datos",
        "topicType": "msg",
        "splitLayout": false,
        "className": "",
        "x": 170,
        "y": 380,
        "wires": [
            [
                "5ebe2e2b.da06b"
            ]
        ]
    },
    {
        "id": "5ebe2e2b.da06b",
        "type": "moment",
        "z": "870e3dea.43e1e",
        "name": "",
        "topic": "HoraF",
        "input": "payload.Hora",
        "inputType": "msg",
        "inTz": "America/Guayaquil",
        "adjAmount": 0,
        "adjType": "days",
        "adjDir": "add",
        "format": " HH-mm-ss",
        "locale": "es-EC",
        "output": "payload.Hora",
        "outputType": "msg",
        "outTz": "America/Guayaquil",
        "x": 310,
        "y": 380,
        "wires": [
            [
                "2d86d5aa.f8430a"
            ]
        ]
    },
    {
        "id": "2d86d5aa.f8430a",
        "type": "debug",
        "z": "870e3dea.43e1e",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 470,
        "y": 380,
        "wires": []
    },
    {
        "id": "eccfb0b5.c7841",
        "type": "ui_group",
        "name": "Datos cafrilosa",
        "tab": "e76a9497.de2648",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "e76a9497.de2648",
        "type": "ui_tab",
        "name": "Ingreso de datos Cafrilosa",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

Is perfect :vulcan_salute:
Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.