{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/aquarium-filter-media/schema.json",
 "title": "Aquarium filter media — parameters",
 "description": "Bio balls, filter rings, lattice blocks and slotted media baskets, sized to your sump, canister or hang-on-back filter, with the surface area worked out. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "aquarium-filter-media",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "kind",
   "title": "What it is"
  },
  {
   "id": "lattice",
   "title": "The media"
  },
  {
   "id": "basket",
   "title": "The basket"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "bio-balls-25mm",
    "title": "Bio balls 25 mm",
    "description": "Twelve graphite bio balls, 25 mm cages with 6 mm cells, to scatter over a sump tray or fill a canister basket.",
    "values": {
     "kind": "balls",
     "size": 25,
     "count": 12,
     "baseColor": "#1f2937"
    }
   },
   {
    "id": "hob-lattice-block",
    "title": "Lattice block for a hang-on-back filter",
    "description": "A teal 100 × 60 × 40 mm lattice block, 6 mm cells, that drops into the media chamber of a hang-on-back filter.",
    "values": {
     "kind": "blocks",
     "blockW": 100,
     "blockD": 60,
     "blockH": 40,
     "baseColor": "#0e7490"
    }
   },
   {
    "id": "canister-basket-160mm",
    "title": "Canister basket Ø160 mm",
    "description": "A blue drum 158 mm across and 60 mm tall with 2 mm slots, handle ears and feet, for a 160 mm canister.",
    "values": {
     "kind": "basket",
     "shape": "round",
     "width": 158,
     "height": 60,
     "baseColor": "#1f4e8c"
    }
   },
   {
    "id": "sump-basket-150x150x100",
    "title": "Sump basket 150 × 150 × 100 mm",
    "description": "A white box basket 148 × 148 × 100 mm with 3 mm slots for a sump compartment: it lifts out to rinse the media.",
    "values": {
     "kind": "basket",
     "width": 148,
     "depth": 148,
     "height": 100,
     "slot": 3,
     "bar": 3,
     "baseColor": "#f1f1f1"
    }
   },
   {
    "id": "shrimp-safe-basket",
    "title": "Shrimp-safe basket, 1 mm slots",
    "description": "A green 100 × 100 × 60 mm basket with 1 mm slots, fine enough to keep shrimplets and fry where you put them.",
    "values": {
     "kind": "basket",
     "width": 100,
     "depth": 100,
     "height": 60,
     "slot": 1,
     "bar": 1.6,
     "baseColor": "#3f6212"
    }
   },
   {
    "id": "pond-filter-rings-40mm",
    "title": "Pond filter rings 40 mm",
    "description": "Twelve orange mesh tubes, 40 mm across and 20 mm tall, the loose media of a pond filter or a moving bed.",
    "values": {
     "kind": "rings",
     "size": 40,
     "ringHeight": 20,
     "count": 12,
     "cell": 8,
     "baseColor": "#c2410c"
    }
   },
   {
    "id": "fine-bio-balls-16mm",
    "title": "Fine bio balls 16 mm",
    "description": "Twenty-four sand-coloured 16 mm cages with 4 mm cells, more surface in a small canister.",
    "values": {
     "kind": "balls",
     "size": 16,
     "cell": 4,
     "count": 24,
     "baseColor": "#a16207"
    }
   },
   {
    "id": "tall-sump-basket",
    "title": "Tall sump basket 100 × 100 × 150",
    "description": "A deep white basket for a narrow sump compartment, 150 mm tall, with a wide rim to grip and feet for flow.",
    "values": {
     "kind": "basket",
     "width": 98,
     "depth": 98,
     "height": 150,
     "handle": "rim",
     "baseColor": "#475569"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "kind": {
   "type": "string",
   "enum": [
    "balls",
    "rings",
    "blocks",
    "basket"
   ],
   "x-enumTitles": {
    "balls": "Bio balls: round cages to drop in a sump or a canister",
    "rings": "Filter rings: short mesh tubes for pond and canister filters",
    "blocks": "Lattice blocks: a printed grid that fills a chamber",
    "basket": "Media basket: a slotted box or drum that holds the media"
   },
   "title": "Kind",
   "description": "Loose media to drop in, a block cut to a chamber, or a basket that holds sponge, ceramic or loose media and lifts out to rinse.",
   "x-group": "kind",
   "x-agentSafe": true,
   "x-label-lv": "Veids",
   "default": "basket",
   "x-resetOnPreset": true
  },
  "size": {
   "type": "number",
   "minimum": 10,
   "maximum": 50,
   "multipleOf": 1,
   "title": "Diameter",
   "description": "Of a ball or a ring. Sump trays take 25 to 40 mm, a canister anything from 15.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "balls",
     "rings",
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Diametrs",
   "default": 25,
   "x-resetOnPreset": true
  },
  "ringHeight": {
   "type": "number",
   "minimum": 8,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Ring height",
   "description": "How tall a filter ring stands.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "rings"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Gredzena augstums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "count": {
   "type": "integer",
   "minimum": 1,
   "maximum": 30,
   "multipleOf": 1,
   "title": "How many",
   "description": "Balls or rings on the plate at once.",
   "x-group": "lattice",
   "x-unit": "count",
   "x-visibleIf": {
    "kind": [
     "balls",
     "rings",
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Cik daudz",
   "default": 12,
   "x-resetOnPreset": true
  },
  "blockW": {
   "type": "number",
   "minimum": 20,
   "maximum": 220,
   "multipleOf": 5,
   "title": "Block width",
   "description": "The chamber the block drops into, less a millimetre or two.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Bloka platums",
   "default": 100,
   "x-resetOnPreset": true
  },
  "blockD": {
   "type": "number",
   "minimum": 20,
   "maximum": 220,
   "multipleOf": 5,
   "title": "Block depth",
   "description": "Front to back of the block.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Bloka dziļums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "blockH": {
   "type": "number",
   "minimum": 10,
   "maximum": 120,
   "multipleOf": 5,
   "title": "Block height",
   "description": "How deep the water runs through it.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Bloka augstums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "strut": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 2.4,
   "x-step": 0.2,
   "title": "Strut thickness",
   "description": "Of the lattice. 1.6 mm is three lines of a 0.4 nozzle: fine media, still strong.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "kind": [
     "balls",
     "rings",
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Stieņa biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "cell": {
   "type": "number",
   "minimum": 3,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Cell size",
   "description": "Gap between struts. Small cells give more surface; large ones let water and debris pass.",
   "x-group": "lattice",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "balls",
     "rings",
     "blocks"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Šūnas izmērs",
   "default": 6,
   "x-resetOnPreset": true
  },
  "shape": {
   "type": "string",
   "enum": [
    "box",
    "round"
   ],
   "x-enumTitles": {
    "box": "Box (square tank, hang-on-back filter)",
    "round": "Drum (round canister, sump cup)"
   },
   "title": "Shape",
   "description": "A box for a square chamber, a drum for a round one.",
   "x-group": "basket",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "box",
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 30,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Width or diameter",
   "description": "Of the basket, 2 mm under the chamber so it drops in.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Platums vai diametrs",
   "default": 120,
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 30,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Depth",
   "description": "Front to back of a box basket.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "basket"
    ],
    "shape": [
     "box"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Dziļums",
   "default": 80,
   "x-resetOnPreset": true
  },
  "height": {
   "type": "number",
   "minimum": 20,
   "maximum": 150,
   "multipleOf": 5,
   "title": "Height",
   "description": "How tall the basket stands, without its handles.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Augstums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "slot": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Slot width",
   "description": "The gaps in the walls. 2 mm for sponge and ceramics, 1 mm to keep a shrimp in. A 0.4 nozzle prints 0.8 cleanly.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraugas platums",
   "default": 2,
   "x-resetOnPreset": true
  },
  "bar": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Bar width",
   "description": "Between the slots. Wider bars make a stiffer basket.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Joslas platums",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Of the walls and the floor. 2 mm suits a basket you lift out wet.",
   "x-group": "basket",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2,
   "x-resetOnPreset": true
  },
  "feet": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Skirt and ribs",
   "description": "A skirt under the floor with ribs across it, so the slotted floor stands off the sump bottom and water flows beneath.",
   "x-group": "basket",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Svārki un ribas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "handle": {
   "type": "string",
   "enum": [
    "ears",
    "rim",
    "none"
   ],
   "x-enumTitles": {
    "ears": "Two handle ears",
    "rim": "Wide rim only",
    "none": "Plain edge"
   },
   "title": "Handle",
   "description": "Two ears with finger holes to lift a full basket, a wide rim to grip, or a plain edge.",
   "x-group": "basket",
   "x-visibleIf": {
    "kind": [
     "basket"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Rokturis",
   "default": "ears",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG in water: it does not soften or cloud a tank. PLA can leach and go brittle soaked; a pond or a saltwater tank asks for ASA.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "The media and the basket.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#1f2937",
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}