Overview of the nodes in my flow: inject node -> run python script with exec node-> save into local file
The output of my python script is current, voltage, power and energy values (every 5 seconds, which means the file will be overwritten every 5 seconds).
My problem is that for some reason, the output of the python script gets separated into two message.payloads one right after the other. Which means my file is overwritten by the second part of the message and this way, only half of the values are being saved. I need all the values in the output of the python script to be saved at once in the local file. How can I do this?
I have modified the python script so that it only saves the data once (when I press inject), and now the whole message is being passed and downloaded. I don't know why, but under the exec node to run the python script, there is a small yellow square and it says
rc:1 , when before it was blue and it said
pid with a number next to it. Apart from that, when I inject now, sometimes it works, sometimes it doesn't