I have 2x 3d printers which I want to connect to wirelessly using Octoprint. The printers a situated in different rooms so I don’t know if it is possible to connect the printer to the Raspberry pi(Octopi) using a cable at this distance or would you be able to set up another Raspberry Pi running Octoprint on the 2nd printer?
I bought a second printer that stands next to the first. Can I connect it with a cable to the second USB port in Raspbery?
Will it work or break something?
It simply will not work. OctoPrint is made to control one printer at a time.
If you want to control more than one printer with one Raspberry Pi, you have to install multiple instances of OctoPrint on that Pi. Quite a hack and not recommended.
^
But if you just want to use one at a time you can do it your way.
Create a second printer profile and switch between them before you connect to the printer of your choice.
Before you go any further, you have to realise you will not be able to start a print on one printer, then connect to the second printer and connect back to the first printer to check in one the progress; connecting to a printer will reset the printer, and interrupt any ongoing prints.
In the long run, you will probably be happier with one Raspberry Pi per printer. With the announcement of the RPi Zero 2 at a price of $15 (plus a power supply, etc.), you can almost buy two for the price you used to pay for just one.