pi_portal.modules.integrations.camera.bases.client.CameraClientBase

class pi_portal.modules.integrations.camera.bases.client.CameraClientBase(log: Logger)[source]

Bases: ABC

Camera client base class.

Parameters:

log (Logger) – The logger instance to use.

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

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

abstract take_snapshot(camera: int) None[source]

Take a snapshot with the specified camera.

Parameters:

camera (int) – The camera index to use.

Raises:

CameraException