{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/battery-dock/schema.json",
 "title": "Tool battery wall dock — parameters",
 "description": "Generate a 3D-printable 1-6 slot wall dock for Einhell, Bosch 18V, or Makita LXT batteries with editable slide-rail dimensions and a printable fit-test coupon. 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": "battery-dock",
 "x-toolVersion": "1.3.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "rail",
   "title": "Battery & rail (measure to confirm)"
  },
  {
   "id": "rack",
   "title": "Rack & mounting"
  },
  {
   "id": "look",
   "title": "Texture & 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 battery rail",
    "description": "Generic 18V battery rail dock: measure your rail width and groove, print the fit coupon first, then scale to 1–6 slots.",
    "values": {
     "packLength": 118,
     "packWidth": 78,
     "packHeight": 66,
     "railWidth": 54,
     "grooveDepth": 4,
     "grooveHeight": 3.6,
     "slots": 2,
     "color": "#23252b"
    }
   },
   {
    "id": "fits-einhell-pxc-18v",
    "title": "Fits Einhell Power X-Change 18V",
    "description": "Listing outer pack ~121×77×69 mm; rail profile is unpublished — measure and test with the fit coupon first. Not affiliated with or endorsed by Einhell.",
    "values": {
     "packLength": 121,
     "packWidth": 77,
     "packHeight": 69,
     "railWidth": 53,
     "grooveDepth": 4,
     "grooveHeight": 3.5,
     "slots": 2,
     "color": "#c8102e"
    }
   },
   {
    "id": "fits-bosch-professional-18v",
    "title": "Fits Bosch Professional 18V GBA",
    "description": "Rail profile is unpublished — measure your GBA pack and test with the fit coupon first. Not affiliated with or endorsed by Bosch.",
    "values": {
     "packLength": 115,
     "packWidth": 74,
     "packHeight": 56,
     "railWidth": 56,
     "grooveDepth": 4.2,
     "grooveHeight": 3.8,
     "slots": 2,
     "color": "#1f4e9c"
    }
   },
   {
    "id": "fits-bosch-green-18v",
    "title": "Fits Bosch DIY 18V PBA",
    "description": "Listing outer pack ~118×84×65 mm; rail profile is unpublished — test with the fit coupon first. Not affiliated with or endorsed by Bosch.",
    "values": {
     "packLength": 118,
     "packWidth": 84,
     "packHeight": 65,
     "railWidth": 55,
     "grooveDepth": 4,
     "grooveHeight": 3.6,
     "slots": 2,
     "color": "#1f8a4c"
    }
   },
   {
    "id": "fits-makita-lxt-18v",
    "title": "Fits Makita LXT 18V BL1850B",
    "description": "Listing outer pack ~113×75×62 mm; rail profile is unpublished — test with the fit coupon first. Not affiliated with or endorsed by Makita.",
    "values": {
     "packLength": 113,
     "packWidth": 75,
     "packHeight": 62,
     "railWidth": 58,
     "grooveDepth": 4.2,
     "grooveHeight": 3.8,
     "slots": 2,
     "color": "#0a8c96"
    }
   }
  ]
 },
 "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": {
  "packLength": {
   "type": "number",
   "minimum": 70,
   "maximum": 160,
   "multipleOf": 1,
   "title": "Battery pack length",
   "description": "Length of the battery pack, from the terminal end to the back. The back plate is made about two thirds as deep, so the rail reaches well into the groove.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Akumulatora garums",
   "default": 118
  },
  "packWidth": {
   "type": "number",
   "minimum": 55,
   "maximum": 110,
   "multipleOf": 1,
   "title": "Battery pack width",
   "description": "Width of the pack. Slots are placed this wide plus 10 mm, so the batteries do not touch each other.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Akumulatora platums",
   "default": 78
  },
  "packHeight": {
   "type": "number",
   "minimum": 35,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Battery pack height",
   "description": "For your record only: nothing on the dock depends on the height of the pack.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Akumulatora augstums",
   "default": 66
  },
  "railWidth": {
   "type": "number",
   "minimum": 35,
   "maximum": 75,
   "x-step": 0.2,
   "title": "Inner rail width (measure)",
   "description": "Width of the groove along the top of the battery, measured across its opening. The rail is made this wide less the clearance on each side.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Sliedes platums (izmēri)",
   "default": 54
  },
  "grooveDepth": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.2,
   "title": "Rail flange depth (measure)",
   "description": "Depth of that groove: how far the edge of the rail reaches under the edge of the pack on each side.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Sliedes rievas dziļums",
   "default": 4
  },
  "grooveHeight": {
   "type": "number",
   "minimum": 2,
   "maximum": 7,
   "x-step": 0.2,
   "title": "Rail flange thickness",
   "description": "Thickness of the lip inside the groove. It has to be a little less than the groove is tall, or the pack will not slide on.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Sliedes malas biezums",
   "default": 3.6
  },
  "railClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Slide clearance (tune via coupon)",
   "description": "Gap between the rail and the groove on each side. Tune it with the fit coupon: less if the pack wobbles, more if it does not slide.",
   "x-group": "rail",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Slīdēšanas atstarpe",
   "default": 0.35
  },
  "slots": {
   "type": "number",
   "minimum": 1,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Battery slots",
   "description": "Batteries side by side. Two take about 190 mm; past 250 mm the page warns that the plate leaves a small print bed.",
   "x-group": "rack",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Akumulatoru vietu skaits",
   "default": 2
  },
  "wallThickness": {
   "type": "number",
   "minimum": 3,
   "maximum": 7,
   "x-step": 0.5,
   "title": "Wall thickness (>=3 mm)",
   "description": "Thickness of the back plate. It comes out 1.5 mm thicker than this, so that it holds the screws.",
   "x-group": "rack",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienu biezums (>=3 mm)",
   "default": 4
  },
  "includeCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include printable fit-test coupon",
   "description": "A 22 mm piece of the same rail beside the dock. Print it first and try the battery on it before the whole dock.",
   "x-group": "rack",
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut pielaides testa paraugu",
   "default": 1
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "pla": "PLA (indoor cool)"
   },
   "title": "Filament",
   "description": "PETG for a garage or a van and for heavy packs. PLA slowly bends under a hanging battery in a warm room.",
   "x-group": "rack",
   "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. Four or more make the rail solid, and the rail is the part the pack hangs on.",
   "x-group": "rack",
   "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": "20 % is enough for the plate. The rail needs walls rather than infill.",
   "x-group": "rack",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20
  },
  "plateTexture": {
   "type": "string",
   "enum": [
    "none",
    "waves",
    "diamond",
    "hex",
    "wood",
    "hammered",
    "basketweave",
    "folk",
    "dots"
   ],
   "x-enumTitles": {
    "none": "Smooth (none)",
    "waves": "Waves",
    "diamond": "Diamond",
    "hex": "Hexagon",
    "wood": "Wood grain",
    "hammered": "Hammered",
    "basketweave": "Basketweave",
    "folk": "Folk diamond",
    "dots": "Dots"
   },
   "title": "Backplate texture",
   "description": "Carved decorative relief on the visible wall backplate around the battery rails and mounting screw holes. Prints flat without supports.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes plāksnes tekstūra",
   "default": "none"
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.7,
   "x-step": 0.05,
   "title": "Texture depth",
   "description": "Carved depth into the backplate (0.3–0.7 mm).",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "plateTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.5
  },
  "textureScale": {
   "type": "number",
   "minimum": 6,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Pattern repeat pitch in millimetres.",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "plateTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras mērogs",
   "default": 10
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "Colour of the dock. Docks in the colour of your battery system are easy to tell apart on the wall.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#23252b"
  }
 },
 "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)"
  }
 ]
}