What is the problem?
I can't get a button to send a script to the pi
What did you already try to solve it?
I tried using command and also script
command: sends the script to the printer!
script: seems to do nothing
Logs (octoprint.log
, serial.log
or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)
terminal output if I use command:
Send: ~/scripts/SetLeds 1 1 1
Recv: echo:Unknown command: "~/scripts/SetLeds 1 1 1"
Recv: ok
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)
octoprint 1.4.0
octopi 0.17.0
Creality Ender-3
Raspberry pi 3B
yaml excerpt:
controls:
- children:
- name: blue LED script
script: ~/scripts/SetLeds 0 0 1
- command: ~/scripts/SetLeds 0 0 1
name: blue LED command
buttons appear on the control page as expected
click the one marked "blue LED script"
nothing happens
click the one marked "blue LED command"
script is sent to the printer
(I guess that's to be expected)
but where does the "script" go?!?
thanks