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

Instructions for headless operation #2

Open
Enginerd27 opened this issue Mar 4, 2021 · 1 comment
Open

Instructions for headless operation #2

Enginerd27 opened this issue Mar 4, 2021 · 1 comment

Comments

@Enginerd27
Copy link

I followed this project with a rPi 3B+ and rPi camera module - everything worked great! When I set it up to run headless, it looks like the process starts, grabs one frame, then freezes. I'm not savvy enough to debug the main.py or camera.py files and understand/identify any issues.

@zjmulder
Copy link

zjmulder commented Mar 7, 2021

@Enginerd27 I had the same issue. I guessed main.py was being executed before all the necessary components were loaded by the OS. I followed #4 in this article and altered systemd and that seems to do the trick. My service file ended up looking something like:

[Unit]
Description=Remote Camera
After=multi-user.target

[Service]
Type=idle
ExecStart=/usr/bin/python3 /home/pi/pi-camera-stream-flask/main.py

[Install]
WantedBy=multi-user.target

Hope this helps!

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

No branches or pull requests

2 participants