feature add machine storage space function and user data list function for web.

This commit is contained in:
alves
2026-01-22 18:03:24 +08:00
parent 2ddac78309
commit 2df0955deb
3 changed files with 6 additions and 6 deletions

View File

@@ -2078,8 +2078,8 @@ void SSWCP_MachineOption_Instance::process()
sw_UploadCameraTimelapse();
} else if (m_cmd == "sw_DeleteCameraTimelapse") {
sw_DeleteCameraTimelapse();
} else if (m_cmd == "sw_GetTimelapseInstance") {
sw_GetTimelapseInstance();
} else if (m_cmd == "sw_GetCameraTimelapseInstance") {
sw_GetCameraTimelapseInstance();
} else if (m_cmd == "sw_ServerClientManagerSetUserinfo") {
sw_ServerClientManagerSetUserinfo();
} 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 {
std::shared_ptr<PrintHost> host = nullptr;
@@ -5861,7 +5861,7 @@ std::unordered_set<std::string> SSWCP::m_machine_option_cmd_list = {
"sw_UpdateMachineFilamentInfo",
"sw_UploadCameraTimelapse",
"sw_DeleteCameraTimelapse",
"sw_GetTimelapseInstance",
"sw_GetCameraTimelapseInstance",
"sw_ServerClientManagerSetUserinfo",
"sw_DefectDetactionConfig",
GET_DEVICEDATA_STORAGESPACE

View File

@@ -421,7 +421,7 @@ private:
void sw_GetFileListPage();
void sw_UploadCameraTimelapse();
void sw_DeleteCameraTimelapse();
void sw_GetTimelapseInstance();
void sw_GetCameraTimelapseInstance();
void sw_DefectDetactionConfig();

View File

@@ -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)
{
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();