What is the problem?
Not really a problem. Would like to know how to see what gcodes the default UI icons send to the printer and how to edit them. I'd like to update the Z axis home icon gcode
What did you already try to solve it?
googled it and found this site
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Running version 1.13.10 / 0.15.1 connecting to an X5SA printer.
When I was curious about what the Control tab's buttons did... I opened two browser windows and placed them in such a way that I could see both on the screen.
push button in the first window
observe Terminal in the second
Can you edit what they do? I'm not sure about that but I'd guess "no" other than perhaps forking OctoPrint or patching your installation in place. If you were a coder, you could create a plugin which changes the JavaScript for the native button using some sleight-of-hand but I don't think I'd suggest that.
A quick-and-dirty edit would be to add a custom Control tab button.
Never thought about that technique - but it worked Thank you.
I'm not a big-time coder, but do you know the file/script where these commands are defined? Shouldn't be too hard to search for a command and change it?
Don't do that. If you change the OctoPrint code, you either have to do that again and again as you update to newer OctoPrint versions, or you can not update to newer versions at all.
https://github.com/ntoff/OctoPrint-CustomZhoming Try this plugin as a place to get started making your own plugin (or just use it if it suits your needs). If octoprint pops up a dialog saying a reload is needed, close and ignore it, a restart of octoprint is required (just reloading the page won't work, octoprint needs to be restarted). Use the system menu and click "restart octoprint".
Wherever octoprint installs them to. You could just git clone the directory to wherever you want it.
ssh into the pi cd ~ git clone https://github.com/ntoff/OctoPrint-CustomZhoming source ~/oprint/bin/activate cd OctoPrint-CustomZhoming octoprint dev plugin:install
off the top of my head, that should clone the repository to your local user account on the pi, where you can modify the code as necessary and the last line will install it and run it from the source directory (so don't delete it).