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