• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

PIR bien Détecté par le script mais ne fonctionne pas avec MMM-PIR

Scheduled Pinned Locked Moved Troubleshooting
17 Posts 2 Posters 972 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mastrapi
    last edited by sdetweil Mar 10, 2025, 1:43 PM Mar 10, 2025, 9:03 AM

    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.
    Ludo

    moderator 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 1 Reply Last reply Mar 10, 2025, 1:43 PM Reply Quote 0
    • S sdetweil moved this topic from Forum on Mar 10, 2025, 1:42 PM
    • S Away
      sdetweil @Mastrapi
      last edited by Mar 10, 2025, 1:43 PM

      @Mastrapi what is Thonny

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 2 Replies Last reply Mar 10, 2025, 2:16 PM Reply Quote 0
      • M Offline
        Mastrapi @sdetweil
        last edited by Mar 10, 2025, 2:16 PM

        @sdetweil thonny.png

        1 Reply Last reply Reply Quote 1
        • M Offline
          Mastrapi @sdetweil
          last edited by Mar 10, 2025, 2:19 PM

          @sdetweil Thonny est un logiciel libre et gratuit permettant l’écriture et l’exécution de programmes écrits en Python

          S 1 Reply Last reply Mar 10, 2025, 2:26 PM Reply Quote 0
          • S Away
            sdetweil @Mastrapi
            last edited by Mar 10, 2025, 2:26 PM

            @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 ?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Mar 10, 2025, 2:35 PM Reply Quote 0
            • M Offline
              Mastrapi @sdetweil
              last edited by Mar 10, 2025, 2:35 PM

              @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.

              S 1 Reply Last reply Mar 10, 2025, 2:38 PM Reply Quote 0
              • S Away
                sdetweil @Mastrapi
                last edited by Mar 10, 2025, 2:38 PM

                @Mastrapi le script s’exécute-t-il depuis la ligne de commande sans thonny ? python3 scriptname ?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 2 Replies Last reply Mar 10, 2025, 2:50 PM Reply Quote 0
                • M Offline
                  Mastrapi @sdetweil
                  last edited by Mar 10, 2025, 2:50 PM

                  @sdetweil J’essaie ce soir et vous tiens au courant, encore merci

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Mastrapi @sdetweil
                    last edited by Mar 10, 2025, 5:11 PM

                    @sdetweil le script s’exécute bien avec Geany, son nom est : test_pir.py pir.jpg

                    S 1 Reply Last reply Mar 10, 2025, 5:24 PM Reply Quote 0
                    • S Away
                      sdetweil @Mastrapi
                      last edited by sdetweil Mar 10, 2025, 5:26 PM Mar 10, 2025, 5:24 PM

                      @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 mouvement

                      case "Motion":
                      

                      ou

                      case "noMotion":
                      

                      well, it depends on which MMM-PIR you are using

                      git remote -v

                      in the module folder will tell

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 3 Replies Last reply Mar 10, 2025, 6:52 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/17
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy