No Answers? :D
At moment, i set up thread1.conf and leave motion.conf without
webcam configuration, and i see that http control have 2 thread (0
and 1) where 0 is fake and 1 it's my webcam (Logitech C170);
mysql during the logging store the right thread value into table
when the program find a motion detect.
It's possible to the future, leave motion.conf only for common
configurations and threadx.conf for cameras?
Il 03/07/2013 11:25, rUzzine ha scritto:
i'll want understand a think.
I configure inside motion.conf my first and unique webcam; i run
motion and during motion detect the program insert inside mysql
database some information.
I use this query inside motion.conf:
sql_query insert into rm_events(camera, filename, frame,
file_type, text_event) values('%t', '%f', '%q', '%n', '%C')
I see inside the table "camera" of my db..the value "1"..it's the
numer of thread (%t) but..i don't understand..the camera values
are inside motion.conf and i think the camera is thread0..
Infact, if i open the HTTP Control of motion i see this:
Motion 3.2.12 Running  Threads
The problem is..inside http Control.. there the thread is number
0.. but with mysql function of motion the thread value is store as
Why? It's right? Or there is something wrong?
With a little php script i use get function of http control for
recover the Camera name (text_left); i recover the camera thread
from mysql db and i create the url for http control for recover