Control smartphone camera with Node red installed on Android

What command do you think the exec node is running?
Put a debug node on the output of the function node and see what it shows.

thougt this is the command for the exec: "termux-camera-photo test.jpg"

If you run that in a terminal on the phone does it work?

no doesn t work..

Well that is the problem then. Nothing to do with node-red.
How do you know it is not working?

Have you installed the Termux API addon? If not, start there. If yes, what do you see in the terminal when you type that command by hand?

I ve allready installed it..

It just shows noting and expect the next command

What do you expect to see in the terminal when you enter the command?

that a picture named test.jpg is generated

I asked what you expect to see in the terminal. I don't see anything in the description of that command that says it will confirm that it has done it. The command has not shown an error so I would expect that it thinks it has done it.

okay but if it do so where is the file?
I mean I would like to take some pictures controlled by NR..

Presumably it is in the current directory. In the terminal, run ls to see if it is there.

okay it is there, but how do i get the file then?

There is file-in node in Node-RED have you tried that?

no, cause i don t know at what file path the files are

Try googling “termux file location”?

Probably best to specify the full path to wherever you want the image written. Then you will know where it is.

I do that and now i get a return:

But if i convert into a buffer, I can not load the jpg.

If your input is an image it is a binary file you need the output format to be "a single buffer object"

okay and how do i get this? is there a node for?