-
Notifications
You must be signed in to change notification settings - Fork 124
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
Webui #76
base: master
Are you sure you want to change the base?
Webui #76
Conversation
Follow peterbay's docs: https://github.com/peterbay/uvc-gadget/blob/master/doc/src/video-controls.md Buildroot Adding project-specific patches: https://buildroot.org/downloads/manual/manual.html#customize-patches
We have live camera settings. WebUI (front-end and back-end): https://github.com/tuyenld/picam-web |
This is awesome! Thanks for all the effort! Let's try to merge your "expose more controls" first, and then my USB patch, and then let's try to merge this. One thing I kinda want to change is the way that piwebcam service is doing too many things now. If the piwebcam service sometimes becomes the webcam, sometimes becomes the webserver that's not a good thing. I think it's probably time to separate control functions out of piwebcam and rename it to uvc-gadget before it becomes the monster that no one understands what it does. At least I think the webui server should be its separate systemd unit. It can decide whether to startup depending the configuration. |
Great, looks good, but -
|
"expose more controls" commit: I still have no idea why some settings are missing on Linux (it works well on Windows). @peterbay There is a similar project: https://github.com/silvanmelchior/RPi_Cam_Web_Interface |
I'd be very vary to add too many features to showmewebcam. For example, if we manage to expose all settings to the host computer, any interface on the Pi itself would be an overload IMHO. In that case I'd probably create a native or web interface for the host computer instead of putting it onto the Pi. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I am working on the PR to separate the configuration of the Pi as USB gadget. So stay tuned...
window) | ||
# wismna hack for Window | ||
# IBM Corporation RNDIS Driver will be loaded | ||
echo 0x04b3 > idVendor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we can pretend to be someone else and take their USB id.
# "field_vid": "1203" | ||
# }, | ||
OS_CONFIG=$(echo $OS_CONFIG | tr '[A-Z]' '[a-z]') | ||
case $OS_CONFIG in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better way to do this is to have config file to see what usb gadget we want to configure, and the decision to ask what the pi wants to be is left to the user (we can suggest that if you use windows, then configure it as RNDIS, etc.)
How to test
/boot/picam_web.txt