prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.75k stars 1.93k forks source link

Feature request: multiple print host options #4217

Closed ruralaccent closed 4 years ago

ruralaccent commented 4 years ago

Version 2.2.0 Win10 MK3S

I use the Print Host function regularly to upload sliced files to my Octoprint server. However, I have three separate Octoprint servers on three different Pis, and thus I have to either change this information manually or store three different printer profiles with different host data (which I have to maintain as otherwise identical). This is not efficient.

Is it possible to add multiple print host profiles, rather than just have one single one? This would enable multiple servers to be stored and selected via drop-down or something? It would be much more efficient and user friendly, not least as printer profile isn't really a comfortable home for print host data, as the latter is somewhat separate and may be relevant to multiple printer profiles?

Capturewdee

Many thanks!

ayourk commented 4 years ago

I am also interested in seeing this feature come to the light of day. I have only 1 printer but 2 different ways to access this printer. One of the ways is via OctoPrint, the other is via FlashAir.

I have some ideas on implementation of this feature.

MultiHostPrusaSlicer You can have the G> button open up a drop down with a menu listing available host types, and from each host type, list available host aliases under there. Some sort of "Add Host" button would be needed to add more than 1 host and some sort of unique naming alias system would be needed so as to identify each sub host. Example XML follows (includes OP's scenario too):

`

OctoPrint Prusa Ferdinand
192.168.5.2:5000
AEE30B658....
OctoPrint Ender 3 Daisy
192.168.5.7:5000
BF6325EA....
FlashAir Prusa Butterfly
192.168.5.16

`

And the example menu would look something like: OctoPrint > FlashAir >

When you would hover over OctoPrint, the 2 OctoPrint hosts' aliases appear. When you hover FlashAir, the 1 FlashAir host alias would appear. Host types that don't have any aliases are NOT shown in the drop down menu. Clicking on the designated host sends the sliced data to that host. If there is ONLY 1 print host, no need to use the aliases or the drop down menu. For simplicity in coding, the single print host could have an alias of "Default". In addition to being able to add hosts, of course a way to edit and delete hosts would be needed. You could even implement some sort of folder system to better organize host aliases, such as in different buildings or locations.

bubnikv commented 4 years ago

We have implemented it the other way around. One physical printer profile allows an assignment of multiple logical printers. It will be part of PrusaSlicer 2.3.0-alpha1. Closing.