pi_portal.cli_commands.cli_machine.upload_snapshot.UploadSnapshotCommand

class pi_portal.cli_commands.cli_machine.upload_snapshot.UploadSnapshotCommand(file_name: str)[source]

Bases: FileCommandBase, CommandManagedStateMixin

CLI command to send a Motion snapshot to Slack.

__init__(file_name: str) None
invoke() None[source]

Invoke the command.

load_state(debug: bool, file_path: str = '/etc/pi_portal/config.json') None

Load and configure state.

Parameters:
  • debug (bool) – Enable or disable debug logs.

  • file_path (str) – The path to the file to load.