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

Configurable timeout on snapshot? #421

Open
nlavalle opened this issue Dec 29, 2023 · 0 comments
Open

Configurable timeout on snapshot? #421

nlavalle opened this issue Dec 29, 2023 · 0 comments

Comments

@nlavalle
Copy link

https://github.com/fabianonline/OctoPrint-Telegram/blob/d8fa9ac4a65600a25deacad9bc0d3e9cc0167751/octoprint_telegram/__init__.py#L2571C57-L2571C57

Would it be possible to configure this to a longer window instead of a static 10sec? Ideally it'd be nice to pull the setting set in octoprint because I can set the stream/snapshot timeout there too.

For context I have set up an old hand-me-down gopro to act as my webcam, and with the picture size it takes a lot longer to process the snapshots (I had to add some custom python to have it trigger the gopro picture, copy the image, then delete it from the gopro so I don't blow up the storage which all adds to the time too). When I navigate to the snapshot URL locally I'm able to get it but it takes closer to 15sec, which makes me think it's hitting this 10sec timeout on the requests.get (is there a way to confirm that log somewhere I only see [ERR GET IMAGE] in telegram)

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