thelastWallE / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU Affero General Public License v3.0
65 stars 14 forks source link

klipper restart command in octoprint is wrong "FOR MY INSTALLATION" #75

Open tmblue opened 2 years ago

tmblue commented 2 years ago

Before submitting your issue please make sure to provide the following information

About your environment:

Distribution version. Eg. octopi, armbian

Octoprint version 1.7.2

Not sure a log file will be helpful here. The octoprint restart klipper in my case has the wrong command, first it's using service, vs systemctl and second it's calling klipper, where my service is klipper1 and klipper2.

Just wondering where in octoprint/octoklipper those commands are stored, so I can change them?

Trying to weed out a problem that is making me restart/reboot to get klipper to talk to my printer after a weird disconnect, and this is just the starting path..

tsk-2222 commented 7 months ago

Just wondering where in octoprint/octoklipper those commands are stored, so I can change them?

This is an old issue but I am replying in the hopes it may help someone else.

To make OctoKlipper plugin restart klipper using a different service name: Find the file similar to this: /home/YourHome/OctoPrint2/venv/lib/python3.10/site-packages/octoprint_klipper/__init__.py Search for and edit this :'command': 'sudo service klipper restart',

With Kiauh supporting multiple Klipper and Octoprint installations, it would be great if the plugin could also support them.