http
or rtsp
. The site https://www.ispyconnect.com/sources.aspx
can be used to determine if and how a camera image can be captured from a particular make and model of camera, via http
or rtsp
. The file defined in config_filename
(see Arguments below) must contain a single command that is used get the photo, and only 2 command types re currently supported by this plugin, either http
or ffmpeg
. The command must start with either of these keywords. Comments are allowed in the config filename, but must start with '#'. Some examples of the contents of config_filename
:rtsp
, then installation of the ffmpeg
command must be done manually, as below, if its not already installed. If ffmpeg
is not installed, do the following on an X86 device.ffmpeg
on a Rasp Pi, use an armhf static build (See -> https://johnvansickle.com/ffmpeg/)/tmp/img.jpg
, try the following:http
is much easier. The convert
tool is optional, and only to reduce the size of the image if it is too big.()&^%
becomes: %28%29%26%5E%25
.fswebcam
seems to be a more usable and stable app. The fswebcam
allows for better collection and control of camera properties. Its best to use a config file to control exposure and resolution. Its usually better to leave the settings to auto
, so the camera can work it out. It may be work better to make sure the camera skips the first 50 or so frames, so it can execute its auto focus, etc functions before taking a frame. To install the fswebcam
package and set controls, do the following:--latitude
... The lattiude, required if taking pictures only during daylight hours --longitude
... The longitude, required if taking pictures only during daylight hours --elevation
... The elevation (in metres), required if taking pictures only during daylight hours --photo_only_during_sunlight
... If present, it will only take photos during daylight hours --after_sunrise_before_sunset
... If present, it will only take photos sunsetrise hours before sunset or after sunrise --sunsetrise
... A value something like 0.0 to 24.0, in hours --copy_storage
... If if this argument is present, it will copy photos to storage_directory --config_filename
... This is the config filename (see below). The default is /opt/ardexa/config/photo-capture/photo.config
--output_filename
... This is the directory for copying the photo. Default is /opt/ardexa/watch/image.jpg
--storage_directory
... This is the directory to store the photos. Default is /opt/ardexa/photo/storage/
--max_storage_age
... This is the maximum days to store photos. Default is 10.0
days. Anything after this will be deleted. Fractions may be used.