{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/fan-shroud/schema.json",
 "title": "Fan shroud, filter & fume extractor — parameters",
 "description": "Generate 3D-printable filter cassettes, finger guards, round duct adapters, and desk fume-extractor stands for Noctua NF-A12x25, NF-A14, ARCTIC P12, or custom fans. 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": "fan-shroud",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "fan",
   "title": "Fan dimensions"
  },
  {
   "id": "shroud",
   "title": "Shroud & filter mode"
  },
  {
   "id": "look",
   "title": "Colour"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "measure-your-own",
    "title": "Measure your own fan",
    "description": "Generic 40–200 mm fan shroud, filter cassette, grill, or duct adapter.",
    "values": {
     "fanSize": 120,
     "holeSpacing": 105,
     "shroudMode": "filter",
     "color": "#23252b"
    }
   },
   {
    "id": "fits-120mm-fan-noctua-nf-a12x25",
    "title": "Fits Noctua NF-A12x25 PWM 120 mm",
    "description": "Official Noctua specs: 120×120×25 mm, 105×105 mm holes, 2.34 mm H2O static pressure. Not affiliated with or endorsed by Noctua.",
    "values": {
     "fanSize": 120,
     "holeSpacing": 105,
     "shroudMode": "filter",
     "color": "#7a5c45"
    }
   },
   {
    "id": "fits-140mm-fan-noctua-nf-a14",
    "title": "Fits Noctua NF-A14 PWM 140 mm",
    "description": "Official Noctua specs: 140×140×25 mm, 124.5×124.5 mm holes, 2.08 mm H2O static pressure. Not affiliated with or endorsed by Noctua.",
    "values": {
     "fanSize": 140,
     "holeSpacing": 124.5,
     "shroudMode": "grill",
     "color": "#c9b79c"
    }
   },
   {
    "id": "fits-120mm-fan-arctic-p12-pro",
    "title": "Fits ARCTIC P12 Pro PST 120 mm",
    "description": "120×120×25 mm fan; hole spacing assumed standard 105 mm — measure to confirm. Not affiliated with or endorsed by ARCTIC.",
    "values": {
     "fanSize": 120,
     "holeSpacing": 105,
     "shroudMode": "fume-stand",
     "color": "#3d5a80"
    }
   }
  ]
 },
 "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"
  },
  "massUnits": {
   "type": "string",
   "title": "Weight shown in",
   "description": "Display only: grams or ounces (1 oz = 28.3495 g). Stored values, the API and exports are always grams.",
   "x-group": "view",
   "x-role": "core.displayMassUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "g",
    "oz"
   ],
   "x-enumTitles": {
    "g": "Grams",
    "oz": "Ounces"
   },
   "default": "g"
  }
 },
 "type": "object",
 "properties": {
  "fanSize": {
   "type": "number",
   "minimum": 40,
   "maximum": 200,
   "multipleOf": 1,
   "title": "Fan outer size",
   "description": "Length of one side of the fan's square frame. 120 and 140 mm are the usual PC sizes; the opening is made 8 mm smaller.",
   "x-group": "fan",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Ventilatora izmērs",
   "default": 120
  },
  "holeSpacing": {
   "type": "number",
   "minimum": 32,
   "maximum": 185,
   "x-step": 0.5,
   "title": "Mounting hole spacing",
   "description": "Distance between the centres of two mounting holes side by side. 105 mm for a 120 mm fan and 124.5 mm for a 140 mm fan; measure any other fan.",
   "x-group": "fan",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Skrūvju caurumu attālums",
   "default": 105
  },
  "screwDia": {
   "type": "number",
   "minimum": 3,
   "maximum": 5.5,
   "x-step": 0.1,
   "title": "Screw hole Ø",
   "description": "Diameter of the four mounting holes. 4.5 mm takes the self-tapping screws that come with PC fans, and an M4 screw turns freely in it.",
   "x-group": "fan",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Skrūves cauruma Ø",
   "default": 4.5
  },
  "shroudMode": {
   "type": "string",
   "enum": [
    "filter",
    "grill",
    "duct",
    "fume-stand"
   ],
   "x-enumTitles": {
    "filter": "Filter cassette",
    "grill": "Finger guard grill",
    "duct": "Round hose duct adapter",
    "fume-stand": "Desk fume-extractor stand"
   },
   "title": "Mode",
   "description": "Filter cassette: a tray for a square filter pad. Grill: a finger guard. Duct: a round collar for a hose. Fume stand: the cassette on a foot, for a desk.",
   "x-group": "shroud",
   "x-agentSafe": true,
   "x-label-lv": "Režīms",
   "default": "filter"
  },
  "filterThickness": {
   "type": "number",
   "minimum": 4,
   "maximum": 25,
   "multipleOf": 1,
   "title": "Filter pad thickness",
   "description": "Thickness of the filter pad. The tray is made 6 mm deeper than this.",
   "x-group": "shroud",
   "x-unit": "mm",
   "x-visibleIf": {
    "shroudMode": [
     "filter",
     "fume-stand"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Filtra biezums",
   "default": 10
  },
  "ductDia": {
   "type": "number",
   "minimum": 40,
   "maximum": 150,
   "multipleOf": 2,
   "title": "Duct hose outer Ø",
   "description": "Outer diameter of the hose. The collar is made exactly this wide inside, so add 0.2 to 0.4 mm if the hose has to slide on. It is capped at the fan size.",
   "x-group": "shroud",
   "x-unit": "mm",
   "x-visibleIf": {
    "shroudMode": "duct"
   },
   "x-agentSafe": true,
   "x-label-lv": "Gaisa vada ārējais Ø",
   "default": 100
  },
  "hepaMedia": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Using dense HEPA filter",
   "description": "Switch on only with a dense HEPA pad: the page then warns that a PC fan moves little air through it. It does not change the part.",
   "x-group": "shroud",
   "x-agentSafe": true,
   "x-label-lv": "Izmanto blīvu HEPA filtru",
   "default": 0
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PLA is fine on a desk. PETG where the part gets warm, for example on the exhaust of a printer enclosure.",
   "x-group": "shroud",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Perimeter lines. Three are enough for a filter cassette; the thin bars of the grill come out as walls anyway.",
   "x-group": "shroud",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 3
  },
  "infill": {
   "type": "integer",
   "minimum": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "15 to 20 % is enough. Nothing here carries a load.",
   "x-group": "shroud",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "Colour of the part. Match the frame of your fan, or the inside of the case.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#23252b"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "noctua-nf-a12x25",
   "title": "Noctua NF-A12x25 PWM 120 mm fan",
   "why": "Exact match for the 120 mm Noctua preset (120×120×25 mm, 105×105 mm holes, 2.34 mm H2O).",
   "url": "https://paramlet.com/go/noctua-nf-a12x25?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "noctua-nf-a14",
   "title": "Noctua NF-A14 PWM 140 mm fan",
   "why": "Exact match for the 140 mm Noctua preset (140×140×25 mm, 124.5×124.5 mm holes, 2.08 mm H2O).",
   "url": "https://paramlet.com/go/noctua-nf-a14?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "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)"
  }
 ]
}