OpenIPC / majestic

Majestic Community edition integration kit
MIT License
31 stars 5 forks source link

gk7205v300 + imx335 /usr/sbin/motion.sh not executed #156

Closed alfonsosg closed 3 months ago

alfonsosg commented 4 months ago

Required information

Issue description

After a detected motion event the script /usr/sbin/motion.sh is not being executed

Expectations

I want to call a web-hook after motion detection or get in traces the motion.sh execution call In a working environment ig should be seen in the log like this:

15:47:20  <hi_motionDetect> [ mdetect] motion_detect_thread@726      Motion detection started on 3 ext channel
15:47:21  <hi_motionDetect> [ mdetect] motion_detect_thread@826      656,720    72,24
15:47:21  <hi_motionDetect> [ mdetect] motion_detect_thread@833      Motion detected in 1 regions, 656x720 -> [728x744]
15:47:21  <hi_motionDetect> [   tools] motion_event@619              Execute motion script: /usr/sbin/motion.sh

Steps to reproduce

After a fresh install:

Additional info

axed commented 4 months ago

I confirm this issue exists with openipc build from latest git (1a39728b88f2359a75069082caf7f62367f96f6a).

Tested with gk7205v300_ultimate (IMX335) and ssc338q_ultimate (IMX415).

It seems the intention is that motion.sh will be called from a shared library. However there's no dependency from the majestic binary to this new shared library.

root@openipc-gk7205v300:~# cli -g .system.plugins
true

root@openipc-gk7205v300:~# strings /usr/lib/goke.so | grep motion
call_motion
motion
/usr/sbin/motion.sh

root@openipc-gk7205v300:~# ldd /usr/bin/majestic | grep goke

root@openipc-gk7205v300:~# 

Does the firmware build grab latest majestic closed binary regardless of the git revision checked out?

Is there a way to build older working version from git?

githubtmp7 commented 4 months ago

Same problem on hi3518ev200 board

impala3525 commented 3 months ago

Hello was this issue ever resolved?

alfonsosg commented 3 months ago

Hello was this issue ever resolved?

nop

skilurius commented 3 months ago

Please check the newest version.

githubtmp7 commented 3 months ago

On hi5318ev200 now resolved

alfonsosg commented 3 months ago

Now working on gk7205v300 + imx335 . Thank you