{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/christmas-light-clip/schema.json",
 "title": "Christmas Light Clip — parameters",
 "description": "Make gutter, shingle, soffit and window clips for C7, C9, mini lights or LED strip, sized to the lip, tab or socket you measure. Every plate comes 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": "christmas-light-clip",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "mount",
   "title": "Mount (measure yours)"
  },
  {
   "id": "light",
   "title": "Lights"
  },
  {
   "id": "batch",
   "title": "Batch and fit coupon"
  },
  {
   "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": "gutter-clip-c9-bulbs",
    "title": "Gutter clip for C9 bulbs",
    "description": "Hangs on the rolled front rim of a steel K-style gutter (about 2 mm thick) and holds a C9 socket of about 20 mm with the bulb facing the street. Twelve clips and a fit coupon. Measure the rim and the socket.",
    "values": {
     "mountType": "lip",
     "lipThickness": 2,
     "lipDepth": 8,
     "lightType": "c9",
     "socketDia": 20,
     "count": 12,
     "color": "#b91c1c"
    }
   },
   {
    "id": "gutter-clip-mini-lights",
    "title": "Gutter clip for mini lights",
    "description": "Hook for a 2 mm gutter rim with a spring loop for the 3 mm wire of mini lights, so a bulb sits right at the gutter. Twenty-four on a plate. Measure the rim and the wire.",
    "values": {
     "mountType": "lip",
     "lipThickness": 2,
     "lipDepth": 8,
     "lightType": "wire",
     "wireDia": 3,
     "count": 24,
     "color": "#15803d"
    }
   },
   {
    "id": "half-round-gutter-clip-c9",
    "title": "Half-round gutter clip for C9 (6 mm bead)",
    "description": "For half-round gutters with a rolled bead of about 6 mm on the front edge. The slot is 6 mm wide and the legs reach 10 mm down each side. Measure the bead: copper, aluminium and PVC differ.",
    "values": {
     "mountType": "lip",
     "lipThickness": 6,
     "lipDepth": 10,
     "lightType": "c9",
     "socketDia": 20,
     "count": 12,
     "color": "#d4a017"
    }
   },
   {
    "id": "shingle-tab-clip-c9",
    "title": "Shingle tab clip for C9 bulbs",
    "description": "Slides onto the free tab of an asphalt shingle (about 3.5 mm thick) from the edge of the roof and stands the C9 socket up above the roofline, without a nail or a staple. Measure the shingle.",
    "values": {
     "mountType": "shingle",
     "shingleThickness": 3.5,
     "lightType": "c9",
     "socketDia": 20,
     "count": 12,
     "color": "#1d4ed8"
    }
   },
   {
    "id": "soffit-clip-screw-c9",
    "title": "Soffit or fascia clip for C9 (screw)",
    "description": "A plate with a countersunk hole for one M4 or wood screw, screwed to a fascia board or under the eave, with the C9 socket on top of it. Twelve on a plate.",
    "values": {
     "mountType": "plate",
     "screwHole": true,
     "lightType": "c9",
     "socketDia": 20,
     "count": 12,
     "color": "#7e22ce"
    }
   },
   {
    "id": "window-frame-clip-mini-lights",
    "title": "Window frame clip for mini lights (adhesive)",
    "description": "A plain plate for double-sided exterior tape or adhesive, on a window frame or door frame, with a spring loop for the 3 mm wire of mini lights. Twenty-four on a plate.",
    "values": {
     "mountType": "plate",
     "screwHole": false,
     "lightType": "wire",
     "wireDia": 3,
     "count": 24,
     "color": "#0f766e"
    }
   },
   {
    "id": "gutter-clip-led-strip",
    "title": "Gutter clip for LED strip",
    "description": "Hook for a 2 mm gutter rim with a 24 mm channel that takes a 10 mm LED strip from the end and holds it with the LEDs facing down. Twenty-four on a plate. Measure the rim and the strip.",
    "values": {
     "mountType": "lip",
     "lipThickness": 2,
     "lipDepth": 8,
     "lightType": "strip",
     "stripWidth": 10,
     "count": 24,
     "color": "#be123c"
    }
   },
   {
    "id": "railing-clip-c9",
    "title": "Railing or fence clip for C9 bulbs",
    "description": "Hangs on the flat top rail of a railing or fence 4 mm thick with 25 mm legs on both sides, and holds a C9 socket. A wider 10 mm hook takes the weight of the string. Measure the rail.",
    "values": {
     "mountType": "lip",
     "lipThickness": 4,
     "lipDepth": 25,
     "clipWidth": 10,
     "lightType": "c9",
     "socketDia": 20,
     "count": 12,
     "color": "#047857"
    }
   }
  ]
 },
 "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": {
  "mountType": {
   "type": "string",
   "enum": [
    "lip",
    "shingle",
    "plate"
   ],
   "x-enumTitles": {
    "lip": "Gutter lip, guard edge, rail or roof seam",
    "shingle": "Shingle tab",
    "plate": "Flat surface: screwed or glued"
   },
   "title": "Mount",
   "description": "A lip mount slides over the top edge of a gutter, guard, rail or roof seam. A shingle mount slides onto a free shingle tab. A plate is screwed or glued to a flat surface.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Piestiprinājums",
   "default": "lip",
   "x-resetOnPreset": true
  },
  "lipThickness": {
   "type": "number",
   "minimum": 0.5,
   "maximum": 12,
   "x-step": 0.1,
   "title": "Lip thickness (measure)",
   "description": "How thick the edge is that the clip hangs on, measured across its top: the rolled front rim of a steel gutter is about 2 mm, the bead of a half-round gutter about 6 mm, a standing seam about 9 mm.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "lip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas biezums (izmēri)",
   "default": 2,
   "x-resetOnPreset": true
  },
  "lipDepth": {
   "type": "number",
   "minimum": 4,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Lip depth",
   "description": "How far the legs of the clip reach down each side of the edge. 6 to 8 mm is enough on a stiff gutter; a thin guard or a rail likes 15 mm and more.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "lip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas dziļums",
   "default": 8,
   "x-resetOnPreset": true
  },
  "shingleThickness": {
   "type": "number",
   "minimum": 1.5,
   "maximum": 8,
   "x-step": 0.1,
   "title": "Shingle tab thickness (measure)",
   "description": "Thickness of one shingle where the clip slides onto its tab, away from the glued strip. Most asphalt shingles are 3 to 4 mm.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "shingle"
   },
   "x-agentSafe": true,
   "x-label-lv": "Šindeļa maliņas biezums (izmēri)",
   "default": 3.5,
   "x-resetOnPreset": true
  },
  "screwHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Countersunk screw hole (off: glue it)",
   "description": "On: one hole for a countersunk screw in the back of the plate. Off: a plain plate for double-sided tape or exterior adhesive.",
   "x-group": "mount",
   "x-visibleIf": {
    "mountType": "plate"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurums skrūvei ar konusveida galviņu (izslēgts: līmēt)",
   "default": 1,
   "x-resetOnPreset": true
  },
  "screwDia": {
   "type": "number",
   "minimum": 3,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Screw Ø (shaft)",
   "description": "An M4 screw or a wood screw with a 4 mm shaft. In plaster or brick, use a wall plug.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "core.screwDiameter",
   "x-visibleIf": {
    "all": [
     {
      "mountType": "plate"
     },
     {
      "screwHole": true
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūves Ø (kāts)",
   "default": 4,
   "x-resetOnPreset": true
  },
  "lightType": {
   "type": "string",
   "enum": [
    "c9",
    "c7",
    "wire",
    "strip"
   ],
   "x-enumTitles": {
    "c9": "C9 bulbs (socket Ø 20 mm)",
    "c7": "C7 bulbs (socket Ø 16 mm)",
    "wire": "Mini lights (the wire)",
    "strip": "LED strip"
   },
   "title": "Lights it holds",
   "description": "C7 and C9 strings: the clip holds the socket, the bulb faces away from the house or up. Mini lights: it holds the wire. LED strip: the strip slides into a channel from the end.",
   "x-group": "light",
   "x-agentSafe": true,
   "x-label-lv": "Turētās gaismas",
   "default": "c9",
   "x-resetOnPreset": true
  },
  "socketDia": {
   "type": "number",
   "minimum": 10,
   "maximum": 30,
   "x-step": 0.5,
   "title": "Socket diameter (measure)",
   "description": "The socket on the string, not the bulb base: about 20 mm on C9 strings and 16 mm on C7 strings. Measure yours; it differs between makers.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightType": [
     "c7",
     "c9"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Patronas diametrs (izmēri)",
   "default": 20,
   "x-resetOnPreset": true
  },
  "wireDia": {
   "type": "number",
   "minimum": 1,
   "maximum": 8,
   "x-step": 0.1,
   "title": "Wire diameter (measure)",
   "description": "Across the thickest part of the wire. Most mini-light wires are 2.5 to 3.5 mm.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightType": "wire"
   },
   "x-agentSafe": true,
   "x-label-lv": "Vada diametrs (izmēri)",
   "default": 3,
   "x-resetOnPreset": true
  },
  "stripWidth": {
   "type": "number",
   "minimum": 5,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Strip width",
   "description": "Most LED strips are 8 or 10 mm wide. The channel takes it with a little room and holds it from above, so the LEDs face down.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightType": "strip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Lentes platums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Fit clearance",
   "description": "Room in the slot or the cup beyond what you measured. 0.3 mm slides on; less grips more; the fit coupon shows which one holds.",
   "x-group": "light",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.3,
   "x-resetOnPreset": true
  },
  "snapOpening": {
   "type": "number",
   "minimum": 60,
   "maximum": 90,
   "multipleOf": 1,
   "title": "Snap opening (% of what it holds)",
   "description": "Width of the mouth the socket or wire is pushed through, as a share of its diameter. Narrow holds better, wide goes in easier; 80 % suits most.",
   "x-group": "light",
   "x-unit": "pct",
   "x-visibleIf": {
    "lightType": [
     "c7",
     "c9",
     "wire"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Aizdaušanas atvere (% no turamā)",
   "default": 80,
   "x-resetOnPreset": true
  },
  "count": {
   "type": "integer",
   "minimum": 1,
   "maximum": 24,
   "multipleOf": 1,
   "title": "Clips on the plate",
   "description": "Loose clips side by side. Print a few more than you need: one always ends up in the hedge.",
   "x-group": "batch",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Turētāji uz plātnes",
   "default": 12,
   "x-resetOnPreset": true
  },
  "includeCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include fit coupon",
   "description": "Three single mounts on one strip, at −0.15, 0 and +0.15 mm of clearance: the tight one on the left. Print it first and use the setting of the one that slides on and stays.",
   "x-group": "batch",
   "x-visibleIf": {
    "mountType": [
     "lip",
     "shingle"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut pielaides paraugu",
   "default": 1,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3.2,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Six 0.4 mm lines at 2.4 mm: stiff enough for the hook, still springy enough for the cup to take the socket. Thin walls flex more; thick ones keep their shape.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2.4
  },
  "clipWidth": {
   "type": "number",
   "minimum": 5,
   "maximum": 14,
   "multipleOf": 1,
   "title": "Hook width (along the gutter)",
   "description": "How wide the hook is along the gutter. 8 mm holds a string; take 12 mm for a heavy C9 string or a wide rail.",
   "x-group": "print",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "lip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Āķa platums (gar notaku)",
   "default": 8,
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (outdoors)",
    "asa": "ASA (outdoors, full sun)",
    "pla": "PLA (indoors only)"
   },
   "title": "Filament",
   "description": "PETG for a winter outside; ASA where the sun hits and for many seasons. PLA goes brittle in frost and fades in the sun: keep it for a trial fit on the ground.",
   "x-group": "print",
   "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. The cup has to flex a little when the socket goes in: three or four lines make it springy without snapping.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4
  },
  "infill": {
   "type": "integer",
   "minimum": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "The walls do the work; 20 to 30 % is enough.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 30
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "Take the colour of the gutter, the trim or the roof: the clips disappear.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#2d6a4f"
  }
 },
 "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": "led-tealight-candles",
   "title": "Flameless Warm-White LED Tealight Candles with Timer (24 pack)",
   "why": "Safe 38 mm flameless LED tealights sized for 3D-printed lanterns and trees.",
   "url": "https://paramlet.com/go/led-tealight-candles?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}