Skip to content

Commit 2310c33

Browse files
committed
add get mac_addr
1 parent 637bc88 commit 2310c33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

custom_routes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import traceback
3232
import re
3333
import keyword
34+
import uuid
3435

3536
from .dependency_checker import resolve_dependencies, inspect_repo_version
3637
from folder_paths import base_path as BASE_PATH
@@ -205,4 +206,13 @@ async def shellagent_export(request):
205206
"comfyui_version": comfyui_version,
206207
"comfyui_shellagent_plugin_version": comfyui_shellagent_plugin_version,
207208
}
209+
return web.json_response(return_dict, status=200)
210+
211+
212+
@server.PromptServer.instance.routes.post("/shellagent/get_mac_addr") # data same as queue prompt, plus workflow_name
213+
async def shellagent_export(request):
214+
data = await request.json()
215+
return_dict = {
216+
"mac_addr": uuid.getnode()
217+
}
208218
return web.json_response(return_dict, status=200)

0 commit comments

Comments
 (0)