Motion, ip camera and dummy sensor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
MikaelHakim
Posts: 5
Joined: Friday 09 March 2018 9:25
Target OS: Linux
Domoticz version:
Contact:

Motion, ip camera and dummy sensor

Post by MikaelHakim »

I have set up Motion service in a FreeNAS server. Domoticz is running under a iocage jail. There are also a camera and a dummy alert sensor in Domoticz. Motion is working, saving files and it is able to generate events but alert sensor is not reacting. I have tested json code with console and it works but not with Motion exec_command. Any ideas?

Setup
FreeNAS-11.1-U1
Intel Xeon CPU E31265L @ 2.40GHz / Memory 32702MB
Domoticz 3.8975 @ IOCAGE jail
Motion 4.1.1+git20180305-aa0b70f
Z-Stick Gen5
Hikvision DS-2CD2385FWD-I 8MP


Motion log file (curl and json is not working)
if curl command wiht a json code were executed in a console it works but not if the command were executed by Motion service
EDIT1: problem solved by moving curl command and the json code into a script

Code: Select all

[1:Unknown] [DBG] [EVT] [Mar 11 22:08:21] exec_command: Executing external command '/usr/bin/curl -s "http://192.168.0.102:8080/json.htm?type=command&param=udevice&idx=9&nvalue=4&svalue=Movement-start"'
[1:Unknown] [INF] [EVT] [Mar 11 22:08:21] event_new_video: Source FPS 24
[1:Unknown] [INF] [ENC] [Mar 11 22:08:21] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 28
[1:Unknown] [NTC] [EVT] [Mar 11 22:08:21] event_newfile: File of type 8 saved to: /media/motion/video/cam01/03-20180311220820.mkv
[1:Unknown] [NTC] [ALL] [Mar 11 22:08:21] motion_detected: Motion detected - starting event 3
[1:Unknown] [INF] [ENC] [Mar 11 22:08:21] ffmpeg_avcodec_log: specified frame type (3) at 0 is not compatible with keyframe interval
[1:Unknown] [DBG] [EVT] [Mar 11 22:08:53] exec_command: Executing external command '/usr/bin/curl -s "http://192.168.0.102:8080/json.htm?type=command&param=udevice&idx=9&nvalue=2&svalue=No-movement"'
[1:Unknown] [NTC] [ALL] [Mar 11 22:08:53] mlp_actions: End of event 3
Motion log file (curl & json is working)

Code: Select all

[1:Unknown] [DBG] [EVT] [Mar 12 00:49:39] exec_command: Executing external command '/media/motion/alertstart.sh'
[1:Unknown] [INF] [EVT] [Mar 12 00:49:39] event_new_video: Source FPS 24
[1:Unknown] [INF] [ENC] [Mar 12 00:49:39] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 28
[1:Unknown] [NTC] [EVT] [Mar 12 00:49:39] event_newfile: File of type 8 saved to: /media/motion/video/cam01/01-20180312004938.mkv
[1:Unknown] [NTC] [ALL] [Mar 12 00:49:39] motion_detected: Motion detected - starting event 1
[1:Unknown] [INF] [ENC] [Mar 12 00:49:39] ffmpeg_avcodec_log: specified frame type (3) at 0 is not compatible with keyframe interval
[1:Unknown] [DBG] [EVT] [Mar 12 00:50:10] exec_command: Executing external command '/media/motion/alertstop.sh'
[1:Unknown] [NTC] [ALL] [Mar 12 00:50:10] mlp_actions: End of event 1
EDIT2: spelling
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest