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

Webcam enabled by default #9

Closed
LXNDRGLN opened this issue Feb 19, 2021 · 10 comments
Closed

Webcam enabled by default #9

LXNDRGLN opened this issue Feb 19, 2021 · 10 comments
Labels
enhancement New feature or request

Comments

@LXNDRGLN
Copy link

Hi, could you please provide a version for the OrangePi Zero with the webcam enabled by default or just enable it for all?

Is there a significant reason, why its not enabled by default?

@ludiazv ludiazv added the enhancement New feature or request label Feb 21, 2021
@ludiazv
Copy link
Owner

ludiazv commented Feb 21, 2021

Hi @LXNDRGLN,
I do not plan to activate by default the cam service in the prebuild images as this is an optional service. Octoprint is functional without a cam.

The reason is simple: Why start a service that is not needed that is going to consume limited resources and interfere with the rest of the system if not needed? Also using a web cam typically require some tuning and test of the configuration of the camera. See for example #8. In addition, is quite easy to start the service using the helper script referred in the documentation. It takes 1 minute to active it.

The only reason I see to activate it is to use a standard image for several printers with custom configuration. In that case you can build your custom image enabling the service by default if you want with a minor modification on the build script. Let me know if you need any assistance here let me know.

Best

@LXNDRGLN
Copy link
Author

Hi @ludiazv

Thanks a lot, i can understand your point!

I already started editing the octopi.txt file through scripts/citrico-config but I am not shure which # have to be removed and its looking like I got problems starting the webcamd.service.

Kind Regards

@ludiazv
Copy link
Owner

ludiazv commented Feb 24, 2021

Check octoPi guide and to tune the camera config. here is goog post: https://iotrant.com/2020/02/25/properly-configuring-a-camera-in-octoprint/

Then to be sure enable the webcamd.service and reboot.

@LXNDRGLN
Copy link
Author

LXNDRGLN commented Mar 5, 2021

Tanks a lot for your help, but I am struggeling with the installation as well as mentioned in #11 but on my OrangePi Zero the service is not starting and my changes in the octopi.txt are not saved after closing the windows with klicking on the < OK > button.

@ludiazv
Copy link
Owner

ludiazv commented Mar 5, 2021

Can you edit the file /boot/octopi.txt with nano -> sudo nano /boot/octopi.txt. Does it save the changes?

@LXNDRGLN
Copy link
Author

LXNDRGLN commented Mar 6, 2021

if I am doing that the changes are saved yes but when I want to start the service with your scirpt it the bracets stay empty

@ludiazv
Copy link
Owner

ludiazv commented Mar 6, 2021

If the helper script doesn't work well you can enable it in the command line.

$ sudo systemctl enable webcamd.service
(to enable the automatic start on sys init)
$ sudo systemctl start webcamd.service
(to start the service)

@madorax251
Copy link

what camera is compatible with the orange pi one? I used versions:
Armbian: 21.05.1
I have tried the Genius Eye 110 usb web cam but it doesn't work

@madorax251
Copy link

which is connected to the printer via otg because previously I tried to use the usb port when the printer is turned off the screen stays on

@LXNDRGLN
Copy link
Author

I am not longer using my OrangePi Zeros, so I am closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants