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

No Camera running touch ui on a Raspberry pi. #31

Closed
Bigfellas opened this issue Feb 24, 2016 · 18 comments
Closed

No Camera running touch ui on a Raspberry pi. #31

Bigfellas opened this issue Feb 24, 2016 · 18 comments

Comments

@Bigfellas
Copy link

Hey Paul. I have moved up to a official pi 7" screen. Mind you this problem existed on the small screen as well. Anyway I am not getting camera feed in the ui. getting a little ? icon on the screen. So I assume something is missing.
Thanks
Matt

@BillyBlaze
Copy link
Owner

Hi Matt,

Does the webcam work in the normal interface? And if so, could you perhaps add the .octoprint log in a pastebin??

~Paul

@Bigfellas
Copy link
Author

yup working in the normal interface.
I think this is what you were after
http://pastebin.com/8A6DE4nH

@Bigfellas
Copy link
Author

Loads fine on a iPhone as well. So must be something missing with the Pi install.

@BillyBlaze
Copy link
Owner

Okay something weird is going on, I shortly had the same issue on my touchscreen but after saving the webcam settings with the touchscreen it resolved itself. (just open Settings > Webcam, press test and if you see in the preview the image feed, just save it and reboot the browser)

also it seems the feed stops working after a while (which is a kweb3 bug), if go to another page and you wait a few seconds and go back, then octoprint will reset the feed and it continues.

@Bigfellas
Copy link
Author

How do I press test I can't see anywhere to do that

@BillyBlaze
Copy link
Owner

Sorry I forgot I was on OctoPrint 1.3.0 (devel branch) where this test button is a new feature. Please take a look at the SnapStream plugin.

This plugin will fallback if mjpeg fails, and is exactly what you want.

After installing the plugin, save the SnapStream Settings with your config. Be sure you have unchecked Only use snapstream when mjpg-streamer fails. For some reason SnapStream doesn't work when MJPEG has failed in kweb3.

p.s. using SnapStream will lower your CPU usage, so I recommend using it with Touchscreens.

@Bigfellas
Copy link
Author

Unfortunately no go. I even switched to the Devel branch Still get a little ? even in the test screen.

@BillyBlaze
Copy link
Owner

Sorry I need more information; Did you install the SnapStream plugin? and what was the SnapStream settings you saved after installing it? Did you verify you have the correct settings?

(Verify settiigs: If you go to a desktop and open the browser with http://localhost:0000/cam.jpg, do you see a static image? (change the url to your settings)

Did you also try to uncheck Only use snapstream when mjpg-streamer fails?

There has to be something with your configuration since I am unable to reproduce the problem with SnapStream.

@Bigfellas
Copy link
Author

Sorry Paul blundering my way through this. the only setting other than "Only use snapstream when mjpg-streamer fails" and I have tried this both ways, and frame rate is the path. I have left this at default /webcam/?action=snapshot
Do I need to change this.

http://192.168.1.250:8080/cam.jpg
When I put this in I get 404: Not Found!
Could not open file

@BillyBlaze
Copy link
Owner

I think the valid URL should be http://192.168.1.250:8080/?action=snapshot for your setup.

If that works in the browser then replace /webcam/?action=snapshot with http://192.168.1.250:8080/?action=snapshot and save it.

@BillyBlaze
Copy link
Owner

any luck yet?

@Bigfellas
Copy link
Author

Sorry Paul. Been slammed at work no time for play. I'll have a crack tonight and get back to you

@BillyBlaze
Copy link
Owner

don't apologize :) I was just curious. Good luck!

@Bigfellas
Copy link
Author

I just put a post on google+ octoprint not sure if you saw it about touch ui not fitting on a pi 7" screen. Not sure if you can shed any light on this.

@BillyBlaze
Copy link
Owner

thanks for the head up!

@Bigfellas
Copy link
Author

Legend. That worked. Thanks again

@BillyBlaze
Copy link
Owner

Awesome!! Glad it works now. Your welcome!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants