OctoPrint-Telegram icon indicating copy to clipboard operation
OctoPrint-Telegram copied to clipboard

Configurable timeout on snapshot?

Open nlavalle opened this issue 1 year ago • 0 comments

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)

nlavalle avatar Dec 29 '23 19:12 nlavalle