-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Triggering automations from external source e.g. python script #420
Comments
Sounds good, short answer for the moment: GRBL-Plotter already checks the clipboard for changes, implemented for the extensions: https://grbl-plotter.de/index.php?id=form-extenions&setlang=en |
Check the folder data\extensions for examples: To trgigger GRBL-Plotter to read the clipboard - set this registry flag: |
So finally I think, to realise your idea, just one point is missing: triggering the process automation by change of the shown registry-key.
Will try to implement this I already made a similar automation with a website, but without polling a status,
|
Thanks for acknowledging this so quickly. Just to double check the expected behavior: With an empty clipboard, the fishdraw automation you shared opens up the website then immediately proceeds to the paste clipboard step where it stops. A rerun with the copied svg is then loaded on the second iteration. The reg_key approach actually gets me very close to what I need if also change the Start reg key to trigger streaming. Together with the right custom settings .ini (disabling the "show dialog on import" prompt) I think this will complete the workflow. I suppose that waiting for the reg key change in the automation would allow some additional control and features, but the above approach I think should suffice for my use case. As soon as I have a chance, I will test out the full workflow and report back. |
Describe the solution you'd like
I think using a simple button to the probe pin is brilliant, but for my workflow I would like to trigger an automation from my computer but external to GRBL-Plotter.
Alternatively, allow GRBL-Plotter to wait for the clipboard to be populated i.e., not fail if it's empty.
Describe alternatives you've considered
I'm a novice at coding. My first thought was that GRBL-Plotter could wait for the clipboard (very cool feature, btw) to be populated with a text but it seems to fail if the clipboard is empty.
So far I've explored ways to interface with GRBL-Plotter or grbl. I've been able to use a python script to trigger the grbl probe pin, but of course that requires sharing port access which doesn't work. I thought maybe one of the custom buttons could be used to trigger an automation (then activated by hotkey) but that also doesn't work. I investigated the extensions and scripts and I don't think either of those help me.
Additional context
The short story of my (art) project is: I will be generating graphics or texts programmatically in response to an input. This is largely done in python. I want the final result of this program to trigger my plotter to generate the graphic/text, but completely automated without intervention, except for the initial upstream input by the user to my python program. I'd be happy to share the whole project if/when I complete this :)
If there is no internal solution to this, the only other thing I can think of is a hardware hack where I connect another controller/arduino/switch to emulate the button. But that's not ideal.
The text was updated successfully, but these errors were encountered: