I want to be able to write a JSON file to another computer internally on my network, but however
I construct the file path in the write node I cannot get access.
I suppose this is an issue with authorization, but surely this is possible somehow.
The Noe-RED installation I am using is an addon to Home Assistant on a raspberry pi and I specifically want to get this file to another pi.
Can someone shed some light on how to do this.
Not many here use Home Assistant but if you have an MQTT broker on your LAN - send the message to it and install Node-RED on the other Pi to receive it and then just have a simple flow to save file from there
@cymplecy suggestion is very clean, self contained and simple to maintain.
However, if you wont go down this path, you will need to somehow mount the remote directory to a mount point inside of the HA docker container (providing permissions (if needed)). Once you have that all working, you can then use standard file nodes to write to the mnt/mount-point-you-setup
Even if you dont have an MQTT broker, there are many options for sending data from node-red to node-red (http end points, TCP, UDP etc) but MQTT is by far the easiest
So I have an existing installation of a MQTT broker from a HA addon, which handles my Ring doorbell device. I have never used in any flows it as I have neglected to look at it.
I have attempted to send an MQTT JSON message from one flow to another on the same install of Node-Red, which works well.
I have installed Node-red on another machine using a (different port), but I don't seem to be able to connect to the MQTT broker to receive the message using the credentials I am using on the first installation, should they be different or am I missing a trick somewhere.?
Ah silly me, I was being stupid and not concentrating.
I put a ridiculous IP address in for the server on the second receiving machine.
It's working a treat. Now I know about this I can have hours more fun!!
Thanks for making me do a bit of reading, it's a brilliant thing