15-03-2019
This commit is contained in:
59
docs/Raspberry/siri_control.md
Normal file
59
docs/Raspberry/siri_control.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# 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:
|
||||
|
||||
```bash
|
||||
$ 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')
|
||||
|
||||
```bash
|
||||
$ chmod +x siricontrol.py
|
||||
```
|
||||
|
||||
#### Créer un module:
|
||||
|
||||
```bash
|
||||
$ 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**
|
||||
|
||||
Reference in New Issue
Block a user