prusa3d / Prusa-Firmware-ESP32-Cam

Firmware for ESP32 Cam modules to be used in Prusa Connect
GNU General Public License v3.0
97 stars 10 forks source link

Live view and Snapshot URL #17

Closed cyberjak2k closed 1 month ago

cyberjak2k commented 1 month ago

Just more of a question I am not running prusa connect on my i3 MK3S+ but I am using octoprint on a Pi Zero 2w plugged into the Einsy board. I was wondering , Does this offer a live view stream url, as i think i've figured out a way for it to poll the snapshot image and it causes a refresh of the image by the request but just figured i'd ask

johnyHV commented 1 month ago

You can obtain the image in two ways.

The first method is to manually request the capture by calling http://ip/action_capture and then downloading it from http://ip/saved-photo.jpg.

The second option is to open the current stream from http://ip/stream.mjpg. Unfortunately, the stream is currently unreliable, and the camera may freeze during its use. I have already created a fix for this issue. I need to test the fix more thoroughly before publishing it.

cyberjak2k commented 1 month ago

Awesome as eventually I'll try put the Prusa connect just with different SD card hahah I was using a multi steam one previously that seems to work well. I wish I knew how to code better

On Fri, 10 May 2024, 22:56 Miroslav Pivovarsky, @.***> wrote:

You can obtain the image in two ways.

The first method is to manually request the capture by calling http://ip/action_capture and then downloading it from http://ip/saved-photo.jpg.

The second option is to open the current stream from http://ip/stream.mjpg. Unfortunately, the stream is currently unreliable, and the camera may freeze during its use. I have already created a fix for this issue. I need to test the fix more thoroughly before publishing it.

— Reply to this email directly, view it on GitHub https://github.com/prusa3d/Prusa-Firmware-ESP32-Cam/issues/17#issuecomment-2105317283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBRFDX7QCKOWLVMUPHMVMTZBU7CXAVCNFSM6AAAAABHRBCDRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGMYTOMRYGM . You are receiving this because you authored the thread.Message ID: @.***>

johnyHV commented 1 month ago

@cyberjak2k I recently added a new release 1.0.2-rc1. In this version, the problem with the stream is fixed. You can test it at http://IP/stream.mjpg

cyberjak2k commented 1 month ago

Thanks, I'll check it out! Awesome!

On Mon, 13 May 2024, 21:24 Miroslav Pivovarsky, @.***> wrote:

@cyberjak2k https://github.com/cyberjak2k I recently added a new release 1.0.2-rc1. In this version, the problem with the stream is fixed. You can test it at http://IP/stream.mjpg

— Reply to this email directly, view it on GitHub https://github.com/prusa3d/Prusa-Firmware-ESP32-Cam/issues/17#issuecomment-2108736791, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBRFDSFYCHX6DI6WZID3LTZCEOQDAVCNFSM6AAAAABHRBCDRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYG4ZTMNZZGE . You are receiving this because you were mentioned.Message ID: @.***>

cyberjak2k commented 1 month ago

Ok, just used the OTA update instead of downloading and recompiling. And it's holding ROCK Solid! Hoping that at some point the ability to just point it at a URL and every time that you URL is refreshed it takes a fresh snapshot instead of having to do a manual refresher snapshot and then download said snapshot. But this is a massive jump and it works great Thank you

BugsBunny1403 commented 1 month ago

Hello, can you add the link for stream in config page of esp32 cam ?