I figured it out, it was along the lines of what you were saying. I setup the application as a service, there is a "WorkingDirectory" assignment that I was missing. Once specified, it's working as it should.
[Unit]
Description=Time lapse camera application
[Service]...
Yeah, I reproduced the issue with a smaller application that's easier for others to follow. I posted that code about an hour ago, it's still awaiting moderator approval.
More info as mentioned...
My crontab:
@reboot python3 /var/www/camera/main.py > /var/log/cron/crontab.log 2>&1
My python script:
import time
from camera import *
import cv2
count = 0
while True:
# Open camera
Camera01.GiGe.Open()
# Turn on Light
Camera01.Light.fill((255...
Hi all,
I'm not really sure where this question should go. I'm not even sure if it's a Linux issue or a Python issue.
I've written a Raspberry Pi application (Ubuntu Mate) that's essentially a timed camera. Every 30 seconds, it snaps an image and writes it to disk.
When I start the...