Read the statement by Michael Teeuw here.
PIR bien Détecté par le script mais ne fonctionne pas avec MMM-PIR
-
-
@sdetweil Thonny est un logiciel libre et gratuit permettant l’écriture et l’exécution de programmes écrits en Python
-
@Mastrapi cool, mais est-ce que c’est l’environnement dans lequel le script python s’exécutera sous MagicMirror ? Est-ce qu’il utilise un environnement virtuel ? Si oui, le définissez-vous avant de démarrer MagicMirror ?
-
@sdetweil Merci d’avoir pris le temps de me répondre
J’exécute te script sur Thonny à la racine du Pi 3b
Est-ce un environnent virtuel ? je ne sais pas, je suis débutant en informatique, désolé de ne pas pouvoir répondre. -
@Mastrapi le script s’exécute-t-il depuis la ligne de commande sans thonny ? python3 scriptname ?
-
@sdetweil J’essaie ce soir et vous tiens au courant, encore merci
-
@sdetweil le script s’exécute bien avec Geany, son nom est : test_pir.py
-
@Mastrapi
sympa, mais vous exécutez un .sh, et le script est .py le module lance .py
et attend un certain texte pour indiquer le mouvementcase "Motion":
ou
case "noMotion":
well, it depends on which MMM-PIR you are using
git remote -v
in the module folder will tell
-
MMLudo@raspberrypi:~/MagicMirror/modules/MMM-PIR $ git remote -v
origin https://github.com/mboskamp/MMM-PIR.git (fetch)
origin https://github.com/mboskamp/MMM-PIR.git (push) -
@sdetweil J’ai installé MMM-Pir, toujours rien ne se passe
git remote -v
origin https://github.com/Coernel82/MMM-Pir (fetch)
origin https://github.com/Coernel82/MMM-Pir (push)