Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] Motion

Pour échanger sur les plugins classés en catégorie "Sécurité"
benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 19 sept. 2018, 17:53

@mika tu es sûr que la partie telegram fonctionne correctement (notification).

Curieusement depuis la mise à jour, je ne reçois plus rien du tout.

Même au redémarrage du démon, généralement, il génère une première détection, je la vois... mais je ne reçois rien.
Ce qui me dérange encore plus c'est c'est que je ne vois aucune activité dans les logs de motion.

Et en fouillant, je découvre dans les logs ... j'ai volontairement fait une copie d'écran car j'ai coupé sur les trucs perso.

Image

EDIT : je viens de passer le log en debug, je ne sais pas pourquoi il était repassé en normal. Mais je ne reçois pas de telegram.
Avant que tu poses la question, telegram marche correctement sinon sur mes autres utilisations (courrier, messages tous les jours), donc ce n'est pas un problème de telegram.

EDIT 2 : je ne comprends pas. Bien qu'en ayant le log en debug, je relance le démon. J'ai un log sur motion plugin :

Code : Tout sélectionner

[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/camera923.conf
[0:motion] [ALR] [ALL] conf_cmdparse: "max_movie_time" replaced with "movie_max_time" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "output_pictures" replaced with "picture_output" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "output_debug_pictures" replaced with "picture_output_motion" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "quality" replaced with "picture_quality" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_output_movies" replaced with "movie_output" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_output_debug_movies" replaced with "movie_output_motion" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_bps" replaced with "movie_bps" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_video_codec" replaced with "movie_codec" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "rtsp_uses_tcp" replaced with "netcam_use_tcp" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "switchfilter" replaced with "roundrobin_switchfilter" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_variable_bitrate" replaced with "movie_quality" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_duplicate_frames" replaced with "movie_duplicate_frames" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ipv6_enabled" replaced with "webcontrol_ipv6" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "confconso"
[0:motion] [NTC] [ALL] motion_startup: Logging to file (/etc/motion/motion.log)
J'ai aussi un log sur l'activité de motion ... et quelques secondes après il disparait !

(d'ailleurs je me demande si motion.log dans la copie d'écran plus haut c'est pas ça...).

Image

Avatar de l’utilisateur
mika-nt28
Actif
Messages : 7995
Inscription : 05 août 2014, 08:58
Localisation : Dreux - France

Re: [Plugin Tiers][Sujet Principal] Motion

Message par mika-nt28 » 20 sept. 2018, 08:25

C'est possible que la derniere mise a jours n'envoie pas de notification vue que c'est l'objet du changement
Peux tu poster tes log
Pour faciliter la compréhension de votre problème, n’oubliez pas de poster
- Des Screenshots de votre configuration
- Le Log au moment du problème constaté

Encouragez-moi https://www.paypal.me/mikant28

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 20 sept. 2018, 21:28

Quand je redémarre le démon,

le log de motion plugin :

Code : Tout sélectionner

[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/camera923.conf
[0:motion] [ALR] [ALL] conf_cmdparse: "max_movie_time" replaced with "movie_max_time" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "output_pictures" replaced with "picture_output" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "output_debug_pictures" replaced with "picture_output_motion" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "quality" replaced with "picture_quality" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_output_movies" replaced with "movie_output" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_output_debug_movies" replaced with "movie_output_motion" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_bps" replaced with "movie_bps" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_video_codec" replaced with "movie_codec" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "rtsp_uses_tcp" replaced with "netcam_use_tcp" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "switchfilter" replaced with "roundrobin_switchfilter" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_variable_bitrate" replaced with "movie_quality" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ffmpeg_duplicate_frames" replaced with "movie_duplicate_frames" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: "ipv6_enabled" replaced with "webcontrol_ipv6" after version 4.1.1
[0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "confconso"
[0:motion] [NTC] [ALL] motion_startup: Logging to file (/etc/motion/motion.log)
Puis le log d'activité de motion :

Code : Tout sélectionner

[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_startup: Motion 4.1.1+gitaf75ad5 Started
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] become_daemon: Motion going to daemon mode
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_startup: Motion running as daemon process
[0:motion] [NTC] [STR] [Sep 20 21:25:01] webu_start_strm: Starting camera 923 stream on port 1935
[0:motion] [NTC] [STR] [Sep 20 21:25:01] webu_start_ctrl: Starting webcontrol on port 8081
[0:motion] [NTC] [ENC] [Sep 20 21:25:01] ffmpeg_global_init: ffmpeg libavcodec version 56.1.0 libavformat version 56.1.0
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] translate_init: Language: English
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_start_thread: Camera ID: 923 is from /etc/motion/camera923.conf
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_start_thread: Camera ID: 923 Camera Name: Motion Portail Service: rtsp:
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] motion_start_thread: Stream port 1935
[0:motion] [NTC] [ALL] [Sep 20 21:25:01] main: Waiting for threads to finish, pid: 13016
[1:ml1:Motion Port] [NTC] [ALL] [Sep 20 21:25:01] motion_init: Camera 923 started: motion detection Enabled
[1:ml1:Motion Port] [NTC] [VID] [Sep 20 21:25:01] vid_start: Opening Netcam RTSP
[1:ml1:Motion Port] [NTC] [NET] [Sep 20 21:25:06] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [NTC] [ALL] [Sep 20 21:25:06] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc2:Motion Port] [NTC] [NET] [Sep 20 21:25:06] netcam_rtsp_handler: Normal resolution: Camera handler thread [2] started
[2:nc2:Motion Port] [NTC] [NET] [Sep 20 21:25:11] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [NTC] [ALL] [Sep 20 21:25:12] image_ring_resize: Resizing pre_capture buffer to 2 items
Puis ce log disparaît ! plus rien dans la fenêtre...

Image

A noter dans le http.error :

Code : Tout sélectionner

....
[Thu Sep 20 21:06:07.570048 2018] [:error] [pid 18909] [client 192.168.2.23:53799] PHP Fatal error:  Uncaught exception 'Exception' with message 'Echec de la requ\xc3\xaate HTTP : https://api.telegram.org/botX:blabla/sendDocument cURL error : ' in /var/www/html/core/com/http.com.php:121
Stack trace:
#0 /var/www/html/plugins/telegram/core/class/telegram.class.php(129): com_http->exec(30)
#1 /var/www/html/plugins/telegram/core/class/telegram.class.php(267): telegramCmd->sendTelegram('https://api.tel...', 'file', Array, Array)
#2 /var/www/html/plugins/motion/core/class/motion.class.php(553): telegramCmd->execute(Array)
#3 /var/www/html/plugins/motion/core/class/motion.class.php(561): motion->SendLastSnap('116-20180920210...')
#4 /var/www/html/plugins/motion/core/php/detect.php(5): motion->UpdateDetection(Array)
#5 {main}
thrown in /var/www/html/core/com/http.com.php on line 121
[Thu Sep 20 21:21:49.552576 2018] [:error] [pid 17694] [client 192.168.2.23:54611] PHP Fatal error:  Uncaught exception 'Exception' with message 'Echec de la requ\xc3\xaate HTTP : https://api.telegram.org/botX:blabla/sendDocument cURL error : ' in /var/www/html/core/com/http.com.php:121
Stack trace:
#0 /var/www/html/plugins/telegram/core/class/telegram.class.php(129): com_http->exec(30)
#1 /var/www/html/plugins/telegram/core/class/telegram.class.php(267): telegramCmd->sendTelegram('https://api.tel...', 'file', Array, Array)
#2 /var/www/html/plugins/motion/core/class/motion.class.php(553): telegramCmd->execute(Array)
#3 /var/www/html/plugins/motion/core/class/motion.class.php(561): motion->SendLastSnap('117-20180920212...')
#4 /var/www/html/plugins/motion/core/php/detect.php(5): motion->UpdateDetection(Array)
#5 {main}
thrown in /var/www/html/core/com/http.com.php on line 121
[Thu Sep 20 21:24:36.482397 2018] [:error] [pid 3772] [client 192.168.2.23:54725] PHP Fatal error:  Uncaught exception 'Exception' with message 'Echec de la requ\xc3\xaate HTTP : https://api.telegram.org/botX:blabla/sendDocument cURL error : ' in /var/www/html/core/com/http.com.php:121
Stack trace:
#0 /var/www/html/plugins/telegram/core/class/telegram.class.php(129): com_http->exec(30)
#1 /var/www/html/plugins/telegram/core/class/telegram.class.php(267): telegramCmd->sendTelegram('https://api.tel...', 'file', Array, Array)
#2 /var/www/html/plugins/motion/core/class/motion.class.php(553): telegramCmd->execute(Array)
#3 /var/www/html/plugins/motion/core/class/motion.class.php(561): motion->SendLastSnap('118-20180920212...')
#4 /var/www/html/plugins/motion/core/php/detect.php(5): motion->UpdateDetection(Array)
#5 {main}
thrown in /var/www/html/core/com/http.com.php on line 121
rm: cannot remove '/etc/motion/motion.log': No such file or directory
rm: cannot remove '/etc/motion/*': No such file or directory
rm: cannot remove '/etc/motion/*': No such file or directory
rm: cannot remove '/etc/motion/motion.log': No such file or directory


Avatar de l’utilisateur
trankilnet
Timide
Messages : 177
Inscription : 12 déc. 2017, 16:44

Re: [Plugin Tiers][Sujet Principal] Motion

Message par trankilnet » 21 sept. 2018, 11:25

trankilnet a écrit :
13 sept. 2018, 11:39

En effet j'avais la prise de snapshot qui était modifiée.
Par contre pour la capture vidéo?
D'ailleurs il y a un décalage avec les curseurs dans l'onglet "Paramètre de détection" et je n’arrive pas à savoir lequel règle quoi.
@mika-nt28 des nouvelles sur ces points?
Raspberry Pi3 + Clé USB Z-Wave Z-STICK GEN5 - AEON LABS + Amazon Echo
Fibaro FGBS-001 + DS18B20 + Fibaro FGS-213 (Chauffe-Eau)
Fibaro Roller Shutter 2 (Volets Roulants)
SECURE SRT323 - Thermostat mural Z‑Wave (Chauffage au Sol)
Ps3 Eye + Motion

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 21 sept. 2018, 15:38

Suis revenu à la stable, je n'arrive à rien régler de probant sur la bêta sans recevoir de notification ou autre.
Ce serait bien de pouvoir corriger l'envoi via telegram sur la beta.
C'est vraiment dommage de pas avoir une zone plus réglable. Dans mon cas vent et ombre c'est la cata.
j'essaie de régler finement seuil, bruit et nombre de cadre, mais sans notification sur la durée c'est mission impossible.
Quand ce point sera corrigé, je reviens dessus en beta.

Envoyé de mon Moto G (5S) Plus en utilisant Tapatalk

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 23 sept. 2018, 17:04

Bon, j'explore une autre piste, celle de faire mon masque en pgm.

j'ai fait un masque sur deux zones : en laissant en blanc les zones que je veux détecter et en noire celles que je ne veux pas détecter.

https://www.youtube.com/watch?v=bsGGtP2WQDo

Image

Je suis repassé à la béta, car j'ai besoin de voir le flux.

Sauf qu'après avoir mis mon pgm en ascii (export via gimp) visiblement le format pose problème...

Code : Tout sélectionner

[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_startup: Motion 4.1.1+gitb8aa381 Started
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] become_daemon: Motion going to daemon mode
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_startup: Motion running as daemon process
[0:motion] [NTC] [STR] [Sep 23 16:49:21] webu_start_strm: Starting camera 947 stream on port 1935
[0:motion] [NTC] [STR] [Sep 23 16:49:21] webu_start_ctrl: Starting webcontrol on port 8081
[0:motion] [NTC] [ENC] [Sep 23 16:49:21] ffmpeg_global_init: ffmpeg libavcodec version 56.1.0 libavformat version 56.1.0
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] translate_init: Language: English
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_start_thread: Camera ID: 947 is from /etc/motion/camera947.conf
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_start_thread: Camera ID: 947 Camera Name: Motion Portail Service: rtsp:
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] motion_start_thread: Stream port 1935
[0:motion] [NTC] [ALL] [Sep 23 16:49:21] main: Waiting for threads to finish, pid: 6253
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 16:49:21] motion_init: Camera 947 started: motion detection Enabled
[1:ml1:Motion Port] [NTC] [VID] [Sep 23 16:49:21] vid_start: Opening Netcam RTSP
[1:ml1:Motion Port] [NTC] [NET] [Sep 23 16:49:24] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 16:49:24] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc2:Motion Port] [NTC] [NET] [Sep 23 16:49:24] netcam_rtsp_handler: Normal resolution: Camera handler thread [2] started
[2:nc2:Motion Port] [NTC] [NET] [Sep 23 16:49:27] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 16:49:28] get_pgm: This is not a pgm file, starts with 'P2
': Operation now in progress
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 16:49:28] motion_init: Failed to read mask image. Mask feature disabled.
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 16:49:28] get_pgm: This is not a pgm file, starts with 'P2
': Operation now in progress
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 16:49:28] init_mask_privacy: Failed to read mask privacy image. Mask privacy feature disabled.
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 16:49:28] image_ring_resize: Resizing pre_capture buffer to 3 items
[1:ml1:Motion Port] [NTC] [ENC] [Sep 23 16:49:32] ffmpeg_set_codec: Low fps. Encoding 5 frames into a 10 frames container.
[1:ml1:Motion Port] [NTC] [EVT] [Sep 23 16:49:32] event_newfile: File of type 8 saved to: /var/www/html/tmp/motion/947//01-20180923164931.avi
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 16:49:32] motion_detected: Motion detected - starting event 1
Seconde question, faut-il garder les carrés activés ou non sur la détection si on passe par un PGM ?

Je présume qu'il faut recopier le chemin du fichier uploadé dans le second carré ... (sinon ça prend pas j'ai vu).

Image

EDIT : j'ai bien fait attention d'être en format ASCII, d'avoir la même taille que la caméra en 1280x720, le fichier existe bien...

http://netpbm.sourceforge.net/doc/pgm.html

Image

encore et toujours :

Code : Tout sélectionner

[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_startup: Motion 4.1.1+gitb8aa381 Started
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] become_daemon: Motion going to daemon mode
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_startup: Motion running as daemon process
[0:motion] [NTC] [STR] [Sep 23 17:16:06] webu_start_strm: Starting camera 947 stream on port 1935
[0:motion] [NTC] [STR] [Sep 23 17:16:06] webu_start_ctrl: Starting webcontrol on port 8081
[0:motion] [NTC] [ENC] [Sep 23 17:16:06] ffmpeg_global_init: ffmpeg libavcodec version 56.1.0 libavformat version 56.1.0
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] translate_init: Language: English
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_start_thread: Camera ID: 947 is from /etc/motion/camera947.conf
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_start_thread: Camera ID: 947 Camera Name: Motion Portail Service: rtsp:
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] motion_start_thread: Stream port 1935
[0:motion] [NTC] [ALL] [Sep 23 17:16:06] main: Waiting for threads to finish, pid: 1559
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 17:16:06] motion_init: Camera 947 started: motion detection Enabled
[1:ml1:Motion Port] [NTC] [VID] [Sep 23 17:16:06] vid_start: Opening Netcam RTSP
[1:ml1:Motion Port] [NTC] [NET] [Sep 23 17:16:09] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 17:16:09] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc2:Motion Port] [NTC] [NET] [Sep 23 17:16:09] netcam_rtsp_handler: Normal resolution: Camera handler thread [2] started
[2:nc2:Motion Port] [NTC] [NET] [Sep 23 17:16:12] netcam_rtsp_connect: Normal resolution: Camera (Motion Portail) connected
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 17:16:13] get_pgm: This is not a pgm file, starts with 'P2
': Operation now in progress
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 17:16:13] motion_init: Failed to read mask image. Mask feature disabled.
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 17:16:13] get_pgm: This is not a pgm file, starts with 'P2
': Operation now in progress
[1:ml1:Motion Port] [ERR] [ALL] [Sep 23 17:16:13] init_mask_privacy: Failed to read mask privacy image. Mask privacy feature disabled.
[1:ml1:Motion Port] [NTC] [ALL] [Sep 23 17:16:13] image_ring_resize: Resizing pre_capture buffer to 3 items


Avatar de l’utilisateur
mika-nt28
Actif
Messages : 7995
Inscription : 05 août 2014, 08:58
Localisation : Dreux - France

Re: [Plugin Tiers][Sujet Principal] Motion

Message par mika-nt28 » 24 sept. 2018, 08:51

Perso je l'ai mise de coté également car je ne suis pas arriver a avoir quelque chose .
Il y a des personne qui l'utilise car j'avais mise a jours le plugin suite a leur remarque
Pour faciliter la compréhension de votre problème, n’oubliez pas de poster
- Des Screenshots de votre configuration
- Le Log au moment du problème constaté

Encouragez-moi https://www.paypal.me/mikant28

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 24 sept. 2018, 09:03

Y a pas moyen d'avoir un log plus verbeux pour savoir ce qui ne va pas ???
Aux personnes qui l'utilisent, vous pouvez expliquer comment vous avez fait votre filtre svp ?
Merci !

Avatar de l’utilisateur
mika-nt28
Actif
Messages : 7995
Inscription : 05 août 2014, 08:58
Localisation : Dreux - France

Re: [Plugin Tiers][Sujet Principal] Motion

Message par mika-nt28 » 24 sept. 2018, 09:27

Coté plugin non, on ne fait que paramètre motion et mettre a jours la commande de detection.
Coté motion ca doit etre possible je ne sais plus quel niveau de log je luis est donné
Pour faciliter la compréhension de votre problème, n’oubliez pas de poster
- Des Screenshots de votre configuration
- Le Log au moment du problème constaté

Encouragez-moi https://www.paypal.me/mikant28

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 29 sept. 2018, 14:20

Bon, je jette l'éponge... j'ai passé plusieurs soirées, impossible de mettre en place un masque adapté pour mes caméras.

je vais aller voir du côté de shinobi.

Griffon13
Timide
Messages : 22
Inscription : 17 juil. 2017, 20:33
Localisation : Vers l'aéroport de Marseille-Provence

Re: [Plugin Tiers][Sujet Principal] Motion

Message par Griffon13 » 14 nov. 2018, 23:15

Bonsoir,

Je viens d'acheter le plugin Motion pour compléter mon installation (VM Jessie - Jeedom à jour). L'installation du plug-in semble OK mais par contre les dépendances ne s'installent pas.... bloquées à 0% et échec sur timeout. J'ai desinstallé, redémarré Jeedom, réinstallé...rien à faire les dépendances refusent de s'installer et impossible d'utiliser le bouton pour relancer car en cours. Ci-dessous les logs de l'installation des dépendances.
Une idée pour résoudre mon pb?

merci d'avance

*****************************************************************************************************
* Installation des dépendance *
*****************************************************************************************************
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
automake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
pkgconf is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libtool is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libjpeg62-turbo-dev
E: Package 'libjpeg8-dev' has no installation candidate
Reading package lists...
Building dependency tree...
Reading state information...
libjpeg62-turbo-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libzip2
The following NEW packages will be installed:
libzip-dev libzip2

Avatar de l’utilisateur
trankilnet
Timide
Messages : 177
Inscription : 12 déc. 2017, 16:44

Re: [Plugin Tiers][Sujet Principal] Motion

Message par trankilnet » 14 nov. 2018, 23:26

C'est extrêmement long. Donc la patience peut résoudre ton problème. :)
Raspberry Pi3 + Clé USB Z-Wave Z-STICK GEN5 - AEON LABS + Amazon Echo
Fibaro FGBS-001 + DS18B20 + Fibaro FGS-213 (Chauffe-Eau)
Fibaro Roller Shutter 2 (Volets Roulants)
SECURE SRT323 - Thermostat mural Z‑Wave (Chauffage au Sol)
Ps3 Eye + Motion

Griffon13
Timide
Messages : 22
Inscription : 17 juil. 2017, 20:33
Localisation : Vers l'aéroport de Marseille-Provence

Re: [Plugin Tiers][Sujet Principal] Motion

Message par Griffon13 » 17 nov. 2018, 18:23

plus de 4000 mn, (bon le timeout est à 130), et plusieurs essais....suffisamment patient, non ?
une idée ou la liste des commandes à exécuter manuellement pour installer les dépendances, svp ?
merci

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Motion

Message par benj29 » 17 nov. 2018, 19:43

Perso, j'ai fait le choix de mettre en place Motion via MotionEye bien plus fiable et rapide à régler.
Et on peut interfacer avec Jeedom via un wget pilotable depuis MotionEye et des zones de détection bien réglables.

Avatar de l’utilisateur
mika-nt28
Actif
Messages : 7995
Inscription : 05 août 2014, 08:58
Localisation : Dreux - France

Re: [Plugin Tiers][Sujet Principal] Motion

Message par mika-nt28 » 19 nov. 2018, 08:47

Griffon13 a écrit :
17 nov. 2018, 18:23
plus de 4000 mn, (bon le timeout est à 130), et plusieurs essais....suffisamment patient, non ?
une idée ou la liste des commandes à exécuter manuellement pour installer les dépendances, svp ?
merci
Effectivement c'est long ta machine n'est pas surchargé?
Pour faciliter la compréhension de votre problème, n’oubliez pas de poster
- Des Screenshots de votre configuration
- Le Log au moment du problème constaté

Encouragez-moi https://www.paypal.me/mikant28

Griffon13
Timide
Messages : 22
Inscription : 17 juil. 2017, 20:33
Localisation : Vers l'aéroport de Marseille-Provence

Re: [Plugin Tiers][Sujet Principal] Motion

Message par Griffon13 » 20 nov. 2018, 23:11

D'après le plugin Monitoring, non pas de surcharge. VM redémarrée ainsi que le host. toujours le meme probleme. Dans le fichier de log de Motion: sudo: motion: command not found

Avatar de l’utilisateur
mika-nt28
Actif
Messages : 7995
Inscription : 05 août 2014, 08:58
Localisation : Dreux - France

Re: [Plugin Tiers][Sujet Principal] Motion

Message par mika-nt28 » 21 nov. 2018, 08:24

Donc c'est que l'instalaltion c'est mal passe

Dans les log que tu as posté plus haut il n'y a pas grand chose
Peux tu relancé l'instalaltion ou me faire un acces a ton jeedom que je regarde ce qu'il bloque
Pour faciliter la compréhension de votre problème, n’oubliez pas de poster
- Des Screenshots de votre configuration
- Le Log au moment du problème constaté

Encouragez-moi https://www.paypal.me/mikant28

7ced7
Timide
Messages : 129
Inscription : 21 janv. 2018, 21:06

Re: [Plugin Tiers][Sujet Principal] Motion

Message par 7ced7 » 27 nov. 2018, 09:18

salut à tous... j'ai récupéré une vieille webcam dans le but de l'ajouter à Motion... c'est celle ci : https://www.cnet.com/products/genius-vi ... era/specs/
Je l'ai configurée comme dans la doc et je n'ai pas d'image... (sur aucune de mes cam qui fonctionnaient avant...) le demon est passé NOK.
Vous sauriez me dire ou j'ai manqué un truc?
Voici mon log :

Code : Tout sélectionner

[0:motion] [NTC] [ALL] [Nov 27 09:15:02] motion_startup: Motion 4.1.1+git20180209-39d4c77 Started
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] become_daemon: Motion going to daemon mode
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] motion_startup: Motion running as daemon process
[0:motion] [NTC] [ENC] [Nov 27 09:15:02] ffmpeg_global_init: ffmpeg libavcodec version 57.64.101 libavformat version 57.56.101
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 1 is from /etc/motion/camera23.conf
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 1 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 2 is from /etc/motion/camera29.conf
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 2 Camera Name: (null) Service: http:
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Stream port 8083
[0:motion] [ERR] [ALL] [Nov 27 09:15:02] start_motion_thread: Stream port number 8083 for thread 2 conflicts with thread 0
[0:motion] [WRN] [ALL] [Nov 27 09:15:02] start_motion_thread: Stream feature for thread 2 is disabled.
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 3 is from /etc/motion/camera90.conf
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Camera ID: 3 Camera Name: (null) Device: /dev/video1
[2:ml2] [NTC] [ALL] [Nov 27 09:15:02] motion_init: Camera 2 started: motion detection Enabled
[2:ml2] [NTC] [VID] [Nov 27 09:15:02] vid_start: Opening Netcam
[0:motion] [NTC] [ALL] [Nov 27 09:15:02] main: Waiting for threads to finish, pid: 31462
[2:ml2] [NTC] [NET] [Nov 27 09:15:02] netcam_start: Network Camera starting for camera ((null))
[1:ml1] [NTC] [ALL] [Nov 27 09:15:02] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_open: Using videodevice /dev/video0 and input -1
[3:ml3] [NTC] [ALL] [Nov 27 09:15:02] motion_init: Camera 3 started: motion detection Enabled
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] vid_start: Opening V4L2 device
[0:wc0] [CRT] [STR] [Nov 27 09:15:02] http_bindsock: error listening: Address already in use
[0:wc0] [NTC] [STR] [Nov 27 09:15:02] motion_web_control: motion-httpd thread exit
[2:ml2] [NTC] [NET] [Nov 27 09:15:02] netcam_setup_html: connected, going on to read image.
[2:ml2] [NTC] [ALL] [Nov 27 09:15:02] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc4] [NTC] [NET] [Nov 27 09:15:02] netcam_handler_loop: Camera handler thread [4] started
[2:ml2] [WRN] [NET] [Nov 27 09:15:02] netcam_next: called with no data in buffer
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_capability: - STREAMING
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_input_select: Name = "Camera 1"- CAMERA
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_set: Testing palette MJPG (1280x720)
[1:ml1] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_set: Using palette MJPG (1280x720)
[1:ml1] [WRN] [VID] [Nov 27 09:15:02] v4l2_parms_set: Power Line Frequency control option value 3 is above maximum.  Using maximum
[1:ml1] [NTC] [ALL] [Nov 27 09:15:02] image_ring_resize: Resizing pre_capture buffer to 1 items
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_open: Using videodevice /dev/video1 and input -1
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_capability: - VIDEO_CAPTURE
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_capability: - READWRITE
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_device_capability: - STREAMING
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_input_select: Name = "sonixb"- CAMERA
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_select: Configuration palette index 17 (YU12) for 640x480 doesn't work.: Inappropriate ioctl for device
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_select: Supported palettes:
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_select: (0) S910 (GSPCA SN9C10X)
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_select: (1) BA81 (8-bit Bayer BGBG/GRGR)
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_set: Testing palette BA81 (640x480)
[3:ml3] [WRN] [VID] [Nov 27 09:15:02] v4l2_pixfmt_set: Adjusting resolution from 640x480 to 176x144.
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_set: Using palette BA81 (176x144)
[3:ml3] [NTC] [VID] [Nov 27 09:15:02] v4l2_pixfmt_select: Selected palette BA81
[3:ml3] [NTC] [ALL] [Nov 27 09:15:02] image_ring_resize: Resizing pre_capture buffer to 1 items
Merci!

Répondre

Revenir vers « [Catégorie] Sécurité »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 5 invités