pi_portal.modules.tasks.service_client.TaskSchedulerServiceClient
- class pi_portal.modules.tasks.service_client.TaskSchedulerServiceClient[source]
Bases:
objectClient for the task scheduler service.
- camera_snapshot(camera: int) UnixStreamHttpResponse[source]
Schedule a camera snapshot from the specified camera.
- Parameters:
camera (int) – The camera identifier to request the snapshot from.
- Returns:
A response from the task scheduler API.
- Return type:
- chat_send_message(message: str) UnixStreamHttpResponse[source]
Send a message to the chat client via the API.
- Parameters:
message (str) – The message you wish to send.
- Returns:
A response from the task scheduler API.
- Return type:
- chat_send_temperature_reading() UnixStreamHttpResponse[source]
Send the latest temperature reading to the chat client via the API.
- Returns:
A response from the task scheduler API.
- Return type:
- chat_upload_snapshot(path: str) UnixStreamHttpResponse[source]
Upload camera snapshots to the chat client via the API.
- Parameters:
path (str) – The path to the motion snapshot to upload.
- Returns:
A response from the task scheduler API.
- Return type:
- chat_upload_video(path: str) UnixStreamHttpResponse[source]
Upload camera videos to the chat client via the API.
- Parameters:
path (str) – The path to the motion video to upload.
- Returns:
A response from the task scheduler API.
- Return type:
- file_system_copy(source: str, destination: str) UnixStreamHttpResponse[source]
Schedule copying a file via the API.
- Parameters:
source (str) – The path to the source file.
destination (str) – The path to the destination file.
- Returns:
A response from the task scheduler API.
- Return type:
- set_flag(flag_name: str, value: bool) UnixStreamHttpResponse[source]
Schedule copying a file via the API.
- Parameters:
flag_name (str) – The flag name to set.
value (bool) – The value to assign to this flag.
- Returns:
A response from the task scheduler API.
- Return type: