Execute Bash file to Take a Picture by USB Webcam
Posted: Sunday 20 August 2017 11:17
First off thanks for taking your time to click here.
i have a problem to run my bash file with switch on/off
my bash file is "takePic.sh"
its take a picture from USB webcame and sotre it by test.jpg name.
its run & correctly work with this command in console "sh takePic.sh" and take a picture 'test.jpg'
but when in want to run it in domoticz by a Switch , "On Action" = (script:///home/pi/domoticz/scripts/takePic.sh) it doesn't take picture or returned any error.
please help me
i have a problem to run my bash file with switch on/off
my bash file is "takePic.sh"
its take a picture from USB webcame and sotre it by test.jpg name.
Code: Select all
#!/bin/bash
uvccapture -S60 -c50 -G40 -B40 -x1280 -y720 -d/dev/video0 -v -otest.jpg
but when in want to run it in domoticz by a Switch , "On Action" = (script:///home/pi/domoticz/scripts/takePic.sh) it doesn't take picture or returned any error.
please help me