pi_portal.commands.upload_snapshot

CLI command to send a Motion snapshot to Slack.

class pi_portal.commands.upload_snapshot.UploadSnapshotCommand(file_name)[source]

CLI command to send a Motion snapshot to Slack.

Parameters:

file_name (str) –

invoke()[source]

Invoke the command.

Return type:

None

load_state(debug, file_path='/opt/venvs/pi-portal/config.json')

Load and configure state.

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

  • file_path (str, default: '/opt/venvs/pi-portal/config.json') – The path to the file to load.

Return type:

None