pi_portal.commands.door_monitor

CLI command to start the Door Monitor.

class pi_portal.commands.door_monitor.DoorMonitorCommand[source]

CLI command to start the Door Monitor.

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