Set interval to 5 minutes
Fix erlpic.service file
Update timeout and sync interval
Take a picture and upload it to s3 with Erlang.
apt install erlang rebar3 make g++ libopencv-dev
rebar3 compile
rebar3 shell
config/sys.config.src
Set device to device number (default 0). Set resolution to {0, 0} to use defaults (default 1920 x 1080).
Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in .profile of the user.
Edit and copy erlpic.service to /etc/systemd/system/
As root user run these commands:
systemctl enable erlpic.service
systemctl start erlpic.service
systemctl status erlpic.service
To view running logs:
journalctl -u erlpic.service -f