Files
mkdocs/docs/Raspberry/siri_control.md
2019-03-15 20:20:37 +01:00

1.1 KiB

SiriControl

https://github.com/theraspberryguy/SiriControl-System https://medium.com/@thesanjeetc/want-to-control-something-with-siri-heres-how-bae98aceb586

Configurer un compte gmail

  • IMAP
  • Votre compte Google -> Sécurité -> Accès moins sécurisé des applications
  • Ajouter le compte gmail à Notes (iOS)

Installer SiriControl:

$ git clone https://github.com/theraspberryguy/SiriControl-System.git

Ouvrir siricontrol.py et renseigner les username et password du compte gmail.

Rendre le script exécutable (sinon 'compte IMAP inexistant')

$ chmod +x siricontrol.py

Créer un module:

$ nano photo.py

# 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
	return


Utilisation:

Dis Siris

Oui

Note Prendre une photo