Hi,
I am building a flow to extract dates for emptying garbage bins in our street from a website.
The type of garbage and the date are entered in two separate arrays.
How can I combine those two and read the right date for the type of garbage from the array?
Current flow:
[{"id":"eb8f35dd.1ccf98","type":"tab","label":"Afval kalender","disabled":false,"info":""},{"id":"f925e67a.9d9528","type":"inject","z":"eb8f35dd.1ccf98","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":140,"wires":[["a5a21a6e.18b198"]]},{"id":"a5a21a6e.18b198","type":"http request","z":"eb8f35dd.1ccf98","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://www.radhw.nl/inwoners/ophaalschema?p=3261+PH&h=1","tls":"","persist":false,"proxy":"","authType":"","x":290,"y":140,"wires":[["214bae89.ea7942","c2217819.1b9898"]]},{"id":"214bae89.ea7942","type":"html","z":"eb8f35dd.1ccf98","name":"","property":"payload","outproperty":"payload","tag":".datum","ret":"html","as":"single","x":450,"y":140,"wires":[["50c48c70.76cf24"]]},{"id":"c2217819.1b9898","type":"html","z":"eb8f35dd.1ccf98","name":"soort","property":"payload","outproperty":"payload","tag":".soortafval*","ret":"text","as":"single","x":450,"y":240,"wires":[["b535724d.5ac1e"]]},{"id":"f43f7092.7f421","type":"join","z":"eb8f35dd.1ccf98","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"soort","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":710,"y":180,"wires":[["d4f48ef2.33287"]]},{"id":"d4f48ef2.33287","type":"debug","z":"eb8f35dd.1ccf98","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":850,"y":80,"wires":[]},{"id":"b535724d.5ac1e","type":"function","z":"eb8f35dd.1ccf98","name":"part 1","func":"msg.parts = {};\nmsg.parts.id = 12345;\nmsg.parts.index = 0;\nmsg.parts.count = 2;\nreturn msg;","outputs":1,"noerr":0,"x":590,"y":240,"wires":[["f43f7092.7f421"]]},{"id":"50c48c70.76cf24","type":"function","z":"eb8f35dd.1ccf98","name":"part 2","func":"msg.parts = {};\nmsg.parts.id = 12345;\nmsg.parts.index = 1;\nmsg.parts.count = 2;\nreturn msg;","outputs":1,"noerr":0,"x":590,"y":140,"wires":[["f43f7092.7f421"]]}]
Output: