camera.android#

class platypush.message.response.camera.android.AndroidCameraPictureResponse(image_file: str, *args, **kwargs)[source]#

Bases: CameraResponse

__init__(image_file: str, *args, **kwargs)[source]#
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.camera.android.AndroidCameraStatusListResponse(status: List[AndroidCameraStatusResponse], **kwargs)[source]#

Bases: CameraResponse

__init__(status: List[AndroidCameraStatusResponse], **kwargs)[source]#
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.camera.android.AndroidCameraStatusResponse(*args, name: str = None, stream_url: str = None, image_url: str = None, audio_url: str = None, orientation: str = None, idle: str = None, audio_only: str = None, overlay: str = None, quality: str = None, focus_homing: str = None, ip_address: str = None, motion_limit: str = None, adet_limit: str = None, night_vision: str = None, night_vision_average: str = None, night_vision_gain: str = None, motion_detect: str = None, motion_display: str = None, video_chunk_len: str = None, gps_active: str = None, video_size: str = None, mirror_flip: str = None, ffc: str = None, rtsp_video_formats: str = None, rtsp_audio_formats: str = None, video_connections: str = None, audio_connections: str = None, ivideon_streaming: str = None, zoom: str = None, crop_x: str = None, crop_y: str = None, coloreffect: str = None, scenemode: str = None, focusmode: str = None, whitebalance: str = None, flashmode: str = None, antibanding: str = None, torch: str = None, focus_distance: str = None, focal_length: str = None, aperture: str = None, filter_density: str = None, exposure_ns: str = None, frame_duration: str = None, iso: str = None, manual_sensor: str = None, photo_size: str = None, **kwargs)[source]#

Bases: CameraResponse

Example response:

{
    "stream_url": "https://192.168.1.30:8080/video",
    "image_url": "https://192.168.1.30:8080/photo.jpg",
    "audio_url": "https://192.168.1.30:8080/audio.wav",
    "orientation": "landscape",
    "idle": "off",
    "audio_only": "off",
    "overlay": "off",
    "quality": "49",
    "focus_homing": "off",
    "ip_address": "192.168.1.30",
    "motion_limit": "250",
    "adet_limit": "200",
    "night_vision": "off",
    "night_vision_average": "2",
    "night_vision_gain": "1.0",
    "motion_detect": "off",
    "motion_display": "off",
    "video_chunk_len": "60",
    "gps_active": "off",
    "video_size": "1920x1080",
    "mirror_flip": "none",
    "ffc": "off",
    "rtsp_video_formats": "",
    "rtsp_audio_formats": "",
    "video_connections": "0",
    "audio_connections": "0",
    "ivideon_streaming": "off",
    "zoom": "100",
    "crop_x": "50",
    "crop_y": "50",
    "coloreffect": "none",
    "scenemode": "auto",
    "focusmode": "continuous-video",
    "whitebalance": "auto",
    "flashmode": "off",
    "antibanding": "off",
    "torch": "off",
    "focus_distance": "0.0",
    "focal_length": "4.25",
    "aperture": "1.7",
    "filter_density": "0.0",
    "exposure_ns": "9384",
    "frame_duration": "33333333",
    "iso": "100",
    "manual_sensor": "off",
    "photo_size": "1920x1080"
}
__init__(*args, name: str = None, stream_url: str = None, image_url: str = None, audio_url: str = None, orientation: str = None, idle: str = None, audio_only: str = None, overlay: str = None, quality: str = None, focus_homing: str = None, ip_address: str = None, motion_limit: str = None, adet_limit: str = None, night_vision: str = None, night_vision_average: str = None, night_vision_gain: str = None, motion_detect: str = None, motion_display: str = None, video_chunk_len: str = None, gps_active: str = None, video_size: str = None, mirror_flip: str = None, ffc: str = None, rtsp_video_formats: str = None, rtsp_audio_formats: str = None, video_connections: str = None, audio_connections: str = None, ivideon_streaming: str = None, zoom: str = None, crop_x: str = None, crop_y: str = None, coloreffect: str = None, scenemode: str = None, focusmode: str = None, whitebalance: str = None, flashmode: str = None, antibanding: str = None, torch: str = None, focus_distance: str = None, focal_length: str = None, aperture: str = None, filter_density: str = None, exposure_ns: str = None, frame_duration: str = None, iso: str = None, manual_sensor: str = None, photo_size: str = None, **kwargs)[source]#
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp