mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-30 00:45:26 -05:00
* Report storage on every Moonraker status push MachineObject sets the storage state on every push, first from "sdcard" and then from home_flag bits 8-9. The Moonraker agent sent neither, so each push reset the state to NO_SDCARD and the send dialog blocked with "Storage needs to be inserted before printing". Moonraker printers always have storage (virtual_sdcard), so report it in both places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Check Moonraker Free Space Before Reporting Storage Report storage only when the gcodes root has free space, read from disk_usage in /server/files/directory?path=gcodes, instead of always reporting it. The status stream checks before the subscription and again from the read loop every 30 s. A check that fails counts as no storage. Move the Http::get boilerplate of the device info, status, object list and storage queries into one get_json helper. * Ask to Insert Storage or Free Up Space Before Printing A printer agent now also reports no storage when its disk is full, so the messages for that state say to free up space as well. The two "before send(ing) to printer" variants share one string. --------- Co-authored-by: dr-apple <15102858+dr-apple@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>