Creation repo sue RPi3
This commit is contained in:
18
SiriControl/modules/photo.py
Normal file
18
SiriControl/modules/photo.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#You can import any required modules here
|
||||
|
||||
#This can be anything you want
|
||||
moduleName = "photo"
|
||||
|
||||
#All of the words must be heard in order for this module to be executed
|
||||
commandWords = ["prendre","photo"]
|
||||
|
||||
def execute(command):
|
||||
#Write anything you want to be executed when the commandWords are heard
|
||||
#The 'command' parameter is the command you speak
|
||||
#scrot
|
||||
import subprocess
|
||||
subprocess.call("scrot")
|
||||
#subprocess.call("/home/pi/Documents/SiriControl/modules/snapshot.sh")
|
||||
# scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
|
||||
# "/home/pi/Pictures/scrot.png"
|
||||
return
|
||||
Reference in New Issue
Block a user