Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. What .conf parameters support '%t' notation, possible feature
      request... (Z4)


----------------------------------------------------------------------

Message: 1
Date: Sat, 17 Aug 2019 17:15:55 -0700
From: Z4 <z...@z2zcorp.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: [Motion-user] What .conf parameters support '%t' notation,
        possible feature request...
Message-ID: <a0296369-1376-9271-ffe3-0df66759a...@z2zcorp.com>
Content-Type: text/plain; charset=utf-8

Wouldn't it be nice to simply be able to 'cp camera1.conf camera2.conf'
and if they had these settings, no further edits would be necessary:

camera_id = %t
stream_port 'X + %t' # or equivalent
netcam_url rtsp://camera%t/some_path...

then the dynamic %t parameter would take care of differences between the
files, and assuming that the /etc/motion/conf.d/ directory were read in
a consistent order (alphabetical?),then no edits would be necessary to
any of the cameraX.conf files.

Its a minor convenience issue, but adding/removing cameras would be more
streamlined for cases where there are multiple cameras of the same type.

I know the camera_id parameter already supports %t, but I see
'.../camera2.conf' being read before '.../camera1.conf', so that's a bit
unexpected.  Otherwise, the code is already present, just may need to be
implemented for a few more parameters.

Can this be done already?

If not, maybe one of the devs. here could point me at the file/directory
to start with and I'll make the changes and provide a patch.



------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 158, Issue 29
********************************************

Reply via email to