Octopi does not recognize stream-URL anymore

Hey,

Actually, since you're using a different board for your webcam, activating the webcamd service on the board that hosts OctoPi isn't going to get you anywhere, as the webcam isn't physically connected to this board.

It seems more likely that there's an issue with the MotionEye OS board. Have you tried to connect to it ? Looking quickly at the documentation of this distribution indicates that there's a web interface you can reach, and which should show you what the streams URLs are, which you could then copy over to OctoPrint's settings.

Hope this helps, but in the case of a MotionEye OS problem, you would find more help on their support channels, which you can find here.

Thank you for the quick reply!

I can connect to the MotionEye board directly any time with no problem (I set the port in MotionEye to 8081). Just not in Octopi.

The thing is, this setup was working fine for a long time.
I am not really sure, but I think the problem occured after updating OctoPi.

Is 8081 the port for the MotionEye web interface ?

Yes, it is the streaming port.

Is it the streaming port, or the port on which the MotionEye Web UI can be reached ?

It is the streaming port.

And so, what are the streaming URLs and Snapshot URLs, and are they the same in your OctoPrint instace ?

Well, I think Snapshot and Embed URLs do not apply.

For the Streaming URL:

The result in OctoPi is this:
image

This is the actual URL given by MotionEye when you click on the link in the page you screenshot ?

It definitely is.
When I click on this link, it opens a new browser tab and shows the cam stream.

Ok, definitely strange. Can you check the browser's console see if there are any errors when you load the controls tab, it might help determine the source of the problem.

Actually, can you also include the systeminfo bundle not only the text file but the whole bundle (zip file) ?

octoprint-systeminfo-20211001155218.zip (33.4 KB)
Systeminfo is attached.

I did not quite get you: "...when you load the control tab,"
What control tab do you mean?

When you try to see the webcam stream from OctoPrint, you click on the controls tab inside OctoPrint's UI.

OK, this is the page source code.

octopi.zip (79.0 KB)

Uhm, got it wrong, sorry.

This is the error message from the console:

image

Seems like a CORS problem with MotionEye, so I'm afraid I won't be able to help on that one. Perhaps someone more experienced will be able to help.

Thank you anyhow SwHawk, at least I'm one step further.

Do you get the same error if you access your OctoPi server using either octopi.local, or using the IP address?

Translating to plain english here, the browser sees that the webpage you've loaded from http://octopi is trying to access a local, private device with the IP address, http://192...... Relatively recently, there was an update to major browsers to block external, public websites from accessing your local, private, network devices, for security reasons which kinda makes sense, but is equally annoying. So it considers that http://octopi is not 'private' so it can't access other private devices.

If you access OctoPi using the IP address, the browser should notice that they are both private and allow the connection to happen. Let me know if that works, if not we may have to come up with a different solution that might involve a proxy somewhere...

1 Like

That is brilliant!
It works when I use the IP address for OctoPi.

Thank you very much!

2 Likes