15-03-2019

This commit is contained in:
2019-03-15 20:20:37 +01:00
parent 53d2ce1c0d
commit 941984f1ee
52 changed files with 6416 additions and 70 deletions

View 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**