I am running balena os on a raspberry pi with a docker-compose.yml file. More specifically i have a container which initializes spi communication with an adc, reads data and then stores them in a csv file. Then i have a second container which runs node-red and exposes the node-red dashboard on balenas cloud public url. What i can’t figure out is how to read the csv file from the node-red although it is located into the spi container.
It looks like your approach is correct. What happens when you open consoles to the two containers and create a file in the data folder in one of them - does it appear in the other one?
Thank you for your reply,
I have successfully created a file in the data folder and i am able to see it by using both container consoles but when i run my application i keep getting an error of no such file or directory.
Specifically the error i am getting is the following one.
Afterall indeed the path wasn’t specified correctly. I was saving the path into a variable at the beginning of my code and then used that variable to declare where the file was, but the variable accidentally was changing value between those two actions.
Now everything works fine!