From 24e288d14483d0a72a10e7ad4b298e718016bcfd Mon Sep 17 00:00:00 2001 From: jhummel Date: Sun, 30 Aug 2020 20:28:34 +0200 Subject: [PATCH] Added Shellscripts --- cam.sh | 4 ++++ cam1.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 cam.sh create mode 100755 cam1.sh diff --git a/cam.sh b/cam.sh new file mode 100755 index 0000000..3a5634d --- /dev/null +++ b/cam.sh @@ -0,0 +1,4 @@ +#!/bin/sh +gphoto2 --capture-image-and-download +sleep 2 +sudo -u pi php /var/www/html/nextcloud/occ files:scan – all diff --git a/cam1.sh b/cam1.sh new file mode 100755 index 0000000..19d0003 --- /dev/null +++ b/cam1.sh @@ -0,0 +1,5 @@ +#!/bin/sh +gphoto2 --capture-image-and-download -F 5 -I 5 +sleep 2 +sudo -u pi php /var/www/html/nextcloud/occ files:scan – all +