camera.android.ipcam
#
- class platypush.plugins.camera.android.ipcam.CameraAndroidIpcamPlugin(host: str | None = None, port: int | None = 8080, username: str | None = None, password: str | None = None, timeout: int = 10, ssl: bool = True, cameras: Dict[str, Dict[str, Any]] | None = None, **kwargs)[source]#
Bases:
Plugin
Plugin to control remote Android cameras over IPCam.
- __init__(host: str | None = None, port: int | None = 8080, username: str | None = None, password: str | None = None, timeout: int = 10, ssl: bool = True, cameras: Dict[str, Dict[str, Any]] | None = None, **kwargs)[source]#
- Parameters:
host – Camera host name or address
port – Camera port
username – Camera username, if set
password – Camera password, if set
timeout – Connection timeout
ssl – Use HTTPS instead of HTTP
cameras – Alternatively, you can specify a list of IPCam cameras as a name->dict mapping. The keys will be unique names used to identify your cameras, the values will contain dictionaries containing host, `port, username, password, timeout and ssl attributes for each camera.
- change_setting(key: str, value: str | int | bool, camera: int | str = None) bool [source]#
Change a setting. :param key: Setting name :param value: Setting value :param camera: Camera index or configured name :return: True on success, False otherwise
- set_front_facing_camera(activate: bool = True, camera: int | str = None) bool [source]#
Enable/disable the front-facing camera.
- set_motion_detect(activate: bool = True, camera: int | str = None) bool [source]#
Enable/disable motion detect.
- set_night_vision(activate: bool = True, camera: int | str = None) bool [source]#
Enable/disable night vision.
- set_orientation(orientation: str = 'landscape', camera: int | str = None) bool [source]#
Set video orientation.
- set_overlay(activate: bool = True, camera: int | str = None) bool [source]#
Enable/disable video overlay.
- set_scenemode(scenemode: str = 'auto', camera: int | str = None) bool [source]#
Set video orientation.
- status(camera: int | str = None) AndroidCameraStatusListResponse [source]#
- Parameters:
camera – Camera index or name (default: status of all the cameras)
- Returns:
True if the camera is available, False otherwise