{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/brine-shrimp-hatchery/schema.json",
 "title": "Brine shrimp hatchery stand — parameters",
 "description": "3D print an artemia hatchery for an upside-down PET bottle: funnel stand with valve access, spiral LED ring, vented lid, sized to your bottle. 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": "brine-shrimp-hatchery",
 "x-toolVersion": "1.3.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "bottle",
   "title": "Bottle"
  },
  {
   "id": "stand",
   "title": "Stand"
  },
  {
   "id": "airline",
   "title": "Air line"
  },
  {
   "id": "led",
   "title": "LED ring"
  },
  {
   "id": "wire",
   "title": "LED wire"
  },
  {
   "id": "lid",
   "title": "Lid"
  },
  {
   "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": "eu-2l-bottle",
    "title": "2 L bottle, 30 cm round (EU)",
    "description": "The original build: 95.5 mm bottle, LED ring with 5 turns (about 1.7 m of strip) and a vented lid.",
    "values": {
     "bottleDiameter": 95.5,
     "color": "#0e7490",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "us-2l-bottle",
    "title": "2 L bottle, 108 mm (US)",
    "description": "Wider US-style 2 L bottle (13.4 in round) on a 176 mm base.",
    "values": {
     "bottleDiameter": 108,
     "baseDiameter": 176,
     "color": "#0d9488",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "bottle-1-5l",
    "title": "1.5 L bottle",
    "description": "Slimmer 1.5 L bottle (about 89 mm), lower stand and a 4-turn LED ring.",
    "values": {
     "bottleDiameter": 89,
     "standHeight": 165,
     "baseDiameter": 150,
     "ledTurns": 4,
     "color": "#2563eb",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "tall-harvest",
    "title": "Tall stand for a harvest cup",
    "description": "120 mm under the neck for a sieve or cup, wider 186 mm base for stability.",
    "values": {
     "standHeight": 205,
     "neckSpace": 120,
     "baseDiameter": 186,
     "color": "#059669",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "compact-no-led",
    "title": "Compact stand without LED",
    "description": "Low stand and lid only, for a hatchery lit by a desk lamp.",
    "values": {
     "standHeight": 150,
     "neckSpace": 72,
     "funnelHeight": 55,
     "includeLedRing": false,
     "color": "#0284c7",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "slim-led-strip",
    "title": "Thin 8 mm LED strip",
    "description": "Groove for a bare 8 mm strip (3 mm thick), 6 turns.",
    "values": {
     "ledWidth": 8,
     "ledThickness": 3,
     "ledTurns": 6,
     "color": "#7c3aed",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "one-metre-strip",
    "title": "One metre of LED strip",
    "description": "The ring is made for a whole 1 m strip: about 3 turns on a 95.5 mm bottle, the height follows. The wire leaves beside the air line.",
    "values": {
     "ledSizing": "cm100",
     "wireSide": "airline",
     "color": "#e85d22",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "feeding-lid",
    "title": "Lid with air line and feeding hole",
    "description": "The air line goes in through the middle of the lid instead of the cap, with a 12 mm hole beside it for eggs and a pipette.",
    "values": {
     "lidType": "feed",
     "color": "#15803d",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "cone-lid-airline",
    "title": "Conical lid with air-line chimney",
    "description": "Support-free conical lid that directs spray back into the bottle, with a narrow 10 mm centre chimney for a 4/6 mm air line.",
    "values": {
     "lidType": "cone",
     "coneHeight": 32,
     "chimneyDiameter": 10,
     "chimneyHeight": 18,
     "coneVents": 0,
     "color": "#0891b2",
     "trimColor": "#f3efe6"
    }
   },
   {
    "id": "cone-lid-light-window",
    "title": "Conical lid with wide top window",
    "description": "Steeper conical hood with a 24 mm centre chimney for a desk lamp beam or feeding pipette plus 4 side vents.",
    "values": {
     "lidType": "cone",
     "coneHeight": 40,
     "chimneyDiameter": 24,
     "chimneyHeight": 16,
     "coneVents": 4,
     "color": "#d97706",
     "trimColor": "#f3efe6"
    }
   }
  ]
 },
 "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": {
  "bottleDiameter": {
   "type": "number",
   "minimum": 60,
   "maximum": 130,
   "x-step": 0.5,
   "title": "Bottle diameter",
   "description": "Outside diameter of the bottle body. A 30 cm circumference is 95.5 mm; a US 2 L bottle is about 108 mm.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pudeles diametrs",
   "default": 95.5
  },
  "clearance": {
   "type": "number",
   "minimum": 1,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Gap round the bottle",
   "description": "Free space on each side between the bottle and the stand and LED ring.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe ap pudeli",
   "default": 2.5
  },
  "standHeight": {
   "type": "number",
   "minimum": 130,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Stand height",
   "description": "Height of the stand from the table to its top rim.",
   "x-group": "stand",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Statīva augstums",
   "default": 175
  },
  "baseDiameter": {
   "type": "number",
   "minimum": 120,
   "maximum": 240,
   "multipleOf": 1,
   "title": "Base diameter",
   "description": "A wider base stands more steadily with a full bottle (about 2 kg).",
   "x-group": "stand",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes diametrs",
   "default": 162
  },
  "neckSpace": {
   "type": "number",
   "minimum": 50,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Space under the neck",
   "description": "Height from the table to the bottom of the funnel: room for the cap, valve and a collecting cup.",
   "x-group": "stand",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Vieta zem kakla",
   "default": 90
  },
  "neckOpening": {
   "type": "number",
   "minimum": 30,
   "maximum": 70,
   "multipleOf": 1,
   "title": "Funnel opening",
   "description": "Diameter of the hole the neck and cap pass through. Make it wider than the cap.",
   "x-group": "stand",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Piltuves atvere",
   "default": 48
  },
  "funnelHeight": {
   "type": "number",
   "minimum": 30,
   "maximum": 100,
   "multipleOf": 1,
   "title": "Funnel height",
   "description": "Height of the cone the bottle shoulder rests in.",
   "x-group": "stand",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Piltuves augstums",
   "default": 60
  },
  "wallThickness": {
   "type": "number",
   "minimum": 2.5,
   "maximum": 6,
   "x-step": 0.5,
   "title": "Wall thickness",
   "description": "Wall of the stand and funnel; 3–4 mm is stiff in PETG.",
   "x-group": "stand",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 3.5
  },
  "windowCount": {
   "type": "integer",
   "minimum": 0,
   "maximum": 4,
   "multipleOf": 1,
   "title": "Windows",
   "description": "Pointed-arch windows give access to the valve and room for a cup. They print without supports.",
   "x-group": "stand",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Logi",
   "default": 3
  },
  "airlineNotch": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Notch in the base",
   "description": "An arched opening in the base where the air line comes in from the table.",
   "x-group": "airline",
   "x-agentSafe": true,
   "x-label-lv": "Izgriezums pamatnē",
   "default": 1
  },
  "airlineClip": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Snap clip inside",
   "description": "A snap clip on the inside wall holds the air line in place.",
   "x-group": "airline",
   "x-agentSafe": true,
   "x-label-lv": "Klipsis iekšpusē",
   "default": 1
  },
  "airlineDiameter": {
   "type": "number",
   "minimum": 4,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Air line outside diameter",
   "description": "Standard aquarium air line is 4/6 mm (6 mm outside).",
   "x-group": "airline",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "airlineNotch": true
     },
     {
      "airlineClip": true
     },
     {
      "lidType": "feed"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Trubiņas ārējais diametrs",
   "default": 6
  },
  "includeLedRing": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Make the LED ring",
   "description": "A ring glued on the stand rim with a spiral groove for an LED strip, lighting the bottle from the side.",
   "x-group": "led",
   "x-agentSafe": true,
   "x-label-lv": "Veidot LED gredzenu",
   "default": 1
  },
  "ledSizing": {
   "type": "string",
   "enum": [
    "turns",
    "cm50",
    "cm100",
    "cm150",
    "cm200",
    "custom"
   ],
   "x-enumTitles": {
    "turns": "Number of turns",
    "cm50": "A strip 50 cm long",
    "cm100": "A strip 100 cm long",
    "cm150": "A strip 150 cm long",
    "cm200": "A strip 200 cm long",
    "custom": "A strip of another length"
   },
   "title": "Ring size from",
   "description": "Number of turns: you set how many times the strip goes round. A strip length: the ring is made to take the whole strip, on any bottle.",
   "x-group": "led",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Gredzena izmērs pēc",
   "default": "turns"
  },
  "ledWidth": {
   "type": "number",
   "minimum": 5,
   "maximum": 16,
   "x-step": 0.5,
   "title": "LED strip width",
   "description": "Width of the strip or silicone tube; the groove is 1 mm taller.",
   "x-group": "led",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "LED lentas platums",
   "default": 10
  },
  "ledThickness": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.5,
   "title": "LED strip thickness",
   "description": "The groove is 0.5 mm deeper than this.",
   "x-group": "led",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "LED lentas biezums",
   "default": 6
  },
  "ledTurns": {
   "type": "integer",
   "minimum": 1,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Turns",
   "description": "Turns of the spiral; the panel shows how much strip fits.",
   "x-group": "led",
   "x-unit": "count",
   "x-visibleIf": {
    "includeLedRing": true,
    "ledSizing": "turns"
   },
   "x-agentSafe": true,
   "x-label-lv": "Apļi",
   "default": 5
  },
  "ledStripLength": {
   "type": "integer",
   "minimum": 200,
   "maximum": 6000,
   "multipleOf": 10,
   "title": "Strip length",
   "description": "Length of the strip you have, in mm: 1000 mm is 1 m. The ring gets as many turns as it takes to use it all.",
   "x-group": "led",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLedRing": true,
    "ledSizing": "custom"
   },
   "x-agentSafe": true,
   "x-label-lv": "Lentas garums",
   "default": 1000
  },
  "wireEntry": {
   "type": "string",
   "enum": [
    "bottom",
    "top"
   ],
   "x-enumTitles": {
    "bottom": "At the bottom of the ring",
    "top": "At the top of the ring"
   },
   "title": "The lead leaves",
   "description": "At the bottom: the strip starts at the bottom of the ring. At the top: the groove starts at the top, so the lead goes straight up.",
   "x-group": "wire",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Vads iziet",
   "default": "bottom"
  },
  "wireSide": {
   "type": "string",
   "enum": [
    "front",
    "airline",
    "angle"
   ],
   "x-enumTitles": {
    "front": "Opposite the air line",
    "airline": "Beside the air line",
    "angle": "At an angle"
   },
   "title": "Side of the ring",
   "description": "Counted from the air line. Beside the air line the wire can run down the closed wall of the stand, between two windows.",
   "x-group": "wire",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Puse ap gredzenu",
   "default": "front"
  },
  "wireAngle": {
   "type": "integer",
   "minimum": 0,
   "maximum": 345,
   "multipleOf": 15,
   "title": "Angle from the air line",
   "description": "0° is beside the air line, 180° opposite it. The slot turns with it in the preview.",
   "x-group": "wire",
   "x-unit": "deg",
   "x-visibleIf": {
    "includeLedRing": true,
    "wireSide": "angle"
   },
   "x-agentSafe": true,
   "x-label-lv": "Lenķis no gaisa trubiņas",
   "default": 0
  },
  "wireSlot": {
   "type": "number",
   "minimum": 8,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Slot length for the lead",
   "description": "Length of the opening the strip and its lead come in through. 14 mm takes soldered wires; make it longer for a plug.",
   "x-group": "wire",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLedRing": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraugas garums vadam",
   "default": 14
  },
  "includeLid": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Make the lid",
   "description": "A lid that sits on the cut bottle edge and keeps out dust and splashes.",
   "x-group": "lid",
   "x-agentSafe": true,
   "x-label-lv": "Veidot vāku",
   "default": 1
  },
  "lidType": {
   "type": "string",
   "enum": [
    "vented",
    "solid",
    "feed",
    "low",
    "cone"
   ],
   "x-enumTitles": {
    "vented": "Vented",
    "solid": "Solid splash guard",
    "feed": "Air line and feeding hole",
    "low": "Low rim",
    "cone": "Conical lid with chimney"
   },
   "title": "Lid type",
   "description": "Vented: the usual hatchery lid. Solid: a splash guard without holes. Air line and feeding hole: for air from above. Low rim: 6 mm high.",
   "x-group": "lid",
   "x-visibleIf": {
    "includeLid": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka veids",
   "default": "vented"
  },
  "coneHeight": {
   "type": "number",
   "minimum": 18,
   "maximum": 65,
   "multipleOf": 1,
   "title": "Cone height",
   "description": "Vertical height of the conical hood above the bottle rim (steeper than 45° prints without supports).",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": "cone"
   },
   "x-agentSafe": true,
   "x-label-lv": "Konusa augstums",
   "default": 32
  },
  "chimneyDiameter": {
   "type": "number",
   "minimum": 6,
   "maximum": 32,
   "multipleOf": 1,
   "title": "Chimney bore diameter",
   "description": "Inner diameter of the top centre chimney: 8–14 mm for a 4/6 mm airline, or 22–30 mm for a harvest light window.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": "cone"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skursteņa iekšējais diametrs",
   "default": 12
  },
  "chimneyHeight": {
   "type": "number",
   "minimum": 8,
   "maximum": 35,
   "multipleOf": 1,
   "title": "Chimney height",
   "description": "Height of the vertical centre chimney tube rising above the cone.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": "cone"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skursteņa augstums",
   "default": 18
  },
  "coneVents": {
   "type": "integer",
   "minimum": 0,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Cone side vents",
   "description": "Optional side vent holes around the cone for passive airflow without an air pump.",
   "x-group": "lid",
   "x-unit": "count",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": "cone"
   },
   "x-agentSafe": true,
   "x-label-lv": "Konusa sānu ventilācijas atveres",
   "default": 0
  },
  "feedHole": {
   "type": "number",
   "minimum": 8,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Feeding hole Ø",
   "description": "Hole beside the air line for eggs, a pipette or a small funnel. It is made smaller if the lid has no room for it.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": "feed"
   },
   "x-agentSafe": true,
   "x-label-lv": "Barošanas atvere Ø",
   "default": 12
  },
  "lidSlot": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 3,
   "x-step": 0.05,
   "title": "Rim slot width",
   "description": "Width of the groove the cut bottle edge sits in.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Malas rievas platums",
   "default": 1.25
  },
  "lidSkirt": {
   "type": "number",
   "minimum": 8,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Lid skirt height",
   "description": "How far the outer skirt reaches down the bottle.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "includeLid": true,
    "lidType": {
     "ne": "low"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Vāka apmales augstums",
   "default": 16
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA",
    "pla": "PLA (fit check only)"
   },
   "title": "Print material",
   "description": "PLA softens in warm saltwater and under a lamp; use PETG or ASA.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 48,
   "maximum": 240,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around the circle; higher is smoother and larger.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 120
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#2f8f83"
  },
  "trimColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Ring and lid colour",
   "description": "The LED ring and the lid take the main colour until you pick another one here: then a two-colour set from two filaments, with no nozzle change. White shows the light best.",
   "x-group": "print",
   "x-visibleIf": {
    "any": [
     {
      "includeLedRing": true
     },
     {
      "includeLid": true
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Gredzena un vāka krāsa",
   "default": "#2f8f83"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "reef-silicone-tubing",
   "title": "Aquarium Dosing Silicone Tubing 4/6 mm (5 m, Black)",
   "why": "Standard 4/6 mm dosing line size that clips directly into the probe & dosing holder.",
   "url": "https://paramlet.com/go/reef-silicone-tubing?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)"
  }
 ]
}