{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/bottle-bird-feeder/schema.json",
 "title": "Bottle bird feeder — parameters",
 "description": "A screw-on feeder for PET bottles: the thread of your bottle, the seed, the bowl and the perch you want, with a rain roof, a window tray or a cage mount. 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": "bottle-bird-feeder",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "feed",
   "title": "What it holds"
  },
  {
   "id": "bottle",
   "title": "The bottle"
  },
  {
   "id": "bowl",
   "title": "The bowl"
  },
  {
   "id": "mount",
   "title": "Where it sits"
  },
  {
   "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": "sunflower-seed-bottle-feeder",
    "title": "Sunflower seed bottle feeder",
    "description": "A graphite bowl that screws onto a Coke or Pepsi bottle, four wide ports for sunflower seeds, a perch ledge all round.",
    "values": {
     "baseColor": "#1f2937"
    }
   },
   {
    "id": "small-seed-mix-feeder",
    "title": "Small seed mix feeder",
    "description": "Six narrower ports and small drain holes for a seed mix with millet, on a 90 mm teal bowl.",
    "values": {
     "seed": "mix",
     "bowlDiameter": 90,
     "baseColor": "#0e7490"
    }
   },
   {
    "id": "bottle-bird-waterer",
    "title": "Bottle bird waterer",
    "description": "A blue trough with no drain holes: a bottle of water stands in it and the water stays at the mouth level, 10 mm deep.",
    "values": {
     "content": "water",
     "seedDepth": 10,
     "rimHeight": 20,
     "bowlDiameter": 110,
     "baseColor": "#1f4e8c"
    }
   },
   {
    "id": "wide-neck-38mm-bottle-feeder",
    "title": "Wide-neck 38 mm bottle feeder",
    "description": "For the wide-mouth juice and milk bottles with a 3-start 38 mm thread, on a 110 mm green bowl.",
    "values": {
     "thread": "w38",
     "bowlDiameter": 110,
     "baseColor": "#3f6212"
    }
   },
   {
    "id": "feeder-with-rain-roof",
    "title": "Feeder with rain roof",
    "description": "A terracotta roof on three posts screws onto the neck and keeps rain off a 120 mm bowl for a 64 mm bottle.",
    "values": {
     "roof": true,
     "bowlDiameter": 120,
     "bottleDiameter": 64,
     "baseColor": "#c2410c"
    }
   },
   {
    "id": "window-feeder-tray",
    "title": "Window feeder tray",
    "description": "A white tray with a back wall for two screw-in suction cups and a sloped roof that slides into it, for a 100 mm bowl.",
    "values": {
     "mount": "glass",
     "bowlDiameter": 100,
     "baseColor": "#f1f1f1"
    }
   },
   {
    "id": "cage-feeder-10mm-bars",
    "title": "Cage feeder for 10 mm bars",
    "description": "A small sand-coloured bowl with hooks that pass between 10 mm cage bars, a low back the bird reaches over.",
    "values": {
     "mount": "cage",
     "barSpacing": 10,
     "bowlDiameter": 80,
     "seedDepth": 10,
     "rimHeight": 16,
     "baseColor": "#a16207"
    }
   },
   {
    "id": "hanging-bottle-feeder",
    "title": "Hanging bottle feeder kit",
    "description": "Everything to hang a 0.5 L bottle from a branch: two half rings, four rods and two straps with eyes for an S-hook.",
    "values": {
     "hang": "rods",
     "bottleDiameter": 64,
     "bottleHeight": 200,
     "baseColor": "#b91c1c"
    }
   }
  ]
 },
 "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": {
  "content": {
   "type": "string",
   "enum": [
    "seed",
    "water"
   ],
   "x-enumTitles": {
    "seed": "Bird seed",
    "water": "Water"
   },
   "title": "Holds",
   "description": "Seed flows out of the bottle until the bowl is full to its mouth. Water stands in a shallow trough at the same level.",
   "x-group": "feed",
   "x-agentSafe": true,
   "x-label-lv": "Tur",
   "default": "seed",
   "x-resetOnPreset": true
  },
  "seed": {
   "type": "string",
   "enum": [
    "sunflower",
    "mix",
    "nyjer"
   ],
   "x-enumTitles": {
    "sunflower": "Sunflower seeds in the shell (or peanuts)",
    "mix": "Seed mix with millet (or sunflower chips)",
    "nyjer": "Nyjer, fine seed"
   },
   "title": "Seed",
   "description": "Sets how wide the seed ports are and how small the drain holes are: a hole must not pass a seed.",
   "x-group": "feed",
   "x-visibleIf": {
    "content": [
     "seed"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sēklas",
   "default": "sunflower",
   "x-resetOnPreset": true
  },
  "thread": {
   "type": "string",
   "enum": [
    "pco1881",
    "pco1810",
    "w38",
    "custom"
   ],
   "x-enumTitles": {
    "pco1881": "PCO 1881: the short 28 mm neck (Coke, Pepsi, most soda and water)",
    "pco1810": "PCO 1810: the tall 28 mm neck (older and some water bottles)",
    "w38": "38 mm 3-start: wide-mouth juice and milk",
    "custom": "Another neck: measured"
   },
   "title": "Bottle thread",
   "description": "Print the thread coupon and try the bottle before the whole bowl. 1881 or 1810? Measure from the top of the neck to the ring under the thread: 17 mm is 1881, 21 mm is 1810.",
   "x-group": "bottle",
   "x-agentSafe": true,
   "x-label-lv": "Pudeles vītne",
   "default": "pco1881",
   "x-resetOnPreset": true
  },
  "threadMajor": {
   "type": "number",
   "minimum": 28,
   "maximum": 46,
   "x-step": 0.1,
   "title": "Thread diameter",
   "description": "Outside the thread, measured with a caliper.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-visibleIf": {
    "thread": [
     "custom"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vītnes diametrs",
   "default": 37.4,
   "x-resetOnPreset": true
  },
  "threadPitch": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.1,
   "title": "Thread spacing",
   "description": "From one turn to the next along the neck. One turn of a single-start thread lifts the cap by this much.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-visibleIf": {
    "thread": [
     "custom"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vītnes solis",
   "default": 4,
   "x-resetOnPreset": true
  },
  "threadStarts": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Thread starts",
   "description": "How many separate thread runs begin at the bottom of the neck. Most have one.",
   "x-group": "bottle",
   "x-unit": "count",
   "x-visibleIf": {
    "thread": [
     "custom"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vītnes iegriezieni",
   "default": 1,
   "x-resetOnPreset": true
  },
  "neckHeight": {
   "type": "number",
   "minimum": 10,
   "maximum": 30,
   "x-step": 0.5,
   "title": "Neck height",
   "description": "From the top of the neck down to the ring under the thread.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-visibleIf": {
    "thread": [
     "custom"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Kakliņa augstums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "threadFit": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 0.8,
   "x-step": 0.05,
   "title": "Thread clearance",
   "description": "Room per side for the bottle thread. A well-tuned printer: 0.3. Stiff or crooked threads: 0.5 to 0.6. Print the coupon to see.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Vītnes pielaide",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "bowlDiameter": {
   "type": "number",
   "minimum": 60,
   "maximum": 150,
   "multipleOf": 5,
   "title": "Bowl diameter",
   "description": "Across the bowl. A wide one lets more birds feed at once and holds more seed.",
   "x-group": "bowl",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Bļodas diametrs",
   "default": 100,
   "x-resetOnPreset": true
  },
  "seedDepth": {
   "type": "number",
   "minimum": 8,
   "maximum": 25,
   "multipleOf": 1,
   "title": "Seed depth",
   "description": "How deep the seed or water stands in the bowl: the bottle mouth sits this high above the floor.",
   "x-group": "bowl",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Sēklu dziļums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "rimHeight": {
   "type": "number",
   "minimum": 12,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Rim height",
   "description": "The wall of the bowl above its floor. It is never lower than the seed plus 6 mm.",
   "x-group": "bowl",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Malas augstums",
   "default": 24,
   "x-resetOnPreset": true
  },
  "perch": {
   "type": "string",
   "enum": [
    "ledge",
    "pegs",
    "none"
   ],
   "x-enumTitles": {
    "ledge": "Perch ledge all round",
    "pegs": "Four perch pegs",
    "none": "None"
   },
   "title": "Perch",
   "description": "A flat ledge 10 mm wide on the rim, for birds to land on, or four round pegs below the rim.",
   "x-group": "bowl",
   "x-agentSafe": true,
   "x-label-lv": "Piesēšana",
   "default": "ledge",
   "x-resetOnPreset": true
  },
  "mount": {
   "type": "string",
   "enum": [
    "bowl",
    "glass",
    "cage"
   ],
   "x-enumTitles": {
    "bowl": "Bowl: on a table, the ground or a pole",
    "glass": "Window tray (two suction cups)",
    "cage": "Cage feeder (hooks through the bars)"
   },
   "title": "Mount",
   "description": "The screw-on bowl on its own; the same bowl with a back wall for two screw-in suction cups and a sloped roof; or with hooks that pass between the cage bars.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Piemontēšana",
   "default": "bowl",
   "x-resetOnPreset": true
  },
  "roof": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Rain roof",
   "description": "A roof on three posts that screws onto the neck boss and covers the bowl from above. The birds come in under its rim.",
   "x-group": "mount",
   "x-visibleIf": {
    "mount": [
     "bowl"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Lietus jumts",
   "default": 0,
   "x-resetOnPreset": true
  },
  "hang": {
   "type": "string",
   "enum": [
    "none",
    "rods"
   ],
   "x-enumTitles": {
    "none": "Not hanging",
    "rods": "Hanging kit: a ring round the bottle, four rods and two straps"
   },
   "title": "Hanging",
   "description": "Two half rings close round the bottle above its middle, joined by 1.75 mm filament; four rods link them to ears on the bowl; two straps with eyes rise over the bottle for an S-hook (two M3 screws).",
   "x-group": "mount",
   "x-visibleIf": {
    "mount": [
     "bowl"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Karāšana",
   "default": "none",
   "x-resetOnPreset": true
  },
  "bottleDiameter": {
   "type": "number",
   "minimum": 40,
   "maximum": 110,
   "multipleOf": 1,
   "title": "Bottle diameter at the ring",
   "description": "Measured where the ring goes: the page says how far up the bottle that is.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "bowl"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pudeles diametrs pie gredzena",
   "default": 64,
   "x-resetOnPreset": true
  },
  "bottleHeight": {
   "type": "number",
   "minimum": 120,
   "maximum": 380,
   "multipleOf": 5,
   "title": "Bottle height",
   "description": "From the ring under the thread to the base of the bottle.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "bowl"
    ],
    "hang": [
     "rods"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pudeles augstums",
   "default": 200,
   "x-resetOnPreset": true
  },
  "barSpacing": {
   "type": "number",
   "minimum": 8,
   "maximum": 25,
   "x-step": 0.5,
   "title": "Cage bar spacing",
   "description": "Between the bars of the cage, measured. The hooks are made 2.5 mm narrower so they pass.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "cage"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Būra stiepņu attālums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG or ASA outdoors: they take sun, rain and frost. PLA goes soft in a hot sun and brittle in frost.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "The feeder and its parts.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#1f2937",
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Thread coupon",
   "description": "A short ring with the thread, to try the bottle before printing the bowl.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Vītnes kupons",
   "default": 1,
   "x-resetOnPreset": true
  }
 },
 "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)"
  }
 ]
}