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.

    MMM-Google Assistant & MMM-MMM-Assistant2Display

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 2 Posters 3.5k 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.
    • R Offline
      RIKKO14
      last edited by

      Merci, je regarde cela et vous tient au courant,
      Encore merci beaucoup pour votre aide !

      1 Reply Last reply Reply Quote 0
      • R Offline
        RIKKO14
        last edited by

        SUPER !!
        ça fonctionne, Merci !
        la petite routine est super intéressante pour régler son PIR car c’est tellement pointilleux…
        comment arrivez vous a calculer le temps de 300 ms / 400 ms ?
        En aparté, j 'ai eu une nouvelle demande de maj ce jour de MMM-GoogleAssistant et MMM-Assistant2Display sur l’écran de mon MM. Cela doit faire 3 mise à jour en 3 jours, normal ?

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          comment arrivez vous a calculer le temps de 300 ms / 400 ms ?

          ce programme est une librairie, il est donc utilisé dans A2D,
          les meme résulat sont ressorti (les valeurs lue) dans les logs de MagicMiror en temps réél.
          pm2 log ou avec npm start on a l’indicateur de temps :)

          En aparté, j 'ai eu une nouvelle demande de maj ce jour de MMM-GoogleAssistant et MMM-Assistant2Display sur l’écran de mon MM. Cela doit faire 3 mise à jour en 3 jours, normal ?

          • oui j’avoue, un peu a fiasco !
          • j’explique ;)
            • comme vous avez remarquer A2D et GA fonctionne avec beaucoup de librairie que j’ai créé (dont PIR celle que vous avez utilisé)
            • j’ai créé une nouvelle librarie qui permet de voir verifier l’ensemble de mes librairies installé pour verifier si il y a une mise a jour ou pas
          • pourquoi ?
            • car le updatenotification (le module par default de MM) ne gere pas ce genre de chose mais uniquement le code maître pas les librairies

            • comme vous savez je ne code pas sur un RPI (c’est trop lent) mais sur mon PC personnel sous linux

            • ce nouveau code a fonctionner parfaitement sur mon pc (super rapide ahahah !)

            • mise a jour #1 j’ai donc pousser (mis en ligne en version accesible a tous) TOUS les nouveau codes sans tester sur mon propre mirroir (je ne suis dit c’est bon ça marche)

            • J’ai mis a jour mon Mirroir et boom … mon code prenais telement de ressourece CPU que MM stoppe le processus ! et coupais tout (meme MM) donc pm2 redémarre le programme et forme une boucle …
              photo_2020-08-25_22-34-31.jpg
              -> uniquement pour GA … les valeurs sont +/- doublé car utiliser avec A2D aussi ! (un vrai fiasco)

            • mise a jour #2 J’ai donc desactiver la ligne du coup foireux…

            • j’ai recoder une nouvelle version fonctionnelle et tester reelement sur RPI !

            • mise a jour #3 mis en ligne de cette version qui fonctionne parfaitement cette fois [et oui personne est parfait lol] :)

          j’expliquerai sur le topic officiel le fonctionnement de cette nouvelle librairie et d’un nouveau module (pas eu le temps hier)

          1 Reply Last reply Reply Quote 0
          • R Offline
            RIKKO14
            last edited by

            Ha, OK. Merci pour les infos !
            en tout cas bravo pour votre implication pour ces modules et votre aide !!

            1 Reply Last reply Reply Quote 0
            • R Offline
              RIKKO14
              last edited by

              est ce que mon temps de réponse c’est 100ms ?

              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=failed to kill - retrying in 100ms
              

              mon log :

              code_pi@raspberrypi:~ $ pm2 logs
              [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
              /home/pi/.pm2/pm2.log last 15 lines:
              PM2        | 2020-08-27T09:51:06: PM2 log: App [mm:0] online
              PM2        | 2020-08-27T09:53:37: PM2 log: Stopping app:mm id:0
              PM2        | 2020-08-27T09:53:37: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
              PM2        | 2020-08-27T09:53:37: PM2 log: pid=3786 msg=process killed
              PM2        | 2020-08-27T09:53:37: PM2 log: App [mm:0] starting in -fork mode-
              PM2        | 2020-08-27T09:53:37: PM2 log: App [mm:0] online
              PM2        | 2020-08-27T14:47:36: PM2 log: Stopping app:mm id:0
              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=failed to kill - retrying in 100ms
              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=failed to kill - retrying in 100ms
              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=failed to kill - retrying in 100ms
              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=failed to kill - retrying in 100ms
              PM2        | 2020-08-27T14:47:37: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
              PM2        | 2020-08-27T14:47:37: PM2 log: pid=4024 msg=process killed
              PM2        | 2020-08-27T14:47:37: PM2 log: App [mm:0] starting in -fork mode-
              PM2        | 2020-08-27T14:47:37: PM2 log: App [mm:0] online
              
              /home/pi/.pm2/logs/mm-error.log last 15 lines:
              0|mm       |     at DialServer.start (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_modules/@bugsounet/cast/index.js:90:23)
              0|mm       |     at Class.addons (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:5119)
              0|mm       |     at Class.initialize (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:3606)
              0|mm       |     at MD5.cb (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:847)
              0|mm       |     at MD5.start (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_modules/@bugsounet/md5/index.js:1:1669) {
              0|mm       |   code: 'EADDRINUSE',
              0|mm       |   errno: 'EADDRINUSE',
              0|mm       |   syscall: 'listen',
              0|mm       |   address: '::',
              0|mm       |   port: 8569
              0|mm       | }
              0|mm       | [2020-08-27 10:51:27.158] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              0|mm       | [2020-08-27 10:51:27.159] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              0|mm       | [2020-08-27 14:47:51.808] [ERROR]  (node:17411) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
              0|mm       | [2020-08-27 14:47:51.810] [ERROR]  (node:17411) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
              
              /home/pi/.pm2/logs/mm-out.log last 15 lines:
              0|mm       | [2020-08-27 14:47:55.085] [LOG]    [SNOWBOY] Model selected: jarvis
              0|mm       | [2020-08-27 14:47:55.092] [LOG]    [SNOWBOY] snowboy v1.6.0 Initialized...
              0|mm       | [2020-08-27 14:47:55.092] [LOG]    [@bugsounet] *************************
              0|mm       | [2020-08-27 14:47:55.093] [LOG]    [@bugsounet] Special note to @ktoanlba89 (https://github.com/ktoanlba89)
              0|mm       | [2020-08-27 14:47:55.094] [LOG]    [@bugsounet] Copying does not pay!
              0|mm       | [2020-08-27 14:47:55.095] [LOG]    [@bugsounet] Try to make your own before delete my username !
              0|mm       | [2020-08-27 14:47:55.095] [LOG]    [@bugsounet] Don't play with me guy !
              0|mm       | [2020-08-27 14:47:55.096] [LOG]    [@bugsounet] *************************
              0|mm       | [2020-08-27 14:47:55.107] [LOG]    [ASSISTANT] RECIPE_LOADED: with-MMM-TelegramBot.js
              0|mm       | [2020-08-27 14:47:55.109] [LOG]    [ASSISTANT] Assistant2Display Server Started
              0|mm       | [2020-08-27 14:47:55.122] [LOG]    [ASSISTANT] Use native program (mpg321) for audio response
              0|mm       | [2020-08-27 14:47:55.124] [LOG]    [SOUND] mpg321 Initialized
              0|mm       | [2020-08-27 14:47:55.130] [LOG]    [NPM] Initialized v0.9.5
              0|mm       | [2020-08-27 14:47:55.416] [LOG]    [ASSISTANT] Google Assistant is initialized.
              0|mm       | [2020-08-27 14:47:56.325] [INFO]   Calendar-Fetcher: Broadcasting 213 events.
              
              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by A Former User

                non aucun rapport :)

                1. Activez le debug mode dans A2D
                2. pm2 restart 0 -> va redemarrer MagicMirror
                3. pm2 log -> va vous donner les logs en temps reel
                4. vous devriez avoir les meme log que vous avez eu pour le reglage, c’est tagger [PIR]
                5. a vous de calculer selon les dates donnés de value 1 et de value 0 (faire la difference)
                1 Reply Last reply Reply Quote 0
                • R Offline
                  RIKKO14
                  last edited by

                  Je viens de faire les commandes et j’ai ça :

                  pi@raspberrypi:~/MagicMirror/modules/MMM-WiFiPassword $ pm2 logs
                  [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
                  /home/pi/.pm2/pm2.log last 15 lines:
                  PM2        | 2020-09-01T19:51:58: PM2 log: ===============================================================================
                  PM2        | 2020-09-01T19:51:58: PM2 log: App [mm:0] starting in -fork mode-
                  PM2        | 2020-09-01T19:51:58: PM2 log: App [mm:0] online
                  PM2        | 2020-09-01T19:57:19: PM2 log: Stopping app:mm id:0
                  PM2        | 2020-09-01T19:57:19: PM2 log: pid=566 msg=failed to kill - retrying in 100ms
                  PM2        | 2020-09-01T19:57:19: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                  PM2        | 2020-09-01T19:57:19: PM2 log: pid=566 msg=process killed
                  PM2        | 2020-09-01T19:57:19: PM2 log: App [mm:0] starting in -fork mode-
                  PM2        | 2020-09-01T19:57:19: PM2 log: App [mm:0] online
                  PM2        | 2020-09-01T20:04:02: PM2 log: Stopping app:mm id:0
                  PM2        | 2020-09-01T20:04:03: PM2 log: pid=5525 msg=failed to kill - retrying in 100ms
                  PM2        | 2020-09-01T20:04:03: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                  PM2        | 2020-09-01T20:04:03: PM2 log: pid=5525 msg=process killed
                  PM2        | 2020-09-01T20:04:03: PM2 log: App [mm:0] starting in -fork mode-
                  PM2        | 2020-09-01T20:04:03: PM2 log: App [mm:0] online
                  
                  /home/pi/.pm2/logs/mm-error.log last 15 lines:
                  0|mm       |     at DialServer.start (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_modules/@bugsounet/cast/index.js:90:23)
                  0|mm       |     at Class.addons (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:5119)
                  0|mm       |     at Class.initialize (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:3606)
                  0|mm       |     at MD5.cb (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_helper.js:1:847)
                  0|mm       |     at MD5.start (/home/pi/MagicMirror/modules/MMM-Assistant2Display/node_modules/@bugsounet/md5/index.js:1:1669) {
                  0|mm       |   code: 'EADDRINUSE',
                  0|mm       |   errno: 'EADDRINUSE',
                  0|mm       |   syscall: 'listen',
                  0|mm       |   address: '::',
                  0|mm       |   port: 8569
                  0|mm       | }
                  0|mm       | [2020-09-01 20:03:16.390] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                  0|mm       | [2020-09-01 20:03:16.391] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                  0|mm       | [2020-09-01 20:04:14.644] [ERROR]  (node:14624) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|mm       | [2020-09-01 20:04:14.648] [ERROR]  (node:14624) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  
                  /home/pi/.pm2/logs/mm-out.log last 15 lines:
                  0|mm       | [2020-09-01 20:04:19.396] [LOG]    [NPM] Initialized v0.9.5
                  0|mm       | [2020-09-01 20:04:19.659] [LOG]    [ASSISTANT] Google Assistant is initialized.
                  0|mm       | [2020-09-01 20:04:20.411] [LOG]    [SCREEN] Display -- Actual: true - Wanted: true
                  0|mm       | [2020-09-01 20:04:21.013] [LOG]    [NPM] Details [
                  0|mm       |   { name: '@bugsounet/npmcheck', installed: '0.9.5', latest: '0.9.5' },
                  0|mm       |   { name: '@bugsounet/cast', installed: '1.0.0', latest: '1.0.0' },
                  0|mm       |   { name: '@bugsounet/governor', installed: '1.0.3', latest: '1.0.3' },
                  0|mm       |   { name: '@bugsounet/internet', installed: '1.0.0', latest: '1.0.0' },
                  0|mm       |   { name: '@bugsounet/md5', installed: '1.2.2', latest: '1.2.2' },
                  0|mm       |   { name: '@bugsounet/pir', installed: '1.0.4', latest: '1.0.4' },
                  0|mm       |   { name: '@bugsounet/screen', installed: '1.0.3', latest: '1.0.3' },
                  0|mm       |   { name: '@bugsounet/spotify', installed: '1.0.2', latest: '1.0.2' }
                  0|mm       | ]
                  0|mm       | [2020-09-01 20:04:21.019] [LOG]    [NPM] Check... MMM-Assistant2Display
                  0|mm       | [2020-09-01 20:04:21.021] [LOG]    [NPM] No update needed for MMM-Assistant2Display
                  
                  0|mm  | [2020-09-01 20:04:54.401] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:04:54.402] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:04:54.404] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:04:57.217] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:05:10.254] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:05:10.255] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:05:10.256] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:05:13.138] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:05:43.509] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:05:43.510] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:05:43.511] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:05:46.659] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:05:53.620] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:05:53.620] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:05:53.621] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:05:56.432] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:06:05.186] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:06:05.187] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:06:05.188] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:06:08.004] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:06:13.621] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:06:13.625] [LOG]    
                  0|mm  | [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:06:13.627] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:06:16.438] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:06:22.798] [LOG]    
                  0|mm  | [INTERNET] Ping: 14 ms
                  0|mm  | [2020-09-01 20:06:24.435] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:06:24.439] [LOG]    
                  0|mm  | [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:06:24.444] [LOG]    
                  0|mm  | [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:06:27.251] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:06:32.163] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:06:32.164] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:06:32.165] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:06:34.985] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  0|mm  | [2020-09-01 20:06:39.836] [LOG]    
                  0|mm  | [PIR] Sensor read value: 1
                  0|mm  | [2020-09-01 20:06:39.836] [LOG]    [PIR] Detected presence (value:1)
                  0|mm  | [2020-09-01 20:06:39.837] [LOG]    [SCREEN] Restart.
                  0|mm  | [2020-09-01 20:06:42.715] [LOG]    
                  0|mm  | [PIR] Sensor read value: 0
                  
                  

                  ce qui voudrait dire ?

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by A Former User

                    [2020-09-01 20:06:39.836] [LOG] [PIR] Sensor read value: 1
                    [2020-09-01 20:06:42.715] [LOG] [PIR] Sensor read value: 0

                    42 - 39 --> 3 secs

                    [AAAA-MM-JJ HH:MM:SS.ms]

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RIKKO14
                      last edited by

                      Super , merci .
                      ça me convient comme ça sinon je vais tout dérégler…Merci !

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        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