I need some way to get data from a python script into node red. The script and node red will be on separate networks, so the data must be sent over the internet. The data is just numbers and letters, no multimedia. I also tried using tailscale but it doesn’t work. Can you please help me? Thank you.
Node-red have nodes for different network services, like HTTP, sockets and FTP to mention a few.
You can also import the data into HA and then let Node Red access it through there.
I tried connecting via http in, mqtt but the data from the script still doesn’t reach nodered and I don’t know how to deal with it. Can you please explain to me how to get data into hass and then into nodered? thank you
The easiest way is probably the HTTP in node and set it to GET.
Then an URL like http://<IP or URL of NR>:<port>?valuename1=value1&valuename2=value2 is the way.
If that does not give anything, then you have an issue elsewhere, like a closed port or no VPN running or similar.
When I enter the link with the nodered address added, the browser opens nodered itself, but it doesn’t send me any data to nodered.
My url was wrong (Too long since I used that node).
http://<IP or URL of NR>:<port>/endpoint/<url set in node<?valuename1=value1&valuename2=value2