Giter VIP home page Giter VIP logo

Comments (14)

dw-0 avatar dw-0 commented on September 27, 2024 2

Hi,

Yes i was asked several times if kiauh will support multi instances anytime soon or if its planned. At the moment, i am not working on such a functionality but i see that its frequently requested. I have to see if i can manage to wrap my head around a way to provide such functions.

from kiauh.

teikjoon avatar teikjoon commented on September 27, 2024 1

@teikjoon That is something the webinterface has to support. If you take a look at Mainsail for example, you will see that it's already possible there and it will show the additional services. Fluidd doesn't support that yet and needs an update to do so.

Thanks for quick reply @th33xitus - I guess I'll have to go log an issue with Fluidd then :)

from kiauh.

dw-0 avatar dw-0 commented on September 27, 2024

Just a short update.
One might already have noticed, there is a second branch named kiauh-rework where i am reworking quite a lot of the script.
Mainly due to implementing multi instance installer capabilities.

It is still not 100% complete but already functional. So if anyone feels adventurous, feel free to checkout kiauh-rework. @1N4148

from kiauh.

dw-0 avatar dw-0 commented on September 27, 2024

Should be solved with 16e6dde

Closing...

from kiauh.

1N4148 avatar 1N4148 commented on September 27, 2024

Switched to a single Pi per printer so I cannot test at the moment. But I'll prepare a test environment the next days to test your work :)

from kiauh.

dw-0 avatar dw-0 commented on September 27, 2024

Awesome :) Feedback and further testing is always welcome! I will reopen this issue here, so we can just continue in here then.

from kiauh.

Prutsium avatar Prutsium commented on September 27, 2024

Found your tool by accident and looks great as i want to run multiple printers.
But i have the FluiddPi image and seems as your installer did not install everything it wont work to make multiple instances of Moonraker / Klipper.

Any idea how to proceed?

from kiauh.

dw-0 avatar dw-0 commented on September 27, 2024

@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.

My own tests with MainsailOS and FluiddPi worked.

from kiauh.

Prutsium avatar Prutsium commented on September 27, 2024

@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.

My own tests with MainsailOS and FluiddPi worked.

Ok might be something for the readme in that case :) Anyway thanks will try this (and hope i dont screw up my config :) )

from kiauh.

Prutsium avatar Prutsium commented on September 27, 2024

@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.

My own tests with MainsailOS and FluiddPi worked.

Sorry to tag you again but ok i have 2 x Klipper, 2 x Moonraker and both api's are up.
Now i want to add the 2nd printer to Fluidd but how do i enter it? add printer and IP:port seems not be the way.
image

from kiauh.

teikjoon avatar teikjoon commented on September 27, 2024

@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.
My own tests with MainsailOS and FluiddPi worked.

Sorry to tag you again but ok i have 2 x Klipper, 2 x Moonraker and both api's are up.
Now i want to add the 2nd printer to Fluidd but how do i enter it? add printer and IP:port seems not be the way.
image

I solved this but using the IP address of the host (e.g. 192.168.0.200:7126) for the 2nd instance of moonraker (and by extension klipper)

from kiauh.

teikjoon avatar teikjoon commented on September 27, 2024

Not sure if I should necro this old thread instead of opening a new one, but it seems the multiple instance is working...I have 2x klipper/moonraker running on one host and everything works, except for the 'restart' functions.

This is probably since fluidd is trying to restart the service 'klipper' instead of 'klipper-1' or 'klipper-2' that is set up by KIAUH.

Is there any way we can have one more configuration variable, i.e. a sequence # or simply some variable which we can define the service name (e.g. klipper-1, moonraker-1) so that the 'restart service' button works?

image

Thanks.

from kiauh.

dw-0 avatar dw-0 commented on September 27, 2024

@teikjoon That is something the webinterface has to support. If you take a look at Mainsail for example, you will see that it's already possible there and it will show the additional services. Fluidd doesn't support that yet and needs an update to do so.

from kiauh.

susisstrolch avatar susisstrolch commented on September 27, 2024

Simple fix:
create /etc/systemd/system/klipper.service

[Unit]
Description=Bundle all klipper-x services
After=network.service

[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

create /etc/systemd/system/moonraker.service

[Unit]
Description=Bundle all moonraker-x services
After=network.service

[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

in klipper-*.service replace the Unit and Install section...

[Unit]
Description=Starts klipper instance 1 on startup
After=klipper.service
PartOf=klipper.service

[Install]
WantedBy=klipper.service

in moonraker-*.service replace the Unit and Install section...

[Unit]
Description=Starts Moonraker xxx on startup
After=moonraker.service
PartOf=moonraker.service

[Install]
WantedBy=moonraker.service

execute

sudo systemctl daemon-reload
sudo systemctl enable klipper.service moonraker.service
sudo systemctl start klipper.service moonraker.service

Now "sudo systemctl restart klipper" restarts all klipper instances w/o any change to the frontend.

from kiauh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.