Provides a simple camera platform that captures the image for playback. This is similar to the Generic IP Camera platform but captures and stores the image periodically to playback as a MJPEG video.
There are two ways this integration can be installed into Home Assistant.
The easiest way is to install the integration using HACS.
Alternatively, installation can be done manually by copying the files in this repository into the custom_components directory in the HA configuration directory:
- Open the configuration directory of your HA configuration.
- If you do not have a custom_components directory, you need to create it.
- In the custom_components directory create a new directory called mjpeg_timelapse.
- Copy all the files from the custom_components/mjpeg_timelapse/ directory in this repository into the mjpeg_timelapse directory.
- Restart Home Assistant
- Add the integration to Home Assistant (see
Configuration
)
After you have installed the custom component (see above):
- Goto the Configuration -> Integrations page.
- On the bottom right of the page, click on the + Add Integration sign to add an integration.
- Search for Mjpeg Timelapse. (If you don't see it, try refreshing your browser page to reload the cache.)
- Click Submit so add the integration.
Alternatively, you can add entries in your configuration.yaml
file.
camera:
- platform: mjpeg_timelapse
image_url: http://example.com/foobar.gif
name: Example
fetch_interval: 30
max_frames: 10
framerate: 3
quality: 50
loop: false
headers:
X-Custom-Header: Some Value
image_url
- (string)(Required)The URL of the image.
name
- (string)(Optional)The name of the entity.
fetch_interval
- (integer)(Optional)The time interval in seconds between fetching the image. Default is 60 seconds.
max_frames
- (integer)(Optional)The number of frames to keep. Default is 100.
framerate
- (integer)(Optional)The playback framerate of the timelapse. Default is 2.
quality
- (integer)(Optional)The image quality between 1 and 100. Default is 75.
loop
- (boolean)(Optional)Loop the playback of the timelapse. Default is true.
headers
- (boolean)(Optional)Additional headers to the image request.