How to push a msg object for every object in a array?

Hi,
I have an array with 10-24 items and after processing them I would like to push each of them as a single msg to the output.


for(i = 0; i<message.length; i++){
    
    date = new Date(message[i].start_timestamp);
    
    month = date.getMonth();
    day = date.getDay();
    stunde = date.getHours();
    
    price = message[i].marketprice/10;
    
    daten.push([price, hour]);
    stunden.push(day + " " + stunde);
    preise.push(price);
    
    PUSH MSG
    
}

Is this possible ?

BR
G

see the "Sending Messages Asynchronously" section of Writing Functions : Node-RED

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