Closed jpbnto closed 1 year ago
@jpbnto As i already answered in the mainsail discord: I just forget about multi instance. We will work on a solution but right now timelapse isn't multi instance compatible.
What would need to change:
What you can do at the moment. You could create the symlinks of the timelapse.cfg and timelapse.py manually. Then without a working dummy service you would need to restart moonraker and klipper of each instance by yourself.
manually linking of the files would be something like this (warning this isn't copy pasta ready! you need to change your paths by yourself!)
ln -sf "/home/pi/moonraker-timelapse/component/timelapse.py" "/home/pi/moonraker/moonraker/components/timelapse.py"
ln -sf "/home/pi/moonraker-timelapse/klipper_macro/timelapse.cfg" "/home/pi/{klipper instance config path}/timelapse.cfg"
you also need to change the frame_path: config in moonraker.conf so each instance has it's own dedicated directory
I got "Klipper service not found, please install Klipper first" here also. Not sure why I can't make it work. tried to copy to printer1 configuration as mentioned but couldn't make this work. Please help.
@harellevy the installer will not work, but it doesn't has to! If you linked the plugin and macro file you don't need the installer to run
ls: cannot access '/home/pi/klipper_config/webcam*.txt': No such file or directory where is the file that´s pointing at that?
@Fuckingnameless the webcam.txt has nothing todo with timelapse. Only thing is you need to change the resolution of the stream inside the webcam.txt which then changes the resolution of the timelapse. But the timelapse plugin doesn't interact with the webcam.txt at all. This is a OS (MainsailOs/Fluiddpi or Kiauh) related question, please open a issue there.
@FrYakaTKoP thank you very much, your copy comment above worked perfectly.
Multi instance install added with 3ac026158b2b849456bb9bf20c7663c667fa4d84
~$ cd ~/ git clone https://github.com/mainsail-crew/moonraker-timelapse.git bash ~/moonraker-timelapse/install.sh
~ $ Cloning into 'moonraker-timelapse'... remote: Enumerating objects: 258, done. remote: Counting objects: 100% (258/258), done. remote: Compressing objects: 100% (181/181), done. remote: Total 258 (delta 127), reused 128 (delta 50), pack-reused 0 Receiving objects: 100% (258/258), 132.17 KiB | 1.41 MiB/s, done. Resolving deltas: 100% (127/127), done. Klipper service not found, please install Klipper first