Separating Object/Payload help (Solved) Thank you all

m = msg.payload.CallendarVan_Dusen_Temp_degC__0
return {payload:m}

?

You could read the docs... https://nodered.org/docs/user-guide/messages

and then there are some great tutorials online about javascript objects and arrays which are worth reading. One that often gets recommended is the w3schools one

1 Like

If you want to use each data point individually try this flow, makes it easier; each output with its own datapoint

[{"id":"36dcfbda.268ddc","type":"inject","z":"574a0da9.817cfc","name":"","topic":"","payload":"{\"payload\":\"RTD ADC Code: 7627\\n PT100 Resistance: 100.085754 ohms\\n Straight Line Approx. Temp: -17.656250 degC\\n Callendar-Van Dusen Temp (degC > 0): 0.219423 degC\\n high fault threshold: 32767\\n low fault threshold: 0\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":280,"y":299,"wires":[["9f329fe8.d40c6"]]},{"id":"b964919f.60ed1","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":161,"wires":[]},{"id":"9f329fe8.d40c6","type":"function","z":"574a0da9.817cfc","name":"","func":"\np = msg.payload.payload\nrow = p.split(/\\r?\\n/)\n\noutput = {}\narr = []\nfor(x=0;x<row.length-1;x++){\n  input = row[x].split(\":\")\n  key = input[0].replace(/[^a-zA-Z0-9 ]/g, '').trim().split(' ').join('_');\n  arr.push({payload:parseFloat(input[1].trim())})\n}\n\nreturn arr;","outputs":7,"noerr":0,"x":420,"y":299,"wires":[["b964919f.60ed1"],["d305f750.c7dcb8"],["8db9b9c0.562d6"],["788f88e3.20bae"],["21b1fe66.047aea"],["a626a122.c22128"],["72889052.71a9d"]]},{"id":"d305f750.c7dcb8","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":207,"wires":[]},{"id":"8db9b9c0.562d6","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":253,"wires":[]},{"id":"788f88e3.20bae","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":299,"wires":[]},{"id":"21b1fe66.047aea","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":345,"wires":[]},{"id":"a626a122.c22128","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":391,"wires":[]},{"id":"72889052.71a9d","type":"debug","z":"574a0da9.817cfc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":645,"y":437,"wires":[]}]

Works!!!!! whew thank you very much. Now I can make my oven work and not burn dinner!