#How to make direct links to printers on a setup with multiple Klipper/Mainsail instances?

24 messages · Page 1 of 1 (latest)

pseudo juniper
#

Right now I access Mainsail via local IP, 192.168.1.200. There are two printers defined in Klipper/Moonraker at ports 7125 and 7126. I must wait for Mainsail to load, then select one of those printers. Is there a way to make a link that directly loads the printers instead of the 'choose a printer' screen? I am an impatient person looking to save seconds. 😄

cyan arrow
#

Yes, Just put the port on the end of the ip address.
for example
192.168.200:7125

pseudo juniper
#

I tried that. It just puts me on a Moonraker screen, not into Mainsail.

cyan arrow
#

That's weird it should work 🤔

pseudo juniper
#

Which makes perfect sense, since those are the ports that Moonraker is configured to use, and the ports that Mainsail is told to find Moonraker at.

cyan arrow
#

Oh wait, tried with 80 / 81 instead?

pseudo juniper
#

80 is your standard http port, so that puts you in the Mainsail choose-a-printer screen.

#

81 does nothing.

#

8080 and 8081 are webcams.

cyan arrow
#

Oh yeah, right i had fluidd setup on port 81 before, sorry my misleading.

Then you'll have to wait for one of the crew to help out 😦

pseudo juniper
wanton thicket
#

How’s your setup? Did you predefine the printers in config.json?

pseudo juniper
#

@wanton thicket No...

#

What I want is to be able to type something like printer2.local as a URL and have Mainsail know to connect to the Moonraker instance at port 7126, not present me a list.

wanton thicket
#

The list only appears if the instancedb is not set to moonraker.
With this set to moonraker you can add a second printer to your instance and switch between those two. Default would be the 1st (7125) instance I guess. Can‘t test it right now since I am on vacation.

#

For your suggestion with the printer2.local you need an advanced network configuration. Including two mainsail instances and an reverse proxy.

pseudo juniper
#

@wanton thicket So in all these years, Mainsail never came up with something as simple as e.g. my.mainsail.xyz#printer2 or some other way to load a specific printer directly?

#

That seems...surprising

wanton thicket
#

Well i am pretty new to the crew and at least I don‘t know about it ^^

pseudo juniper
#

my.mainsail.xyz?printer=printer2 .. so many ways to do it right in the URI

prime wyvern
wanton thicket
#

Guess there are quite a lot of ways to solve this but its probably not as simple as it sounds. Since we‘re talking about diffent instances here. Mainsail heavenly relies on the moonraker database. Since you‘re on the instances selection not connected to any moonraker database mainsail simply doesn‘t know about it.