mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 11:07:40 +00:00
feature add machine storage space function and user data list function for web.
This commit is contained in:
@@ -2078,8 +2078,8 @@ void SSWCP_MachineOption_Instance::process()
|
|||||||
sw_UploadCameraTimelapse();
|
sw_UploadCameraTimelapse();
|
||||||
} else if (m_cmd == "sw_DeleteCameraTimelapse") {
|
} else if (m_cmd == "sw_DeleteCameraTimelapse") {
|
||||||
sw_DeleteCameraTimelapse();
|
sw_DeleteCameraTimelapse();
|
||||||
} else if (m_cmd == "sw_GetTimelapseInstance") {
|
} else if (m_cmd == "sw_GetCameraTimelapseInstance") {
|
||||||
sw_GetTimelapseInstance();
|
sw_GetCameraTimelapseInstance();
|
||||||
} else if (m_cmd == "sw_ServerClientManagerSetUserinfo") {
|
} else if (m_cmd == "sw_ServerClientManagerSetUserinfo") {
|
||||||
sw_ServerClientManagerSetUserinfo();
|
sw_ServerClientManagerSetUserinfo();
|
||||||
} else if (m_cmd == "sw_DefectDetactionConfig"){
|
} else if (m_cmd == "sw_DefectDetactionConfig"){
|
||||||
@@ -3695,7 +3695,7 @@ void SSWCP_MachineOption_Instance::CmdForwarding()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSWCP_MachineOption_Instance::sw_GetTimelapseInstance()
|
void SSWCP_MachineOption_Instance::sw_GetCameraTimelapseInstance()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
std::shared_ptr<PrintHost> host = nullptr;
|
std::shared_ptr<PrintHost> host = nullptr;
|
||||||
@@ -5861,7 +5861,7 @@ std::unordered_set<std::string> SSWCP::m_machine_option_cmd_list = {
|
|||||||
"sw_UpdateMachineFilamentInfo",
|
"sw_UpdateMachineFilamentInfo",
|
||||||
"sw_UploadCameraTimelapse",
|
"sw_UploadCameraTimelapse",
|
||||||
"sw_DeleteCameraTimelapse",
|
"sw_DeleteCameraTimelapse",
|
||||||
"sw_GetTimelapseInstance",
|
"sw_GetCameraTimelapseInstance",
|
||||||
"sw_ServerClientManagerSetUserinfo",
|
"sw_ServerClientManagerSetUserinfo",
|
||||||
"sw_DefectDetactionConfig",
|
"sw_DefectDetactionConfig",
|
||||||
GET_DEVICEDATA_STORAGESPACE
|
GET_DEVICEDATA_STORAGESPACE
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ private:
|
|||||||
void sw_GetFileListPage();
|
void sw_GetFileListPage();
|
||||||
void sw_UploadCameraTimelapse();
|
void sw_UploadCameraTimelapse();
|
||||||
void sw_DeleteCameraTimelapse();
|
void sw_DeleteCameraTimelapse();
|
||||||
void sw_GetTimelapseInstance();
|
void sw_GetCameraTimelapseInstance();
|
||||||
|
|
||||||
void sw_DefectDetactionConfig();
|
void sw_DefectDetactionConfig();
|
||||||
|
|
||||||
|
|||||||
@@ -2403,7 +2403,7 @@ void Moonraker_Mqtt::async_get_timelapse_instance(const nlohmann::json& targets,
|
|||||||
void Moonraker_Mqtt::async_get_userdata_space(const nlohmann::json& targets, std::function<void(const nlohmann::json& response)> callback)
|
void Moonraker_Mqtt::async_get_userdata_space(const nlohmann::json& targets, std::function<void(const nlohmann::json& response)> callback)
|
||||||
{
|
{
|
||||||
auto& wcp_loger = GUI::WCP_Logger::getInstance();
|
auto& wcp_loger = GUI::WCP_Logger::getInstance();
|
||||||
std::string method = "camera.get_timelapse_instance";
|
std::string method = "server.files.get_userdata_space";
|
||||||
|
|
||||||
json params = json::object();
|
json params = json::object();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user