change_cycle_base

This module runs when cycle day/night changes and there is no animal in the behavioural box.

  1. Deletes the old videos.

  2. You can override this class in your project code to implement custom behavior.

Classes

ChangeCycleBase()

Base class for operations performed during the day/night cycle change.

class ChangeCycleBase[source]

Bases: object

Base class for operations performed during the day/night cycle change.

This class handles cleanup tasks such as deleting old video files and ensuring disk space is managed, potentially backing up data before deletion.

run() None[source]

Executes the cycle change logic, primarily old data removal.

Calls the safe_removal_script to delete old videos, optionally backing them up locally or to a remote server based on settings.