Hi,
I have got a question about splitting http request.
I want to get one part of a string from a website. Therefore I am using http request and then I would like to split it.
After I split it, I get two strings in the payload. Now I want to work with only one of them. I thing it is very easy, but I don't get it.
Fyi: It is the printable version of myfittnespal diary and I want to get the total carbs number of the day.For that reason I just made a test account and this is my node so far:
[{"id":"24b0737d.a3ff5c","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"5d69ec65.08d684","type":"inject","z":"24b0737d.a3ff5c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":60,"wires":[["ed0452de.b2a24"]]},{"id":"ed0452de.b2a24","type":"http request","z":"24b0737d.a3ff5c","name":"","method":"GET","ret":"txt","url":"https://www.myfitnesspal.com/reports/printable_diary/testaccount111112222","tls":"","x":169,"y":121,"wires":[["7435ed21.ba7444"]]},{"id":"3e34057f.c092ca","type":"debug","z":"24b0737d.a3ff5c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":631,"y":116,"wires":[]},{"id":"3a6de1a.f00db1e","type":"split","z":"24b0737d.a3ff5c","name":"","splt":"TOTAL","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":491,"y":120,"wires":[["3e34057f.c092ca"]]},{"id":"7435ed21.ba7444","type":"change","z":"24b0737d.a3ff5c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"diabetes","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":346,"y":118,"wires":[["3a6de1a.f00db1e"]]}]
Thanks for your help