Giter Club home page Giter Club logo

octoprint-customcontrol's People

Contributors

razerraz avatar salandora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

octoprint-customcontrol's Issues

Not able to add / define input parameter

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

Add Controls in a Tab

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 :

  • Open to the tab Control,
  • Center the Nozzle 1 with the arrows,
  • Switch to Nozzle 2,
  • Open your EEPROM Repetier Editor,
  • Go down to the Extr.2 X-offset values
  • Enter new values, go up, Save... > the printer move the Head
  • Switch to Control Tab, Check Nozzle 2 position
  • Open your EEPROM Repetier Editor...
    and so on up I got a perfect calibration of Nozzle 2

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

microscope
microscopestream

New command not saved

Hi,

just installed your plugin to add acustom command but unfortunately it is not saved (please see screenshots). Am I missing something?

Thanks, Martin
Screenshot 2020-04-29 at 13 34 38
Screenshot 2020-04-29 at 13 34 32
Screenshot 2020-04-29 at 13 34 25
Screenshot 2020-04-29 at 13 34 18

Do not read output.

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.

Possibility to run system commands

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!

Z offset

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:

  • children:
    • command: M628
      default: ''
      name: Get
      regex: z zero offset value:(?P\d+(.\d*))
      template: 'Current: {offset} mm'
      width: '5'
    • command: M628 Z%(offset)s
      input:
      • default: '0.00'
        name: New (mm)
        parameter: offset
        slider: false
        name: Set
        width: '5'
    • command: G28 Z0
      name: Home Z
      width: '2'
      collapsed: true
      layout: horizontal_grid
      name: Adjust Z Offset

Can you tell me how to write this code in your plugin please? Thanks

Custom controls keep disappearing

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

Global Parameters

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.

More documentation on creating commands with parameter

I'd wanted to create a slider that sends a command to the printer with like G92 {param}

I've done something like that:

The problem is that the command sent is G92 {height}
How do I set the parameter in the command line to be replaced by the parameter from the input slider ?

thanks

Text coloure not compatible to dark Themeify PlugIn themes and "Aussehen" with Black/Schwarz background

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)

However in GUI everything is visible in with text.
GUI
Aussehen
Themeify_2
Themeify_1
Dark_theme Octoprint

System command

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

Great plugin! But i need it moved to #Temp

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.

This plugin seems to be abandoned? If so, let's finally find it a new maintainer!

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.

Installed. What's next??

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!

not working with python script

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.

Add some best controls like

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

Possible to do basic math functions with user input?

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!

Multiple Commands

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

Feature Request: Popup while running

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.

Need to know proper syntax to point new Control Button to Gcode Script

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

Idea: canned recipe import/export support ?

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:

mbl_cust_controls
mbl_cust_controls.yaml.txt

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

Update deletes all buttons

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!

Python3

The Plugin is not yet Python3 ready - or the tag is missing

Buttons remain after plugin uninstalled, buttons cannot be deleted

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

Need help with command creation

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!

feature request : disable if printing

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 :)

UI usability improvement

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?

Breaks with 1.7.0 release candidates

Hi,

I've been using the plugin for months without problems, but after upgrading to 1.7.0rc1, it is broken.

  • Custom controls have disappeared
  • The configuration page is empty, just a green box, see screenshot.

Plugin version is 0.2.2.

customcontrol

Will not delete container and commands only one by one after saving, not multiple.

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.

Running command as root

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!

"Style" for buttons does not seem to work

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.

how to work output command

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.

Controls on the Terminal tab instead of the Control tab

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?

Will not delete commands

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.

cannot uninstall plugin

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.