pi_portal.modules.integrations.camera.motion.client.MotionClient

class pi_portal.modules.integrations.camera.motion.client.MotionClient(log: Logger)[source]

Bases: CameraClientBase

Camera client for the Motion application.

Parameters:

log (Logger) – The logger instance to use.

__init__(log: Logger) None[source]
is_disk_space_available() bool

Check the camera path disk utilization against the threshold.

Returns:

A boolean indicating if there is enough disk space for the camera.

Return type:

bool

take_snapshot(camera: int) None[source]

Take a snapshot with Motion.

Parameters:

camera (int) – The camera index to use.

Raises:

CameraException