Grams ↔ meters ↔ yards
convert_yarn_amountConverts yarn amounts between grams, length (meters/yards), and skeins using a yarn's skein data or a typical weight ratio when the exact yarn is unknown.
Instructions
Converts an amount of yarn between grams and length (meters/yards) and skeins, e.g. "I have 200 g of Rios" or "how many grams is 300 m of DK?". Uses the yarn's own skein data (yarn_id) when given, else a typical ratio for the yarn weight (an estimate). Yarn is sold by weight in much of the world, but patterns need a length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | ||
| yards | No | ||
| meters | No | ||
| weight | No | When the exact yarn is unknown. | |
| yarn_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| yarn | Yes | ||
| grams | Yes | ||
| yards | Yes | ||
| meters | Yes | ||
| skeins | Yes | Of the given yarn. | |
| estimated | Yes | True when a typical ratio for the weight was used. |