Salandora / octoprint-customControl

This plugin makes Custom Controls editable through the OctoPrint WebUI
GNU Affero General Public License v3.0
26 stars 15 forks source link

Possible to do basic math functions with user input? #18

Open chilicoke opened 6 years ago

chilicoke commented 6 years ago

Love this plugin!

I made a input field to quickly calibrate my E-steps, but am wondering if it's possible to do basic math within commands to allow me to simply enter in measured length extruded and have it calculate new Estep all within a button/input field.

Right now I have this equation on Google Sheets, but it would be awesome if I could do all this without switching window.

Thanks!

paramax55 commented 2 years ago

I asked this question a month ago and the answer was a maybe. Someone came up with a clever way to introduce (I believe) a python script. But it was much more complicated than just doing the math myself and entering the number. And all I wanted to do was take 1/2 of a number and invert it.