mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Move configuration details to docs
This commit is contained in:
parent
403889bbeb
commit
44418b509c
@ -3,43 +3,8 @@ homeassistant.components.camera.generic
|
|||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for IP Cameras.
|
Support for IP Cameras.
|
||||||
|
|
||||||
This component provides basic support for IP cameras. For the basic support to
|
For more details about this platform, please refer to the documentation at
|
||||||
work you camera must support accessing a JPEG snapshot via a URL and you will
|
https://home-assistant.io/components/camera.generic.html
|
||||||
need to specify the "still_image_url" parameter which should be the location of
|
|
||||||
the JPEG image.
|
|
||||||
|
|
||||||
As part of the basic support the following features will be provided:
|
|
||||||
- MJPEG video streaming
|
|
||||||
- Saving a snapshot
|
|
||||||
- Recording(JPEG frame capture)
|
|
||||||
|
|
||||||
To use this component, add the following to your configuration.yaml file.
|
|
||||||
|
|
||||||
camera:
|
|
||||||
platform: generic
|
|
||||||
name: Door Camera
|
|
||||||
username: YOUR_USERNAME
|
|
||||||
password: YOUR_PASSWORD
|
|
||||||
still_image_url: http://YOUR_CAMERA_IP_AND_PORT/image.jpg
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
still_image_url
|
|
||||||
*Required
|
|
||||||
The URL your camera serves the image on, eg. http://192.168.1.21:2112/
|
|
||||||
|
|
||||||
name
|
|
||||||
*Optional
|
|
||||||
This parameter allows you to override the name of your camera in Home
|
|
||||||
Assistant.
|
|
||||||
|
|
||||||
username
|
|
||||||
*Optional
|
|
||||||
The username for accessing your camera.
|
|
||||||
|
|
||||||
password
|
|
||||||
*Optional
|
|
||||||
The password for accessing your camera.
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user