Install
openclaw skills install grocy-inventoryManage Grocy inventory, shopping list, batteries, and barcodes. Use when user wants to: (1) Check what's in their fridge/pantry, (2) See expiring products, (...
openclaw skills install grocy-inventoryCheck and manage your Grocy inventory, shopping list, and batteries. This skill connects to your local Grocy instance.
| Variable | Value |
|---|---|
| URL | http://localhost:14611 |
| API Key | mz43yGJzBKfwZdSOwG5EdnKPRrKnCbkGrEFbxXYv2JF61tQ9Mj |
curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/stock"
curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/stock/products/by-barcode/{barcode}"
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"
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"
curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1, "location_id_from": 6, "location_id_to": 2}' \
"$URL/api/stock/products/by-barcode/{barcode}/transfer"
curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/batteries"
curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"battery_id": 7}' \
"$URL/api/batteries/7/charge"
| Task | Command |
|---|---|
| Find product by barcode | GET /api/stock/products/by-barcode/{barcode} |
| Consume by barcode | POST /api/stock/products/by-barcode/{barcode}/consume |
| Open by barcode | POST /api/stock/products/by-barcode/{barcode}/open |
| Transfer by barcode | POST /api/stock/products/by-barcode/{barcode}/transfer |
| Check battery status | GET /api/batteries |
| Track battery charge | POST /api/batteries/{id}/charge |
jq for pretty JSON logs: curl ... | jq/by-barcode/{barcode} endpoints found in the Stock "by-barcode" tags.references/grocy-api.md