Unsolved Ext-Pir impossible de le faire fonctionner
-
Oui, effectivement les logs du terminal peuvent aider
Pouvez-vous couper MM² et depuis un terminal taper les commandes suivante:
cd ~/MagicMirror npm start
et bien sur me coller le resultat ;):
-
Un grand merci pour votre aide et pour tout le travail que vous avez effectué.
Voici le résultat :
magicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[24.04.2023 19:15.12.678] [LOG] Starting MagicMirror: v2.23.0
[24.04.2023 19:15.12.715] [LOG] Loading config …
[24.04.2023 19:15.12.731] [DEBUG] config template file not exists, no envsubst
[24.04.2023 19:15.12.767] [LOG] Loading module helpers …
[24.04.2023 19:15.12.772] [LOG] No helper found for module: alert.
[24.04.2023 19:15.12.818] [LOG] Initializing new module helper …
[24.04.2023 19:15.12.819] [LOG] Module helper loaded: updatenotification
[24.04.2023 19:15.12.823] [LOG] No helper found for module: clock.
[24.04.2023 19:15.13.691] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.693] [LOG] Module helper loaded: calendar
[24.04.2023 19:15.13.724] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.726] [LOG] Module helper loaded: Gateway
[24.04.2023 19:15.13.767] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.769] [LOG] Module helper loaded: MMM-GoogleAssistant
[24.04.2023 19:15.13.861] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.862] [LOG] Module helper loaded: EXT-Screen
[24.04.2023 19:15.13.926] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.927] [LOG] Module helper loaded: EXT-Pir
[24.04.2023 19:15.13.959] [LOG] Initializing new module helper …
[24.04.2023 19:15.13.959] [LOG] Module helper loaded: EXT-Detector
[24.04.2023 19:15.13.961] [WARN] No /home/magic/MagicMirror/js/…/modules/EXT-Alert’/EXT-Alert’.js found for module: EXT-Alert’.
[24.04.2023 19:15.13.964] [LOG] No helper found for module: EXT-Alert’.
[24.04.2023 19:15.14.064] [LOG] Initializing new module helper …
[24.04.2023 19:15.14.065] [LOG] Module helper loaded: MMM-DHT-Sensor
[24.04.2023 19:15.14.068] [LOG] No helper found for module: MMM-WeatherOrNot.
[24.04.2023 19:15.14.090] [LOG] No helper found for module: MMM-YouTube-API.
[24.04.2023 19:15.14.106] [LOG] No helper found for module: MMM-Globe.
[24.04.2023 19:15.14.197] [LOG] Initializing new module helper …
[24.04.2023 19:15.14.199] [LOG] Module helper loaded: newsfeed
[24.04.2023 19:15.14.199] [LOG] All module helpers loaded.
[24.04.2023 19:15.14.239] [LOG] Starting server on port 8080 …
[24.04.2023 19:15.15.455] [LOG] Server started …
[24.04.2023 19:15.15.457] [LOG] Connecting socket for: updatenotification
[24.04.2023 19:15.15.458] [LOG] Starting module helper: updatenotification
[24.04.2023 19:15.15.459] [LOG] Connecting socket for: calendar
[24.04.2023 19:15.15.460] [LOG] Starting node helper for: calendar
[24.04.2023 19:15.15.462] [LOG] Connecting socket for: Gateway
[24.04.2023 19:15.15.464] [LOG] Connecting socket for: MMM-GoogleAssistant
[24.04.2023 19:15.15.466] [LOG] Connecting socket for: EXT-Screen
[24.04.2023 19:15.15.468] [LOG] Connecting socket for: EXT-Pir
[24.04.2023 19:15.15.470] [LOG] Connecting socket for: EXT-Detector
[24.04.2023 19:15.15.472] [LOG] Connecting socket for: MMM-DHT-Sensor
[24.04.2023 19:15.15.473] [LOG] Starting module helper: MMM-DHT-Sensor
[24.04.2023 19:15.15.474] [LOG] Connecting socket for: newsfeed
[24.04.2023 19:15.15.475] [LOG] Starting node helper for: newsfeed
[24.04.2023 19:15.15.477] [LOG] Sockets connected & modules started …
[24.04.2023 19:15.15.949] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[1892:0424/191519.445391:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1858:0424/191522.015660:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1858:0424/191523.119150:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1858:0424/191524.297379:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
[24.04.2023 19:15.28.631] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/gencayhome%40gmail.com/private-a8d6aeefb088cde461ddb02e618ba2ad/basic.ics - Interval: 300000
[24.04.2023 19:15.28.769] [LOG] Create new newsfetcher for url: https://www.francetvinfo.fr/titres.rss - Interval: 300000
[24.04.2023 19:15.28.838] [LOG] Create new newsfetcher for url: https://www.journaldunet.com/rss - Interval: 300000
[24.04.2023 19:15.28.843] [LOG] Create new newsfetcher for url: http://feeds.feedburner.com/Kulturegeek - Interval: 300000
[24.04.2023 19:15.28.852] [LOG] Create new newsfetcher for url: https://www.esa.int/rssfeed/France - Interval: 300000
[24.04.2023 19:15.30.908] [LOG] Shutting down server…
[24.04.2023 19:15.30.909] [LOG] Stopping module helper: updatenotification
[24.04.2023 19:15.30.910] [LOG] Stopping module helper: calendar
[24.04.2023 19:15.30.911] [LOG] Stopping module helper: Gateway
[24.04.2023 19:15.30.911] [LOG] Stopping module helper: MMM-GoogleAssistant
[24.04.2023 19:15.30.912] [LOG] Stopping module helper: EXT-Screen
[24.04.2023 19:15.30.912] [LOG] Stopping module helper: EXT-Pir
[24.04.2023 19:15.30.913] [LOG] Stopping module helper: EXT-Detector
[24.04.2023 19:15.30.913] [LOG] Stopping module helper: MMM-DHT-Sensor
[24.04.2023 19:15.30.914] [LOG] Stopping module helper: newsfeed
[24.04.2023 19:15.30.915] [LOG] Node_helpers stopped … -
- Ext-Alert is not installed correctly
- I don’t see
MMM-GoogleAssistant
started, soGateway
can’t Start and any EXTs too
you must see something like this in log:
[GA] MMM-GoogleAssistant Version: 5.1.4 rev: 230407
-
desolé… j’ai ecris tellement en anglais … que je ne fait plus attention mdr !
pouvez-vous desactiver tous les modules sauf:
clock
,MMM-GoogleAssistant
,Gateway
et les EXTs ?et me recoller le résultat
-
voici le nouveau resultat :
magicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[24.04.2023 20:49.52.451] [LOG] Starting MagicMirror: v2.23.0
[24.04.2023 20:49.52.469] [LOG] Loading config …
[24.04.2023 20:49.52.485] [DEBUG] config template file not exists, no envsubst
[24.04.2023 20:49.52.506] [LOG] Loading module helpers …
[24.04.2023 20:49.52.512] [LOG] No helper found for module: clock.
[24.04.2023 20:49.52.573] [LOG] Initializing new module helper …
[24.04.2023 20:49.52.575] [LOG] Module helper loaded: Gateway
[24.04.2023 20:49.52.608] [LOG] Initializing new module helper …
[24.04.2023 20:49.52.610] [LOG] Module helper loaded: MMM-GoogleAssistant
[24.04.2023 20:49.52.762] [LOG] Initializing new module helper …
[24.04.2023 20:49.52.764] [LOG] Module helper loaded: EXT-Screen
[24.04.2023 20:49.52.793] [LOG] Initializing new module helper …
[24.04.2023 20:49.52.795] [LOG] Module helper loaded: EXT-Pir
[24.04.2023 20:49.52.852] [LOG] Initializing new module helper …
[24.04.2023 20:49.52.853] [LOG] Module helper loaded: EXT-Detector
[24.04.2023 20:49.52.855] [WARN] No /home/magic/MagicMirror/js/…/modules/EXT-Alert’/EXT-Alert’.js found for module: EXT-Alert’.
[24.04.2023 20:49.52.858] [LOG] No helper found for module: EXT-Alert’.
[24.04.2023 20:49.52.859] [LOG] All module helpers loaded.
[24.04.2023 20:49.52.895] [LOG] Starting server on port 8080 …
[24.04.2023 20:49.53.406] [LOG] Server started …
[24.04.2023 20:49.53.409] [LOG] Connecting socket for: Gateway
[24.04.2023 20:49.53.412] [LOG] Connecting socket for: MMM-GoogleAssistant
[24.04.2023 20:49.53.414] [LOG] Connecting socket for: EXT-Screen
[24.04.2023 20:49.53.416] [LOG] Connecting socket for: EXT-Pir
[24.04.2023 20:49.53.418] [LOG] Connecting socket for: EXT-Detector
[24.04.2023 20:49.53.420] [LOG] Sockets connected & modules started …
[24.04.2023 20:49.53.473] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[1865:0424/204954.496221:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1830:0424/204955.772085:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1830:0424/204957.009106:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
…/…/buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[1830:0424/204958.000828:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
[1872:0424/204958.742877:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[24.04.2023 20:50.00.617] [LOG] [GATEWAY] Gateway Version: 3.2.0 rev: 230415
[24.04.2023 20:50.00.653] [LOG] [GA] MMM-GoogleAssistant Version: 5.1.4 rev: 230407
[24.04.2023 20:50.06.449] [LOG] [GA] [LIB] All libraries loaded!
[24.04.2023 20:50.06.451] [LOG] [GA] [CONFIG_MERGE] Read config.js and check ConfigDeepMerge…
[24.04.2023 20:50.06.453] [LOG] [GA] [CONFIG_MERGE] Perfect ConfigDeepMerge activated!
[24.04.2023 20:50.06.454] [LOG] [GA] [SECURE] Check digital footprint…
[24.04.2023 20:50.06.518] [LOG] [GA] [DATA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[24.04.2023 20:50.06.525] [LOG] [GA] [DATA] Google Assistant is initialized.
[24.04.2023 20:50.16.904] [LOG] [GATEWAY] [LIB] All libraries loaded!
[24.04.2023 20:50.16.912] [LOG] [GATEWAY] no CLIENT_ID found in your config!
[24.04.2023 20:50.16.913] [WARN] [GATEWAY] SmartHome functionality is disabled
[24.04.2023 20:50.17.978] [LOG] [GATEWAY] [HyperWatch] Logger is enabled
[24.04.2023 20:50.17.981] [LOG] [GATEWAY] Start listening on port 8081
[24.04.2023 20:50.17.982] [LOG] [GATEWAY] Available locally at http://192.168.1.19:8081
[24.04.2023 20:50.17.983] [LOG] [GATEWAY] Gateway Ready!
[24.04.2023 20:50.18.013] [LOG] [GA] [SECURE] Happy use !
[24.04.2023 20:50.18.092] [LOG] [SCREEN] EXT-Screen Version: 1.3.1 rev: 230407
[24.04.2023 20:50.18.095] [LOG] [SCREEN] Mode 1: vcgencmd
[24.04.2023 20:50.18.142] [LOG] [PIR] EXT-Pir Version: 1.1.0 rev: 230325
[24.04.2023 20:50.18.263] [LOG] [PIR] [LIB] All libraries loaded!
[24.04.2023 20:50.18.277] [LOG] [DETECTOR] EXT-Detector Version: 2.1.1 rev: 230417
[24.04.2023 20:50.19.135] [LOG] [DETECTOR] [LIB] All libraries loaded!
[24.04.2023 20:50.19.137] [LOG] [DETECTOR] [DATA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[24.04.2023 20:50.19.147] [LOG] [DETECTOR] [DATA] Snowboy is initialized with 1 Models: jarvis
[24.04.2023 20:50.19.149] [LOG] [DETECTOR] [DATA] Initialized
[24.04.2023 20:50.20.406] [LOG] [DETECTOR] [RULES] Start listening. 1 Models
[24.04.2023 20:50.36.335] [LOG] Shutting down server…
[24.04.2023 20:50.36.337] [LOG] Stopping module helper: Gateway
[24.04.2023 20:50.36.338] [LOG] Stopping module helper: MMM-GoogleAssistant
[24.04.2023 20:50.36.338] [LOG] Stopping module helper: EXT-Screen
[24.04.2023 20:50.36.339] [LOG] Stopping module helper: EXT-Pir
[24.04.2023 20:50.36.339] [LOG] Stopping module helper: EXT-Detector
[24.04.2023 20:50.36.340] [LOG] Node_helpers stopped …
[24.04.2023 20:50.36.405] [LOG] [SCREEN] ByeBye !
[24.04.2023 20:50.36.406] [LOG] [SCREEN] @bugsounet -
Et donc, avec uniquement ceci d’activé, cela fonctionne ?
-
Non malheureusement le problème reste le meme.
Si je lance dans un terminal les cmd qui permettent de tester le capteur (je n’ai pas les lignes cmd sous les yeux), je vois bien une impulsion à chaque mouvement, mon capteur semble bien fonctionner.
EXT-pir a peut être été écrit pour un capteur spécifique ?
Car je n’utilise pas un hc-sr501 mais un sr505 … -
je ne fait que lire si le GPIO est “up” ou “down” c’est a dire alimenté ou pas
Cela ne devrai pas posé de prbetes-vous sur du branchement sur le GPIO 21 ? (broche en bas a doite ?)
coté capteur la broche GPIO 21 est bien relier au milieu ? -
un truc de ce style mais la broche orange (celle du milieu) est branché sur le GPIO21
Voir ici
-
oui le brochage est bon, j’ai testé d’autres ports GPIO et même résultat.
idem avec un autre capteur 505.
J’ai lu sur un forum concernant des modules autres que les vôtres que certains avaient eux ce problème, j’ai cru comprendre que c’était un problème de sensibilité du capteur… Comme vous me confirmez que la prog ne semble pas être en cause alors je vais commander un 501 réglable histoire de voir.
https://www.ebay.fr/itm/133479781867Je vous dis ce qu’il en est une fois reçu.
Merci !
-
sur mon MagicMirror de prod j’utilise un HC-SR501
J’avais acheter ceci en 2019. Il est toujours branché et fonctionnel -
Bonjour, je reviens avec plus d’infos !
j’ai reçu mon 501 et le problème est le même quelque soit la sensibilité. ce n’est donc pas un problème de capteur.
J’ai eu la bonne idée de décommenter EXT-Pir et EXT-Screen puis d’installer MMM-PIR-Sensor-Lite… Ca fonctionne a merveille, l’écran s’éteint et se rallume bien quand il détecte une présence. Le problème est donc software.
J’ai désinstallé puis réinstallé EXT-pir et EXT-screen, maintenant le capteur fonctionne une fois, c’est a dire qu’il détecte ma présence une première fois et donc rallume l’écran, puis terminé
Je pourrais me contenter de MMM-pir-sensor-lite mais du coup jarvis ne réveille plus l’écran.J’ai besoin de ton expertise please !!!
-
Au final j’ai l’impression que EXT-Screen et EXT-pir ne communiquent pas bien entre eux