virtual_sdcard: add file_path and file_size to status

This provides a comprehensive information if currently
we have a file loaded.

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
This commit is contained in:
Kamil Trzcinski 2021-06-08 17:33:35 +00:00 committed by KevinOConnor
parent 478f26cab6
commit f1091a484b
3 changed files with 18 additions and 6 deletions

View file

@ -329,7 +329,9 @@ The following information is available in the
- `is_active`: Returns True if a print from file is currently active.
- `progress`: An estimate of the current print progress (based of file
size and file position).
- `file_path`: A full path to the file of currently loaded file.
- `file_position`: The current position (in bytes) of an active print.
- `file_size`: The file size (in bytes) of currently loaded file.
# webhooks