I have a function which displays pictures from a camera. It displays the last 5 pictures taken by the camera. I would like to have the newest pictures always in position 1, the next in 2 and so on.
I guess I have to use a array, but not sure if thats the right approach and how to as I dont know how to use arrays. Maybe there is a better way anyway ?
does but I can try to find that somewhere in the docs.
This function would wait until all 5 pictures have been collected before sending ? Or could I send it with pictures not collected yet as null. Sometimes there can be hours between pictures being triggerd (this is from my security cams)
Ok I think I get it. What I am not sure about, with my fuction I have the function node set to have 5 outputs, each going to a template then a dashboard template node to display the 5 pics. If I understand your function, that will send 5 pics one after another ?
First time I tried with just a few debugs on there, it only came out of output 1. Now I tried again, and now it seems to work ok ! By tomorrow I will know for sure if its working as intended, but I think it will.
Many thanks !
Und viele Gruesse nach D !