I have 3 Pi's on which two have programs running on them that have two ArrayLists that are printed to an Excel sheet, but are also able to print to a text file. On the third, I wish to be hosting a web server on the LAN that will take the data from the two other Pi's and put them on one page.
I plan to have the 3rd Pi running Apache2, which I have used before. I thought about having a java program that will take the data and rewrite the HTML page Apache uses on the Pi, but I am open to any options.
I have looked into this by searching things like "Send file from Raspberry pi to raspberry pi" and similar, but only found from Pi to/from computers.
Re: Pi to Pi Communication
Hi
RPi is a computer.
A small one, but is a computer.
To send a file, you can use scp or sftp, with pre shared key.
Or via http post, using curl (or other) on sender side, and a cgi application on receiver (server).
cgi or commom gateway interface can be write in java, php, node.js, python, etc.
some languages have modular version of cgi. like php.
RPi is a computer.

A small one, but is a computer.
To send a file, you can use scp or sftp, with pre shared key.
Or via http post, using curl (or other) on sender side, and a cgi application on receiver (server).
cgi or commom gateway interface can be write in java, php, node.js, python, etc.
some languages have modular version of cgi. like php.
Re: Pi to Pi Communication
Would I be able to send the ArrayList itself or a file? I could output the ArrayLists to two files, send them and read them into ArrayLists on the other Pi.
Re: Pi to Pi Communication
The easiest solution may be to network mount the file system of the web server Pi onto the other Pis. Then the other Pis can write directly to the html directories served by the web server. Try searching on NFS and "man nfs" for more information.BoringGuy wrote:I have 3 Pi's on which two have programs running on them that have two ArrayLists that are printed to an Excel sheet, but are also able to print to a text file. On the third, I wish to be hosting a web server on the LAN that will take the data from the two other Pi's and put them on one page.
I plan to have the 3rd Pi running Apache2, which I have used before. I thought about having a java program that will take the data and rewrite the HTML page Apache uses on the Pi, but I am open to any options.
I have looked into this by searching things like "Send file from Raspberry pi to raspberry pi" and similar, but only found from Pi to/from computers.