Skip to content
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

[Feature] Add an optional command before and after image capture #6

Open
ddmmcz opened this issue Jan 3, 2023 · 1 comment
Open

Comments

@ddmmcz
Copy link

ddmmcz commented Jan 3, 2023

Hello. Thank you for a great plugin.

I have one idea for improvement. I often print in lower light conditions or at night and nothing is visible in the image. I have lighting on my printer which I control via gpio pins with commands from Octoprint. So I was thinking that a few seconds (optional) before taking the photo, the plugin would send the optional command "gpio write 1 1" (turn on lighting) take the photo and then send the optional command "gpio write 1 0" (turn off lighting). Is it possible to add this in the future?

Thank you for the reply.

@bbernhard
Copy link
Owner

I think that shouldn't be too miuch work. But instead of implementing just your usecase, I would prefer a more generic solution. So I thought about adding pre-/post bash script hooks which execute custom, user written bash scripts before/after a message is sent. Would that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants