Hi all
I would like to send caller number and call time to google sheets via nodered.
My Tasker app uses a get request to send caller number and unix time as a combined string separated by a comma.
The HTTP node returns an object; {data:"027522000,1769366895"}
And that is where I get lost, would the best route be a function that splits at the comma and assigns to string variables or use nodes?
So far after endless searching I have two split nodes giving a message sequence of separate strings but unable to get my head around using msg.parts.index (does it need a suffix in square brackets ?) to get new individual msgs
Have read working with a messages but cannot find specifics on message sequences, most AI responses seem to deal with rejoining sequences after manipulation but are vague on processing.
Hope someone can help .
Thanks
[{"id":"fd16d8ce2d4fe245","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"7cb825869847fde1","type":"http in","z":"fd16d8ce2d4fe245","name":"","url":"update","method":"get","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":130,"y":160,"wires":[["a85986764eb8e4bd","59f574fe33fca39f","e63ab697d6e3a489"]]},{"id":"a85986764eb8e4bd","type":"http response","z":"fd16d8ce2d4fe245","name":"","statusCode":"","headers":{},"x":330,"y":240,"wires":[]},{"id":"12d8c37fd2f44dfe","type":"debug","z":"fd16d8ce2d4fe245","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":680,"y":160,"wires":[]},{"id":"59f574fe33fca39f","type":"split","z":"fd16d8ce2d4fe245","name":"","splt":",","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":330,"y":160,"wires":[["0cdcbfc4eab7092b"]]},{"id":"e63ab697d6e3a489","type":"debug","z":"fd16d8ce2d4fe245","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":100,"wires":[]},{"id":"0cdcbfc4eab7092b","type":"split","z":"fd16d8ce2d4fe245","name":"","splt":",","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":490,"y":160,"wires":[["12d8c37fd2f44dfe"]]}]