pi_portal.commands.upload_video

CLI command to send a Motion video to Slack and S3.

class pi_portal.commands.upload_video.UploadVideoCommand(file_name)[source]

CLI command to send a Motion video 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