Install
openclaw skills install @xuwei-fit2cloud/dataease通过自然语言查询 DataEase 组织、切换组织、列出仪表板或数据大屏,并把指定资源导出为截图或 PDF。
openclaw skills install @xuwei-fit2cloud/dataease根据用户的自然语言请求,调用 DataEase 接口完成以下工作:
用户可能会这样表达需求:
用户输入中可能包含:
dashboard 或 dataVjpeg 或 pdf1920*1080输出内容应包括:
orgIddataVdashboardbusiType=dashboardpixel=1920*1080extWaitTime=0resultFormat=0,表示 JPEGresultFormat=1在匹配组织名称或资源名称前,需要做标准化处理:
access key、secret key 等敏感凭证硬编码到 skill 文件中base_url、access key、secret key、username、passwordDATAEASE_BASE_URLDATAEASE_ACCESS_KEYDATAEASE_SECRET_KEYDATAEASE_USERNAMEDATAEASE_PASSWORDDATAEASE_LOGIN_ORIGIN.envusername 和 password,脚本会先调用 dekey 和 /login/localLogin 获取 x-de-tokenaccessKey 和 secretKey,脚本会自动生成:
signaturex-de-ask-tokenx-de-tokenx-de-token,脚本可直接复用saved_filescripts/capture_dashboard.py 执行 API 调用和文件保存scripts/browser_capture.mjs 打开预览页并完成本地截图references/api.md 查看接口说明和鉴权接入方式references/resource_aliases.jsonpython3 scripts/capture_dashboard.py list-orgspython3 scripts/capture_dashboard.py switch-org --org-id 1225813472202330112python3 scripts/capture_dashboard.py list-resources --org-id 1225813472202330112 --busi-type dashboardpython3 scripts/capture_dashboard.py list-resources --org-id 1225813472202330112 --busi-type dataVpython3 scripts/capture_dashboard.py capture --org-id 1225813472202330112 --resource-name 销售总览 --busi-type dashboardpython3 scripts/capture_dashboard.py capture --org-id 1225813472202330112 --resource-name 门店运营监控 --busi-type dataV --result-format 1