Salandora / OctoPrint-SystemCommandEditor

This plugin makes System Commands editable through the OctoPrint WebUI
GNU Affero General Public License v3.0
9 stars 10 forks source link

only one (system)command works #2

Closed Werja closed 8 years ago

Werja commented 8 years ago

Hello, I have a problem with the SystemCommand Plugin. I use octoprint 1.2.6 on Octopi. When one system command is created it works fine, but when i create a second command the properties from the first command will be override.

Salandora commented 8 years ago

Thats interesting can you please provide the settings for both commands you created. Will try to replicate the problem then.

Werja commented 8 years ago

I need two commands to contro my webcam with a servo. There are little python scripts to do that.

I create the first command: name: Kamera nach oben aktion: empty command:sudo python /home/pi/scripts/kamera_nach_oben.py no confirmation string -> bestätigen create command two: name: Kamera nach unten aktion: empty command:sudo python /home/pi/scripts/kamera_nach_unten.py no confirmation string -> bestätigen save settings

Now both commands are available over the system tab in octoprint, but only the first system-command will executed on both items. So i go back to settings and edit the "Kamera nach unten" item and found this wrong setting: name: Kamera nach oben command:sudo python /home/pi/scripts/kamera_nach_oben.py

btw: Is thre a option to prevent the default confirmation?

Am 24.09.2015 um 17:30 schrieb Salandora:

Thats interesting can you please provide the settings for both commands you created. Will try to replicate the problem then.

— Reply to this email directly or view it on GitHub https://github.com/Salandora/OctoPrint-SystemCommandEditor/issues/2#issuecomment-142963949.

Salandora commented 8 years ago

No wonder, you need to set "aktion" to a unique name. Like "cameraup" and "cameradown"

Werja commented 8 years ago

Thanks for your reply. The commands are working now. Is there an option to prevent the default confirmation?

Salandora commented 8 years ago

I believe no.