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

take_webcam_snapshot() should accept a string as parameter #71

Open
bchanudet opened this issue May 9, 2024 · 1 comment
Open

take_webcam_snapshot() should accept a string as parameter #71

bchanudet opened this issue May 9, 2024 · 1 comment

Comments

@bchanudet
Copy link

Hello there,

I'm the author of the OctoRant plugin, a plugin that sends messages from OctoPrint to Discord using Webhooks.

A user has reported a bug where OctoRant is not sending any message when used in combination with MultiCam.

After investigation the crash happens when my plugin calls take_webcam_snapshot(). According to the docs, I call take_webcam_snapshot() with a string containing the webcam's name, but your plugin seems to expect a complete Webcam object, according to __init__.py:159.

Looking further it seems that even OctoPrint's own timelapse plugin is sending a full Webcam object, yet at some other places it sends only the name. Maybe I'll raise an issue on their side too.

@bchanudet
Copy link
Author

Given the doubts raised by reading OctoPrint source code about the usage of take_webcam_snapshot(), I've asked about it on the Discord server, I'll report back here when I have an answer.

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

1 participant