{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/action-cam-mount/schema.json",
 "title": "Action cam mount & cage — parameters",
 "description": "Generate 3D-printable protective cages and M5 finger adapters (tripod 1/4-20, handlebar, desk stand) for DJI Osmo Action 4/5 Pro and GoPro HERO13, with a fit 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": "action-cam-mount",
 "x-toolVersion": "1.2.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "cam",
   "title": "Camera body & adapter"
  },
  {
   "id": "fingers",
   "title": "M5 mount fingers (measure)"
  },
  {
   "id": "look",
   "title": "Colour and name tag"
  },
  {
   "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": "measure-your-own",
    "title": "Measure your own action cam",
    "description": "Generic action-cam cage and M5 finger mount: measure your camera and test the finger coupon first.",
    "values": {
     "camWidth": 71,
     "camHeight": 48,
     "camDepth": 33,
     "adapterType": "cage",
     "bodyColor": "#e85d22"
    }
   },
   {
    "id": "fits-dji-osmo-action-5-pro",
    "title": "Fits DJI Osmo Action 5 Pro",
    "description": "Official DJI body dims 70.5×44.2×32.8 mm (146 g). Finger pitch is unpublished — test with fit coupon. Not affiliated with or endorsed by DJI.",
    "values": {
     "camWidth": 70.5,
     "camHeight": 44.2,
     "camDepth": 32.8,
     "adapterType": "cage",
     "bodyColor": "#2563eb"
    }
   },
   {
    "id": "fits-dji-osmo-action-4",
    "title": "Fits DJI Osmo Action 4",
    "description": "Official DJI body dims 70.5×44.2×32.8 mm (145 g). Test M5 fingers with fit coupon. Not affiliated with or endorsed by DJI.",
    "values": {
     "camWidth": 70.5,
     "camHeight": 44.2,
     "camDepth": 32.8,
     "adapterType": "cage",
     "bodyColor": "#15803d"
    }
   },
   {
    "id": "fits-gopro-hero13-black",
    "title": "Fits GoPro HERO13 Black",
    "description": "Body dims 71.8×50.8×33.6 mm (159 g, retailer spec sheet). Test M5 fingers with fit coupon. Not affiliated with or endorsed by GoPro.",
    "values": {
     "camWidth": 71.8,
     "camHeight": 50.8,
     "camDepth": 33.6,
     "adapterType": "cage",
     "bodyColor": "#d97706"
    }
   },
   {
    "id": "handlebar-mount-31-8mm",
    "title": "Bike handlebar mount, 31.8 mm bar",
    "description": "Holds on a 31.8 mm handlebar with two 4.8 mm zip ties. For a 22.2 or 25.4 mm bar change the bar diameter. Print in PETG or ASA and test it before you ride.",
    "values": {
     "adapterType": "handlebar",
     "barDiameter": 31.8,
     "bodyColor": "#0f766e"
    }
   },
   {
    "id": "tripod-adapter-1-4-inch",
    "title": "Tripod adapter for a 1/4-inch screw",
    "description": "Puts the camera's own mount on a photo tripod or a ball head. A 1/4-inch hex nut drops into the pocket under the foot: the pocket takes a nut 11.1 mm across flats and up to 5.5 mm thick, so measure yours.",
    "values": {
     "adapterType": "tripod",
     "bodyColor": "#b91c1c"
    }
   },
   {
    "id": "desk-stand",
    "title": "Desk stand for a camera with its own mount",
    "description": "A 64 × 54 mm base with three fingers: the camera stands on a desk or a shelf. Not for a car dashboard: the base has no screw holes.",
    "values": {
     "adapterType": "desk",
     "bodyColor": "#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"
  },
  "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": {
  "camWidth": {
   "type": "number",
   "minimum": 45,
   "maximum": 95,
   "x-step": 0.1,
   "title": "Camera width",
   "description": "Width of the camera body, without the lens and buttons. The cage adds 1 mm around it.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "adapterType": "cage"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kameras platums",
   "default": 70.5
  },
  "camHeight": {
   "type": "number",
   "minimum": 30,
   "maximum": 70,
   "x-step": 0.1,
   "title": "Camera height",
   "description": "Height of the camera body. The cage adds 1 mm; its two fingers stand on the top edge.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "adapterType": "cage"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kameras augstums",
   "default": 44.2
  },
  "camDepth": {
   "type": "number",
   "minimum": 20,
   "maximum": 50,
   "x-step": 0.1,
   "title": "Camera depth",
   "description": "Depth of the camera body. The cage is an open frame of this depth plus 1 mm, printed flat on its back.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "adapterType": "cage"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kameras biezums",
   "default": 32.8
  },
  "adapterType": {
   "type": "string",
   "enum": [
    "cage",
    "tripod",
    "handlebar",
    "desk"
   ],
   "x-enumTitles": {
    "cage": "Protective cage + M5 fingers",
    "tripod": "1/4\"-20 tripod base adapter",
    "handlebar": "Handlebar clamp mount",
    "desk": "Desk stand adapter"
   },
   "title": "Mount type",
   "description": "Cage: a frame for the camera with two fingers. Tripod, handlebar and desk: a base with three fingers for a camera that has its own mount.",
   "x-group": "cam",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājuma veids",
   "default": "cage"
  },
  "barDiameter": {
   "type": "number",
   "minimum": 20,
   "maximum": 32,
   "x-step": 0.1,
   "title": "Handlebar diameter",
   "description": "Measure your bar. Two 4.8 mm zip ties hold the mount on it.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "adapterType": "handlebar"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stūres diametrs",
   "default": 31.8
  },
  "tripodFit": {
   "type": "string",
   "enum": [
    "nut",
    "thread"
   ],
   "x-enumTitles": {
    "nut": "Hex-nut pocket",
    "thread": "Screw cuts its own thread"
   },
   "title": "How it holds the tripod screw",
   "description": "Hex-nut pocket: a 1/4-inch hex nut drops into a pocket under the foot, and the tripod screw threads into it. Own thread: the screw cuts its thread into the plastic; print 4 walls for it.",
   "x-group": "cam",
   "x-visibleIf": {
    "adapterType": "tripod"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kā tur statīva skrūvi",
   "default": "nut"
  },
  "nutWidth": {
   "type": "number",
   "minimum": 10,
   "maximum": 14,
   "x-step": 0.1,
   "title": "Nut, width across flats",
   "description": "Of the hex nut you will use. 11.1 mm is the usual 1/4-inch hex nut and 12.7 mm a heavy one. Measure yours.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "adapterType": "tripod"
     },
     {
      "tripodFit": "nut"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņa platums pāri skautām",
   "default": 11.1
  },
  "nutHeight": {
   "type": "number",
   "minimum": 4,
   "maximum": 8,
   "x-step": 0.1,
   "title": "Nut thickness",
   "description": "Of the same nut. The pocket is made 0.3 mm deeper, so that the nut bears on its ceiling.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "adapterType": "tripod"
     },
     {
      "tripodFit": "nut"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņa biezums",
   "default": 5.5
  },
  "threadHole": {
   "type": "number",
   "minimum": 5.4,
   "maximum": 6.4,
   "x-step": 0.05,
   "title": "Hole for the screw's own thread",
   "description": "6.0 mm lets a 1/4-inch screw cut its thread into the print. Smaller holds tighter, larger turns more easily.",
   "x-group": "cam",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "adapterType": "tripod"
     },
     {
      "tripodFit": "thread"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Atvere skrūves pašai vītnei",
   "default": 6
  },
  "fingerThick": {
   "type": "number",
   "minimum": 2.5,
   "maximum": 4,
   "x-step": 0.1,
   "title": "Finger thickness (measure)",
   "description": "Thickness of one printed finger. It has to slip into the fork of your camera or mount: try the fit coupon first.",
   "x-group": "fingers",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Zoba biezums",
   "default": 3
  },
  "fingerGap": {
   "type": "number",
   "minimum": 2.8,
   "maximum": 4,
   "x-step": 0.1,
   "title": "Gap between fingers",
   "description": "Space between two fingers. Your camera's tongue has to slip into it: widen it if the coupon jams, narrow it if the joint rattles.",
   "x-group": "fingers",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp zobiem",
   "default": 3.2
  },
  "boltDia": {
   "type": "number",
   "minimum": 4.8,
   "maximum": 6,
   "x-step": 0.1,
   "title": "M5 bolt hole Ø",
   "description": "Diameter of the hole for the M5 bolt (5.0 mm shaft). 5.3 mm slides in by hand; choose less for a tighter joint.",
   "x-group": "fingers",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "M5 skrūves cauruma Ø",
   "default": 5.3
  },
  "includeCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include finger fit-test coupon",
   "description": "A small plate with three fingers, printed beside the part. Try your camera's mount on it before the full print.",
   "x-group": "fingers",
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut M5 pielaides paraugu",
   "default": 1
  },
  "bodyColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Body colour",
   "description": "Colour of the mount and the coupon. In the print colours list each part can get a colour of its own.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa krāsa",
   "default": "#23252b"
  },
  "includeTag": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Add a name tag",
   "description": "A small plate with a hole for a cord, printed in orange so you can find the camera. Change its colour under Print colours.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Pievienot vārda birku",
   "default": 0
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA (cars & UV)",
    "pla": "PLA (indoor only — caution)"
   },
   "title": "Filament (PETG/ASA outdoors)",
   "description": "PETG or ASA for a bike, a helmet or a car. PLA only indoors.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments (PETG/ASA ārā)",
   "default": "petg"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Wall lines. On a bike or a motorbike use 4 or more: the fingers carry the whole camera.",
   "x-group": "print",
   "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 cage. On a bike add walls rather than infill: the fingers give way between the layers.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20
  }
 },
 "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)"
  }
 ]
}