{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/hose-adapter/schema.json",
 "title": "Vacuum and hose adapter — parameters",
 "description": "Measure two ends and print an adapter that fits: vacuum and shop-vac hoses, tool dust ports, washing machine drains, dryer vents and DN pipes. 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": "hose-adapter",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "endA",
   "title": "End A (first side)"
  },
  {
   "id": "endB",
   "title": "End B (second side)"
  },
  {
   "id": "middle",
   "title": "Middle section"
  },
  {
   "id": "print",
   "title": "Walls and printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "shopvac-35-to-32",
    "title": "Shop vacuum 35 mm hose to 32 mm hose",
    "description": "Join a 35 mm vacuum hose to a 32 mm one with a barbed spigot on each end.",
    "values": {
     "aDiameter": 35,
     "aMeasureAs": "outer",
     "aLength": 30,
     "aTaper": 0.4,
     "aBarbs": true,
     "aStopFlange": false,
     "screwFlange": false,
     "bDiameter": 32,
     "bMeasureAs": "outer",
     "bLength": 28,
     "bTaper": 0.4,
     "bBarbs": true,
     "bStopFlange": false,
     "middleStyle": "straight",
     "middleLength": 14,
     "color": "#3b82f6"
    }
   },
   {
    "id": "shopvac-32-to-27",
    "title": "Shop vacuum 32 mm hose to 27 mm port",
    "description": "Barbed spigot that pushes into a 32 mm vacuum hose, stepping to a socket that slips over a 27 mm tool port.",
    "values": {
     "aDiameter": 32,
     "aMeasureAs": "outer",
     "aLength": 28,
     "aTaper": 0.4,
     "aBarbs": true,
     "aStopFlange": false,
     "screwFlange": false,
     "bDiameter": 27,
     "bMeasureAs": "inner",
     "bLength": 24,
     "bTaper": 0.4,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "straight",
     "middleLength": 14,
     "color": "#f59e0b"
    }
   },
   {
    "id": "shopvac-2-5in-to-1-25in",
    "title": "Shop-vac 2.5 inch hose to 1.25 inch tools",
    "description": "Barbed spigot into a 2.5\" (63.5 mm) shop-vac hose, socket for 1.25\" (32 mm) accessories.",
    "values": {
     "aDiameter": 63.5,
     "aMeasureAs": "outer",
     "aLength": 35,
     "aTaper": 0.5,
     "aBarbs": true,
     "aStopFlange": true,
     "screwFlange": false,
     "bDiameter": 32,
     "bMeasureAs": "inner",
     "bLength": 28,
     "bTaper": 0.4,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "taper",
     "middleLength": 20,
     "color": "#ef4444"
    }
   },
   {
    "id": "dust-collection-100-to-58",
    "title": "Dust collection 100 mm hose to 58 mm port",
    "description": "Socket over a 100 mm dust-collection hose, smooth taper to a socket over a 58 mm saw or planer port.",
    "values": {
     "aDiameter": 100,
     "aMeasureAs": "inner",
     "aLength": 40,
     "aTaper": 0.6,
     "aBarbs": false,
     "aStopFlange": true,
     "screwFlange": false,
     "bDiameter": 58,
     "bMeasureAs": "inner",
     "bLength": 32,
     "bTaper": 0.5,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "taper",
     "middleLength": 30,
     "color": "#16a34a"
    }
   },
   {
    "id": "washing-machine-hose-to-dn40",
    "title": "Washing machine drain hose to DN40 pipe",
    "description": "Barbed spigot into a 22 mm drain hose, spigot that pushes into a DN40 (40 mm) waste-pipe socket with its rubber seal.",
    "values": {
     "aDiameter": 22,
     "aMeasureAs": "outer",
     "aLength": 30,
     "aTaper": 0.4,
     "aBarbs": true,
     "aStopFlange": true,
     "screwFlange": false,
     "bDiameter": 40,
     "bMeasureAs": "outer",
     "bLength": 40,
     "bTaper": 0.3,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "taper",
     "middleLength": 16,
     "color": "#94a3b8"
    }
   },
   {
    "id": "dryer-vent-100-to-110",
    "title": "Dryer vent hose 100 mm to 110 mm duct",
    "description": "Spigot into a 100 mm dryer or extractor hose, spigot into a 110 mm wall duct or DN110 pipe.",
    "values": {
     "aDiameter": 100,
     "aMeasureAs": "outer",
     "aLength": 35,
     "aTaper": 0.5,
     "aBarbs": true,
     "aStopFlange": false,
     "screwFlange": false,
     "bDiameter": 110,
     "bMeasureAs": "outer",
     "bLength": 35,
     "bTaper": 0.4,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "taper",
     "middleLength": 12,
     "color": "#e5e7eb"
    }
   },
   {
    "id": "dn50-to-dn40-reducer",
    "title": "DN50 to DN40 pipe reducer",
    "description": "Spigot into a DN50 socket, socket over a DN40 pipe end: for drain and waste-pipe repairs.",
    "values": {
     "aDiameter": 50,
     "aMeasureAs": "outer",
     "aLength": 40,
     "aTaper": 0.3,
     "aBarbs": false,
     "aStopFlange": true,
     "screwFlange": false,
     "bDiameter": 40,
     "bMeasureAs": "inner",
     "bLength": 35,
     "bTaper": 0.3,
     "bBarbs": false,
     "bStopFlange": true,
     "middleStyle": "taper",
     "middleLength": 16,
     "color": "#c2410c"
    }
   },
   {
    "id": "elbow-32-90",
    "title": "Elbow 32 mm, 90 degrees",
    "description": "Right-angle turn for a 32 mm vacuum hose with a barbed spigot on both arms; prints standing on one arm, and the outer bend leans past 45 degrees.",
    "values": {
     "aDiameter": 32,
     "aMeasureAs": "outer",
     "aLength": 26,
     "aTaper": 0.4,
     "aBarbs": true,
     "aStopFlange": false,
     "screwFlange": false,
     "bDiameter": 32,
     "bMeasureAs": "outer",
     "bLength": 26,
     "bTaper": 0.4,
     "bBarbs": true,
     "bStopFlange": false,
     "middleStyle": "elbow",
     "middleLength": 34,
     "elbowAngle": 90,
     "color": "#7c3aed"
    }
   }
  ]
 },
 "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": {
  "aDiameter": {
   "type": "number",
   "minimum": 8,
   "maximum": 130,
   "x-step": 0.1,
   "title": "End A measured diameter",
   "description": "What your calipers read on the part that mates with end A: a socket keeps this as its inner bore, a spigot keeps this as its outer face.",
   "x-group": "endA",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "A gala izmērītais diametrs",
   "default": 32,
   "x-resetOnPreset": true
  },
  "aMeasureAs": {
   "type": "string",
   "enum": [
    "inner",
    "outer"
   ],
   "x-enumTitles": {
    "inner": "Socket — part slides inside",
    "outer": "Spigot — hose slides over"
   },
   "title": "End A mates as",
   "description": "Socket: the wall grows outward from your measurement, so the bore equals the outer diameter you measured. Spigot: the outer face equals your measurement and slides into a hose bore.",
   "x-group": "endA",
   "x-agentSafe": true,
   "x-label-lv": "A gala savienojums",
   "default": "outer",
   "x-resetOnPreset": true
  },
  "aLength": {
   "type": "number",
   "minimum": 10,
   "maximum": 80,
   "x-step": 0.5,
   "title": "End A sleeve length",
   "description": "How deep the hose or port seats on end A; 20 to 35 mm grips a vacuum hose well.",
   "x-group": "endA",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "A gala manžetes garums",
   "default": 28,
   "x-resetOnPreset": true
  },
  "aTaper": {
   "type": "number",
   "minimum": 0,
   "maximum": 3,
   "x-step": 0.1,
   "title": "End A grip taper",
   "description": "Opens the mouth of end A by this many mm on the fit face so the hose starts easy and wedges tight at depth; 0 is a straight cylinder.",
   "x-group": "endA",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "A gala koniskums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "aBarbs": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "End A grip ribs",
   "description": "Rounded barb rings on the fit face of end A (inside a socket, outside a spigot) that grip a flexible hose; each ring slopes 45 degrees so it prints without supports.",
   "x-group": "endA",
   "x-agentSafe": true,
   "x-label-lv": "A gala satverošās ribas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "aStopFlange": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "End A stop ring",
   "description": "A ring at the base of end A so the hose cannot slide past the sleeve: a shoulder inside a socket, a collar outside a spigot.",
   "x-group": "endA",
   "x-agentSafe": true,
   "x-label-lv": "A gala atdures gredzens",
   "default": 0,
   "x-resetOnPreset": true
  },
  "screwFlange": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Bolt-on mounting plate on end A",
   "description": "Adds a flat plate with four 5.2 mm bolt holes and a 45-degree support skirt under its rim around the base of end A, for bolting the adapter to a wall, hood or machine face.",
   "x-group": "endA",
   "x-agentSafe": true,
   "x-label-lv": "Skrūvējamā montāžas plate uz A gala",
   "default": 0,
   "x-resetOnPreset": true
  },
  "bDiameter": {
   "type": "number",
   "minimum": 8,
   "maximum": 130,
   "x-step": 0.1,
   "title": "End B measured diameter",
   "description": "What your calipers read on the part that mates with end B; measure in the same place the hose or port will actually seat.",
   "x-group": "endB",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "B gala izmērītais diametrs",
   "default": 27,
   "x-resetOnPreset": true
  },
  "bMeasureAs": {
   "type": "string",
   "enum": [
    "inner",
    "outer"
   ],
   "x-enumTitles": {
    "inner": "Socket — part slides inside",
    "outer": "Spigot — hose slides over"
   },
   "title": "End B mates as",
   "description": "Socket: the wall grows outward from your measurement, so the sleeve slips over a port or hose end of that outer diameter. Spigot: the outer face equals it and pushes into a hose bore.",
   "x-group": "endB",
   "x-agentSafe": true,
   "x-label-lv": "B gala savienojums",
   "default": "inner",
   "x-resetOnPreset": true
  },
  "bLength": {
   "type": "number",
   "minimum": 10,
   "maximum": 80,
   "x-step": 0.5,
   "title": "End B sleeve length",
   "description": "How deep the hose or port seats on end B; keep it short when space is tight.",
   "x-group": "endB",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "B gala manžetes garums",
   "default": 24,
   "x-resetOnPreset": true
  },
  "bTaper": {
   "type": "number",
   "minimum": 0,
   "maximum": 3,
   "x-step": 0.1,
   "title": "End B grip taper",
   "description": "Opens the mouth of end B on the fit face so the mating part starts easy; 0 is a straight cylinder.",
   "x-group": "endB",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "B gala koniskums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "bBarbs": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "End B grip ribs",
   "description": "Rounded barb rings on the fit face of end B; leave them off when end B seats on a rigid port.",
   "x-group": "endB",
   "x-agentSafe": true,
   "x-label-lv": "B gala satverošās ribas",
   "default": 0,
   "x-resetOnPreset": true
  },
  "bStopFlange": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "End B stop ring",
   "description": "A ring at the base of end B so the mating hose cannot slide past the sleeve.",
   "x-group": "endB",
   "x-agentSafe": true,
   "x-label-lv": "B gala atdures gredzens",
   "default": 0,
   "x-resetOnPreset": true
  },
  "middleStyle": {
   "type": "string",
   "enum": [
    "straight",
    "taper",
    "elbow"
   ],
   "x-enumTitles": {
    "straight": "Straight step",
    "taper": "Smooth taper",
    "elbow": "Elbow"
   },
   "title": "Middle style",
   "description": "Straight is a short step between the sleeves, taper is a smooth flaring cone for better flow, elbow turns the hose by the angle below.",
   "x-group": "middle",
   "x-agentSafe": true,
   "x-label-lv": "Vidusdaļas veids",
   "default": "straight",
   "x-resetOnPreset": true
  },
  "middleLength": {
   "type": "number",
   "minimum": 4,
   "maximum": 60,
   "x-step": 0.5,
   "title": "Middle length",
   "description": "Length of the transition, or the bend length for an elbow; longer tapers step down more gently and print cleaner.",
   "x-group": "middle",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Vidusdaļas garums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "elbowAngle": {
   "type": "number",
   "minimum": 30,
   "maximum": 90,
   "multipleOf": 1,
   "title": "Elbow angle",
   "description": "Turn angle between the two sleeves; 45 degrees or less prints standing on end A without supports, steeper angles lean out past 45 degrees and need care or supports.",
   "x-group": "middle",
   "x-unit": "deg",
   "x-visibleIf": {
    "middleStyle": "elbow"
   },
   "x-agentSafe": true,
   "x-label-lv": "Elkoņa leņķis",
   "default": 45,
   "x-resetOnPreset": true
  },
  "fitClearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Socket clearance (per side)",
   "description": "Extra room inside sockets so the port slides in; the grip taper still tightens it. 0.1 mm suits most printers.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Lodzes pielaide (katrā pusē)",
   "default": 0.1
  },
  "fitTest": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit test print (10 mm ends)",
   "description": "A short test ring for both ends: about 10 minutes of printing to check the fit before the full adapter.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Pielaikošanas izdruka (10 mm gali)",
   "default": 0
  },
  "wallThickness": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 5,
   "x-step": 0.1,
   "title": "Wall thickness",
   "description": "Wall of both sleeves, added on the free side of each fit face (outward on a socket, inward on a spigot) so the measured fit stays exact; 2.2 mm suits vacuum use, keep 1.6 mm or more for stiff hoses.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2.2,
   "x-resetOnPreset": true
  },
  "barbHeight": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 2.5,
   "x-step": 0.1,
   "title": "Grip rib height",
   "description": "How far each barb ring stands out from the fit face; 0.6 to 1.0 mm grips most flexible hoses without making them hard to push on.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Ribu augstums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "gripTexture": {
   "type": "string",
   "enum": [
    "none",
    "knurl",
    "ribs",
    "diamond",
    "hex",
    "waves",
    "hammered",
    "basketweave",
    "folk"
   ],
   "x-enumTitles": {
    "none": "Smooth (none)",
    "knurl": "Diamond knurl",
    "ribs": "Vertical ribs",
    "diamond": "Diamond",
    "hex": "Hexagon",
    "waves": "Waves",
    "hammered": "Hammered",
    "basketweave": "Basketweave",
    "folk": "Folk diamond"
   },
   "title": "Socket outer grip texture",
   "description": "3D cylindrical non-slip grip carved into the outside of socket sleeves for easy hand-twisting (spigot outer fit faces stay smooth; prints without supports).",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Lodzes ārsienas satvēriena tekstūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.25,
   "maximum": 0.55,
   "x-step": 0.05,
   "title": "Texture depth",
   "description": "Carved depth into the socket outer wall (0.25–0.55 mm; automatically keeps at least 1 mm solid wall).",
   "x-group": "print",
   "x-unit": "mm",
   "x-visibleIf": {
    "gripTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 4,
   "maximum": 14,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Pattern repeat pitch in millimetres.",
   "x-group": "print",
   "x-unit": "mm",
   "x-visibleIf": {
    "gripTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras mērogs",
   "default": 6,
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla",
    "tpu"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA (warm shops)",
    "pla": "PLA (fit check only)",
    "tpu": "TPU (soft seal)"
   },
   "title": "Print material",
   "description": "Only changes the material note and the estimated mass readout, not the mesh; PETG is the all-round choice for vacuum and dust hoses.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 24,
   "maximum": 96,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around the sleeves; higher is smoother and slightly larger in file size.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 48
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview colour in the viewer, never the exported model.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": false,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#3b82f6"
  }
 },
 "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)"
  },
  {
   "id": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}