salandora / octoprint-customcontrol Goto Github PK
View Code? Open in Web Editor NEWThis plugin makes Custom Controls editable through the OctoPrint WebUI
License: GNU Affero General Public License v3.0
This plugin makes Custom Controls editable through the OctoPrint WebUI
License: GNU Affero General Public License v3.0
Hey,
I'm working on creating some buttons to make the bed leveling easier. I'ld like to be able to adjust certain parameters from the control tab in octoprint. Unfortunately, I can't see any changes at the control tab after the definition of the parameters (yes, I've saved my changes ;-) ). When I'm checking the settings within the custom control editor, it looks like there are no inputs defined.
I assume that I'm doing something wrong but wasn't able to find further information regarding my problem.
Here are some screenshots showing my problem:
Looking forward to your help!
Max
Hello,
I use a cheap USB microscope (<20โฌ) to accurately measure the head distance of my printer, and enter the Extr.2 X-offset & Extr.2 Y-offset in Repetier firmware (I put the microscope on the bed, and move the head).
It is very accurate and I got perfect head calibrations but is it a bit "heavy" because I have to :
As it is the best way I found to accurately calibrate a dual head, I would like to simplify a bit the process, (unfortunately I am not developer...)
Several questions :
1 - is there a way to add Controls in a new Octoprint Tab ? (eg. named "Head Calibration")
2 - is it possible to display the stream of an USB Microscope/WebCam connected to the Pi with your plugin?
3 - Is it possible to read/write some Repetier EEPROM Values ( Extr.2 X-offset & Extr.2 Y-offset) with a command ?
Thanks
Plugin does not reacts for any output using regular expression. I'm using current version of customControl and Octoprint 1.8.6 .
I tried to make an "Get position" example at first from docs.octoprint.org/en/master/features/custom_controls.html , but after few hours of fighting and searching internet I gave up. RegEx is correct (tested on https://regex101.com ), but control does not show template.
All other kinds of controls works properly. I made few of them, because I need some function panel for printer calibration and everything else works fine. Except that one with output reading. I checked config.yaml file by SSH connection and it looks also fine.
If there is something I've miss let me know.
Hi,
I would like to add some buttons to control my webcam.
At this point I've added them in the system menu with your other plugin (OctoPrint-SystemCommandEditor) but placing these buttons below the webcam view is a more logic place.
Also, the user input option would be very nice to change the focus point.
This is for example the change focus point command:
uvcdynctrl -v -d video0 --set='Focus (absolute)' 80
To change the focus it must run as a system command.
Is there a way to run these commands via this plugin?
Thanks!
Hello.
Congratulations and thanks for the useful plugin. I'm not an expert in Linux and Octopi and I need an help. I would like to add a custom control for the Z Offset of my printer. I found this code and I read I can use your plugin so I don't have to edit the config file:
controls:
Can you tell me how to write this code in your plugin please? Thanks
When the "Update Mesh Now" button is pressed from the Bed Visualizer Plugin, all the buttons from the Custom Control Editor are deleted.
This is the 3rd time I've set up a bunch of controls and they've mysteriously disappeared. They were there for over a week then vanished. Not just 1 or 2, but everything I'd set up.
babystepping Z, and force moves (Klipper firmware) in X, Y, and Z
Is there any way to create a control, that when triggered its' set parameter is usable by other controls?
I know you can use %(var)s to call a parameter but i can only get it to work within the control it is declared in.
Thanks.
As requested (#issue32) I open a new issue with minor priority. I use Themeify PlugIn with enabled "Discoranged" theme and did not change anything else there.
In Octoprint "Aussehen" I use as coloure: "Schwarz / black".
With these settings the text is non more readable in the CustomControl editor and I have to change the coloure or disable "Discoranged" or change to a different coloure. (see last picture below)
Hey @Salandora great work.
I need a button that run a system command. eg.
Button: Turn on printer
System command: curl -X POST https://maker.ifttt.com/trigger/turn_off_3d_printer/with/key/mykeyhere
Any ideas how I can do that
Im a huge fan of this plugin, but I would love if I could move it to the Temperature tab #temp
I have used a similar plugin and managed to get it moved to #temp and now I have got used to it there.
So can anyone help me how I could move it? I have checked the files, and I cannot figure it out - Its like no matter what I try nothing happens.
Hey @Salandora! This plugin has been in dire need of seeing some rather severe bug (#32, #39) fixed for a while now (first reported in May 2020), for which @jneilliii even provided a bugfix (PR #34, May 27th 2020), yet the last release predates this by a couple days and is from May 7th 2020, so closing in on two years now.
I get that your priorities have probably shifted, and there's really no harm in that (as I'm pretty sure I already said a bunch of times). But for the sake of the people depending on this plugin I think it's time to face it that this plugin should probably be considered abandoned at that point and see if we can't find a new maintainer for it.
Ok, Im feeling a total idiot right now. I've installed the plugin, restarted octoprint... I can see the custom controls on my CONTROL tab....but HOW do I edit them!?!?
Sorry!
Hey there,
i try to execute a python script and set a script command with "/home/pi/camcran.py up".
Same i use in system command editor and it works fine there.
But in custom control nothing happens.
please add something for emergency stop and stop if system gives jam detection
my system gives jam detection if nozzle clogs so please make a provision if this happens print should stop
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!
Hi,
I love this add in. Makes life so much easier!
I have a request: would it be possible to have a control perform more than one function? FOr example, if I want to do a G34 for Z alignment, you need to home first, so it would be useful if the button could have G29 and G34. Similar to how the TFT touch buttons work with a semi-colon dividing the commands, G29;G34.
I hope this can be done and thanks again for a great add-in.
Neil
I'd like to be able to optionally display a popup while the command is running.
For example if you create a control to heat the bed using a heat-and-wait code:
M109 S220 T0
Then it would be useful for there to be a popup on the screen saying "Heating..." while it is running.
I need to understand the syntax needed to point a custom control to a GCode file saved on my Raspberry Pi 4B OctoPi/Octoprint instance. GCode works when run in from the printer as a file to print , but when copied over to the Raspberry Pi and then a custom control is created to "point" to that gcode file it does not run the Gcode file.
For instance I place the file wheelcleaning.gco in the subdirectory home/pi/wheelcleaning.gco and then use this as my path statement for the custom control /home/pi/wheelcleaning.gco . No workie. I also tried /home/pi/wheelcleaning - leaving off the file extension . No workie. Also tried home/pi/wheelcleaning.gco and also /home/pi/wheelcleaning No workie
Hi, can I open URLs in the background? I want to turn on the light with a URL command http://IP:Port/Light%on and http://IP:Port/Light%off how I can do that?
Thanks
Awesome plug-in thanks !
I was recently introduced to the versatility of Custom Controls and your plugin and using it I was able to rapidly prototype an entire UI for managing Marlin Mesh Bed Leveling in probably 30 minutes:
but it's quite difficult to explain to others how to implement the same on their OP instances, which gave me an idea...
Have you considered implementing a recipe feature where users could create a container and once complete, could hit an "Export" function to download the recipe through the browser, and submit to a repository here on your github page ? In the above picture, if the top level "Mesh Bed Leveling" section were turned-down, to the far right of the container name, you could have a small "Export" button. And in your plug-in you could have a single corresponding "Import" button somewhere so users could import recipes.
You could perhaps even implement a in-plug-in mechanism where users could automatically download/install recipes that have been submitted to your github repo.
I'm not sure how feasible that part is, but I do know that even without the automatic repo idea, the ability to easily export/import through the UI without having to dig into the config.yaml would be a huge win and open up your plugin to many more users who are less technically inclined.
Thanks for considering, and for making such a great and versatile plugin !
-=dave
Unfortunately all my button (containers, commands) are deleted after the update from today. I am running a RPi 3B with OctoPi 1.4.0 on Octroprint 0.16.0.
I created them new, stored them and they seem to be working (I am running a print currently, so I cannot check in deep, but I can control the LED on a Sidewinder x1 during the print...)
Would be great if I will get a warning before the update that the configuration will be deleted with this update, so I can make some screenshots in before.
On the other side if this behaviour was not expected from your side I think this is a bug...
However a very good PlugIn!
The Plugin is not yet Python3 ready - or the tag is missing
When I uninstall this plugin (option "uninstall and remove data"), the buttons including their function remain. When I try to remove the buttons in the plugin, they again remain in place.
If this plugin is no longer maintained, please, at least provide guidance on how to remove it if needed. I intend on keeping it as you did a great job here but this is a crucial functionality that is really needed. Many thanks
Hi, I have created a couple of commands and it works great.
I created a command to adjust my Z offset and save to eeprom. Works fine
M851 Z-%(offset)s
M500
But now I need help for this:
I made a button to read the current Z off set with M851 but I have to go in terminal view to see the value
How can I have the value displayed beside my button?
I think it has to do with the regex thing but I don't know how to do this.
Thank you!
Hello,
I have a small feature request, would it be possible to add an option in each command to disable them if an printing is in progress?
thx for this plugin :)
First, thanks for this plugin. It's going to allow me to use OctoPrint to run my CNC machine by filling the UI gaps in what you need to do for CNC that you don't need for 3D printing.
That said, I almost gave up on the plugin because it appeared to me to be broken -- when I went to "Custom Controls" in settings for the first time, all I saw was the green outline box. It wasn't until I noticed a screenshot of a context menu on the plugin page that I realized that it did work properly, and I just needed to right-click to get started.
At minimum, I think it would be nice if at the top of the UI it said something like "to add containers and controls, right-click the green box", or better yet, since the only option in that context menu is to make a container, why not just replace the green box with a "create container" button?
Hello,
I have tried to remove commands and the container I created, the commands can only be deleted if confirmed and then saved for each single command, multiple confirmed deleted commands and saving after does not work. Deleting a container does not work for me at all.
Hardware: Pi 3 Model B Revision a02082 (Sony, UK)
OS: Octopi Version 1.3.9
Plugin: Custom Control Editor 0.2.1
I would appreciate if a fix for this would be considered.
Thanks and keep up the great work !
Jan P.
I was just wanting to run a simple python script that controls some GPIO pins and another that starts some services.
This is what I have done so far:
![capture](https://user-images.githubusercontent.com/33512163/35783778-cb3454dc-0a71-11e8-8c34-a6f44b2698e1.PNG
Is it even possible to run python scripts from this plugin. I know it can be done in the config.yaml but didn't really want to delve into messing around with that.
Is there any way to run a script or command as root?
I want to add a button that restarts the webcam service, but that requires running it as root. Sudo also doesn't work since it requires a password input to function.
Thanks!
I see there is a script option but these seem to be all printer instructions. What if I want to run a shell command using these controls? Is there any way of doing that ?
Love this plugin, thanks!
The only thing not working on my system, is I can't seem to appy styles to the buttons... they all just stay grey, ie if I select style > emergency for the button it does not change to red.
Good morning at all.
Thanks for your plug-in, it work very nice, but I have a small question:
How to work the output command?
I try to add button "get position" with regex and template sintax, add an output command but not work. How to combine the request "get position" button to "output window"?
thanks for all and sorry for my bad english.
I have created a collection of custom controls to change E-steps, Z-offset, load, save, and show settings and all works well except for one minor annoyance. When I click "Show Settings" I have to then switch to the Terminal tab to view the results. Ideally, all of these controls would be better if they were located on the Terminal tab instead of the Control tab.
Would it be possible to add functionality to choose which tab the custom controls are on? If so, would it be possible to select on a per-control basis?
After creating a command button, the plugin will not delete it. Attempts to delete remove the template but do not save after clicking the "save" button. Uninstalling does not remove commands. Re-installing recognizes the previous command that was supposed to have been deleted.
Seems like a commit problem upon deletion, but I do not have skill to dig into the code.
Otherwise extremely useful especially when working with a CNC machine for position setting.
OctoPrint==1.3.8
OctoPrint-CustomControlPlugin==0.2.1
octopi 0.15
impossible to uninstall octoprint-customControl
when uninstalling from plugin manager i have this message
Cannot uninstall requirement octoprint-customControl, not installed
i try from command line and same problem
/home/pi/oprint/bin/pip uninstall --yes octoprint_customControl
Cannot uninstall requirement octoprint-customControl, not installed
in fact , the name of the plugin is not correct
/home/pi/oprint/bin/pip freeze | grep OctoPrint
OctoPrint-CustomControlPlugin==0.2.1
and now with this command it work
/home/pi/oprint/bin/python2 -m pip uninstall --yes octoprint_customControlPlugin
Uninstalling OctoPrint-CustomControlPlugin-0.2.1:
Successfully uninstalled OctoPrint-CustomControlPlugin-0.2.1
The modifications do take effect after refreshing the client. (e.g. F5)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.