返回顶部
g

grocy-inventoryGrocy库存管理

Manage Grocy inventory, shopping list, batteries, and barcodes. Use when user wants to: (1) Check what's in their fridge/pantry, (2) See expiring products, (3) Manage stock by barcode, (4) Add/Consume/Transfer products, (5) Track rechargeable batteries. Grocy is a self-hosted inventory management app running at http://localhost:14611

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
361
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

grocy-inventory

Grocy 库存技能

检查并管理您的Grocy库存、购物清单和电池。此技能连接到您的本地Grocy实例。

配置

变量
URLhttp://localhost:14611
API密钥
mz43yGJzBKfwZdSOwG5EdnKPRrKnCbkGrEFbxXYv2JF61tQ9Mj |

快速命令

检查库存(冰箱/食品柜)

bash curl -s -H GROCY-API-KEY: $API_KEY $URL/api/stock

通过条形码查询详情

bash curl -s -H GROCY-API-KEY: $API_KEY $URL/api/stock/products/by-barcode/{barcode}

通过条形码消耗库存

bash curl -s -X POST -H GROCY-API-KEY: $API_KEY \ -H Content-Type: application/json \ -d {amount: 1, transaction_type: consume} \ $URL/api/stock/products/by-barcode/{barcode}/consume

通过条形码标记库存为已开封

bash curl -s -X POST -H GROCY-API-KEY: $API_KEY \ -H Content-Type: application/json \ -d {amount: 1} \ $URL/api/stock/products/by-barcode/{barcode}/open

通过条形码转移库存

bash curl -s -X POST -H GROCY-API-KEY: $API_KEY \ -H Content-Type: application/json \ -d {amount: 1, locationidfrom: 6, locationidto: 2} \ $URL/api/stock/products/by-barcode/{barcode}/transfer

获取所有电池

bash curl -s -H GROCY-API-KEY: $API_KEY $URL/api/batteries

记录电池充电

bash curl -s -X POST -H GROCY-API-KEY: $API_KEY \ -H Content-Type: application/json \ -d {battery_id: 7} \ $URL/api/batteries/7/charge

常见任务

任务命令
通过条形码查找产品GET /api/stock/products/by-barcode/{barcode}
通过条形码消耗
POST /api/stock/products/by-barcode/{barcode}/consume | | 通过条形码开封 | POST /api/stock/products/by-barcode/{barcode}/open | | 通过条形码转移 | POST /api/stock/products/by-barcode/{barcode}/transfer | | 检查电池状态 | GET /api/batteries | | 记录电池充电 | POST /api/batteries/{id}/charge |

提示

  • - 使用 jq 格式化JSON日志:curl ... | jq
  • 对于条形码,请使用 Stock by-barcode 标签中的直接 /by-barcode/{barcode} 端点。
  • 完整API文档:参见 references/grocy-api.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 grocy-inventory-1776208119 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 grocy-inventory-1776208119 技能

通过命令行安装

skillhub install grocy-inventory-1776208119

下载

⬇ 下载 grocy-inventory v1.0.0(免费)

文件大小: 2.39 KB | 发布时间: 2026-4-15 10:33

v1.0.0 最新 2026-4-15 10:33
Initial release – manage your Grocy inventory and batteries with essential endpoints.

- Check fridge or pantry stock via the Grocy API.
- Find and manage products using barcodes (lookup, consume, open, transfer).
- View and track rechargeable battery status and charging.
- Example curl commands provided for all supported actions.
- Connects to a local Grocy instance at http://localhost:14611.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部