MarkSlat / OctoPrint-Hologram

A simple OctoPrint plugin to display a render based on the preloaded G-code.
GNU Affero General Public License v3.0
7 stars 1 forks source link

Problem with Rendering and getting a snapshot #5

Closed BasicSeal closed 3 months ago

BasicSeal commented 3 months ago

I have installed the plugin, and put in the dimentions. but i get the same errors. I also installed a newer version of numby. I am on a windows 11 mashine Screenshot 2024-05-23 172149

MarkSlat commented 3 months ago

That looks to be an issue snapshot URL/camera access. Have you set a custom URL for your camera stream or are you using the one provided with the classic camera plugin?

BasicSeal commented 3 months ago

So i need to set a stream URL for the webcam, i have not currently set one. Is a webcam required fopr this plugin?

MarkSlat commented 3 months ago

I think if there is one currently set up it should be able to access it. If you go into the classic web camera plugin and test the stream and snapshot function. There should be a URL in there as well.

MarkSlat commented 3 months ago

Oh sorry, yes a camera is required for this plugin. It's designed use the webcam to take a snapshot and then overlay the render on top of it.

BasicSeal commented 3 months ago

If i connect a camera to octoprint, the snapshot url and the stream works, but i still get the same error message

MarkSlat commented 3 months ago

Ok thats strange would you be able to provide the plugins log and the snapshot's url?

BasicSeal commented 3 months ago

I am using : "http://192.168.178.136:8888/" as the snapshot url I hope this is the right log, but thanks for your help so far plugin_pluginmanager_console.log

MarkSlat commented 3 months ago

Sorry I am only getting back to you now I was away for the last few days. Is this a custom implementation for the camera stream and does the URL provide an actually image back. For example I have set up "http://localhost:5001/webcam/?action=snapshot" for a snapshot and http://localhost:5001/webcam for streaming.

BasicSeal commented 3 months ago

this is the stream and snapshot url from a porgramm called Yamcam and it does provide feedback, but just doenst work for the plugin

MarkSlat commented 3 months ago

I am not sure how the plugin handles external applications, are other plugins able to retrieve a snapshot?

BasicSeal commented 3 months ago

i dont have any plugins that use snaphots beside that one

BasicSeal commented 3 months ago

right now, it suddenly worked with an external image as a snaphot url, Thank you

MarkSlat commented 3 months ago

Oh nice, you happy for me to mark this as resolved?