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. 😄
#How to make direct links to printers on a setup with multiple Klipper/Mainsail instances?
24 messages · Page 1 of 1 (latest)
Yes, Just put the port on the end of the ip address.
for example
192.168.200:7125
I tried that. It just puts me on a Moonraker screen, not into Mainsail.
That's weird it should work 🤔
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.
Oh wait, tried with 80 / 81 instead?
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.
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 😦
This person https://www.reddit.com/r/klippers/comments/10275o7/direct_link_to_specific_printer_in_multiprinter/ was aasking the same question and never got an answer.
How’s your setup? Did you predefine the printers in config.json?
@wanton thicket No...
The information in https://docs.mainsail.xyz/overview/quicktips/config.json makes it looks like it would give me the exact same end result.
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.
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.
@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
Well i am pretty new to the crew and at least I don‘t know about it ^^
my.mainsail.xyz?printer=printer2 .. so many ways to do it right in the URI
Afaik this doesn't exist too, as already mentioned in several posts on the #1036329187771957269
For the reason why, I don't know anymore
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.