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¶m=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¶m=udevice&idx=9&nvalue=2&svalue=No-movement"'
[1:Unknown] [NTC] [ALL] [Mar 11 22:08:53] mlp_actions: End of event 3
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