Read the statement by Michael Teeuw here.
PIR bien Détecté par le script mais ne fonctionne pas avec MMM-PIR
-
Bonjour
Tout d’abord, un grand bravo à tous pour vos réalisations et vos compétences informatique.
Je suis en grand débutant et je bloque sur l’installation d’un détecteur de mouvement.
J’ai installé un PIR (MMM-PIR) sur mon miroir, celui-ci est bien détecté par le script Python sur Thonny.
Le compte à rebours s’écoule mais rien ne se passe ?
Auriez vous une solution, merci de votre aide.
Ludomoderator added english
First of all, a big congratulations to all for your achievements and your computer skills. I am a complete beginner and I am stuck on the installation of a motion detector. I installed a PIR (MMM-PIR) on my mirror, it is well detected by the Python script on Thonny. The countdown is running but nothing happens? Do you have a solution, thank you for your help.
Ludo -
S sdetweil moved this topic from Forum on
-
@Mastrapi what is Thonny
-
-
@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) -
@sdetweil Du coup j’ai installé MMM-PIR-Sensor-Lite, le script Phyton détecte les mouvements, le compte à rebours défile mais l’écran ne s’éteint pas, j’ai dû rater quelque chose, mais quoi ?
-
displayOn: function() { Log.log(`[MMM-SimplePIR] making sure the display is physically on...`) GPIO.set_gpio(this.config.displayOnPin, true) setTimeout(() => { GPIO.set_gpio(this.config.displayOnPin, false) }, 100); this.displayPower = true; this.sendSocketNotification('display', this.displayPower); },l’extinction de l’écran dépend de nombreux facteurs différents
- Version du système d’exploitation
- Gestionnaire d’affichage utilisé (X11, Wayland, LabWC)
- Accès aux commandes fourni par le module
Ce module semble tenter de contrôler un relais
Essayez plutôt celui-ci
-
@sdetweil Bonjour Sam, merci, mais comment le télécharger et l’installer ?
-
@Mastrapi L’installation et la configuration de tous les modules sont identiques.
Veuillez lire le premier lien dans ma signature ci-dessous.
Veuillez utiliser la traduction de votre navigateur pour traduire la page en français.
-
@sdetweil Sam MERCI votre solution a fonctionné, c’est la plus simple, merci beaucoup
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
