{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/plant-watering-spike/schema.json",
 "title": "Plant watering spike — parameters",
 "description": "Spikes that screw onto a plastic bottle and drip water into a pot for days: 28 mm soda bottles, older bottles or a cork for wine. With an air tube. 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": "plant-watering-spike",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "bottle",
   "title": "Bottle"
  },
  {
   "id": "spike",
   "title": "Spike"
  },
  {
   "id": "look",
   "title": "Colours"
  },
  {
   "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": "soda-bottle-watering-spike",
    "title": "Soda bottle watering spike, 100 mm",
    "description": "A 100 mm spike that screws onto a 1 litre soda or water bottle, with one row of 1 mm holes: about 0.1 litres a day, a bottle for ten days. With the fit coupon.",
    "values": {
     "fit": "screw1881",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": true,
     "length": 100,
     "holes": 1,
     "holeD": 1,
     "bottle": "l1",
     "vent": true,
     "collar": true,
     "set": 1,
     "baseColor": "#2e7d32",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   },
   {
    "id": "slow-drip-spike-small-pot",
    "title": "Slow drip spike for a small pot",
    "description": "A 60 mm spike with 0.8 mm holes: about 0.07 litres a day, so a 0.5 litre bottle lasts a week on a small pot.",
    "values": {
     "fit": "screw1881",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": true,
     "length": 60,
     "holes": 1,
     "holeD": 0.8,
     "bottle": "l05",
     "vent": true,
     "collar": true,
     "set": 1,
     "baseColor": "#0369a1",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   },
   {
    "id": "fast-drip-spike-large-planter",
    "title": "Fast drip spike for a large planter",
    "description": "A 150 mm spike with three rows of 1.2 mm holes: about 0.4 litres a day, for a 2 litre bottle on a thirsty planter.",
    "values": {
     "fit": "screw1881",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": true,
     "length": 150,
     "holes": 3,
     "holeD": 1.2,
     "bottle": "l2",
     "vent": true,
     "collar": true,
     "set": 1,
     "baseColor": "#c2410c",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   },
   {
    "id": "wine-bottle-watering-spike",
    "title": "Wine bottle watering spike",
    "description": "A cork that goes into the neck of a wine bottle, on a 120 mm spike. Measure the opening of your bottle and set it: 17.5 mm fits most.",
    "values": {
     "fit": "plug",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": true,
     "length": 120,
     "holes": 1,
     "holeD": 1,
     "bottle": "l1",
     "vent": true,
     "collar": true,
     "set": 1,
     "baseColor": "#7c3aed",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   },
   {
    "id": "watering-spike-set-of-4",
    "title": "Watering spike set of 4, slow to fast",
    "description": "Four spikes with one to four rows of 0.8 mm holes, for pots that drink differently.",
    "values": {
     "fit": "screw1881",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": false,
     "length": 100,
     "holes": 1,
     "holeD": 0.8,
     "bottle": "l1",
     "vent": true,
     "collar": true,
     "set": 4,
     "baseColor": "#be185d",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   },
   {
    "id": "older-bottle-watering-spike",
    "title": "Watering spike for older bottles (PCO 1810)",
    "description": "The same spike with the older 28 mm thread, for bottles made before about 2000 and some local brands.",
    "values": {
     "fit": "screw1810",
     "plugD": 17.5,
     "tightness": "normal",
     "coupon": true,
     "length": 100,
     "holes": 1,
     "holeD": 1,
     "bottle": "l1",
     "vent": true,
     "collar": true,
     "set": 1,
     "baseColor": "#4d7c0f",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 50
    }
   }
  ]
 },
 "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": {
  "fit": {
   "type": "string",
   "enum": [
    "screw1881",
    "screw1810",
    "plug"
   ],
   "x-enumTitles": {
    "screw1881": "Screw-on: soda, water and juice bottles (28 mm)",
    "screw1810": "Screw-on: older bottles (28 mm, PCO 1810)",
    "plug": "Plug into the neck: wine bottles and any round opening"
   },
   "title": "Bottle fit",
   "description": "The 28 mm thread is on nearly every soda, water and juice bottle up to 2 litres made since about 2000. Bottles made before that have the older thread. A plug goes inside the neck: measure the opening.",
   "x-group": "bottle",
   "x-agentSafe": true,
   "x-label-lv": "Pudeles stiprinājums",
   "default": "screw1881",
   "x-resetOnPreset": true
  },
  "plugD": {
   "type": "number",
   "minimum": 12,
   "maximum": 26,
   "x-step": 0.1,
   "title": "Neck opening",
   "description": "Inside diameter of the neck, measured. A wine bottle is 16 to 18.5 mm; a 28 mm PET bottle is 21.7 mm.",
   "x-group": "bottle",
   "x-unit": "mm",
   "x-visibleIf": {
    "fit": "plug"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kakliņa atvere",
   "default": 17.5,
   "x-resetOnPreset": true
  },
  "tightness": {
   "type": "string",
   "enum": [
    "tight",
    "normal",
    "loose"
   ],
   "x-enumTitles": {
    "tight": "Tight",
    "normal": "Normal",
    "loose": "Loose"
   },
   "title": "Fit",
   "description": "Room between the thread and the bottle, or the pinch of the plug. Print the fit coupon first: the tightest that goes on is the one to set.",
   "x-group": "bottle",
   "x-agentSafe": true,
   "x-label-lv": "Pieguļana",
   "default": "normal",
   "x-resetOnPreset": true
  },
  "coupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A fit coupon beside the spike with the three fits, tight to loose. It prints in a few minutes and saves a failed spike.",
   "x-group": "bottle",
   "x-agentSafe": true,
   "x-label-lv": "Piemērotības paraugs",
   "default": 1,
   "x-resetOnPreset": true
  },
  "length": {
   "type": "number",
   "minimum": 50,
   "maximum": 200,
   "multipleOf": 5,
   "title": "Spike length",
   "description": "From the bottom of the socket to the point. Long for deep pots, short for small ones.",
   "x-group": "spike",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Stiebra garums",
   "default": 100,
   "x-resetOnPreset": true
  },
  "holes": {
   "type": "integer",
   "minimum": 1,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Rows of holes",
   "description": "Rows of holes in the spike, each through both sides. More rows, more water.",
   "x-group": "spike",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Caurumu rindas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "holeD": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 2,
   "x-step": 0.1,
   "title": "Hole size",
   "description": "Diameter of a hole. Under 0.8 mm may close with soil. 1 mm gives about 0.1 litres a day.",
   "x-group": "spike",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Cauruma izmērs",
   "default": 1,
   "x-resetOnPreset": true
  },
  "bottle": {
   "type": "string",
   "enum": [
    "l05",
    "l1",
    "l15",
    "l2"
   ],
   "x-enumTitles": {
    "l05": "0.5 litre bottle",
    "l1": "1 litre bottle",
    "l15": "1.5 litre bottle",
    "l2": "2 litre bottle"
   },
   "title": "Bottle size",
   "description": "For the estimate of how many days a bottle lasts.",
   "x-group": "spike",
   "x-agentSafe": true,
   "x-label-lv": "Pudeles izmērs",
   "default": "l1",
   "x-resetOnPreset": true
  },
  "vent": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Air tube",
   "description": "A thin tube through the plug that lets air into the bottle. Without it a bottle glugs and empties in hours; with it the water drips steadily for days.",
   "x-group": "spike",
   "x-agentSafe": true,
   "x-label-lv": "Gaisa caurule",
   "default": 1,
   "x-resetOnPreset": true
  },
  "collar": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Soil collar",
   "description": "A saucer on the soil that keeps the spike upright.",
   "x-group": "spike",
   "x-agentSafe": true,
   "x-label-lv": "Augsnes apkakle",
   "default": 1,
   "x-resetOnPreset": true
  },
  "set": {
   "type": "integer",
   "minimum": 1,
   "maximum": 4,
   "multipleOf": 1,
   "title": "Spikes",
   "description": "Spikes in a row, each with one row of holes more than the one before: for pots that drink differently.",
   "x-group": "spike",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Stiebru skaits",
   "default": 1,
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "Of the preview and the 3MF.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#2e7d32",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA lasts a season in wet soil; PETG longer, and in the sun too. A bottle in the sun warms up: take PETG for a balcony.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.16,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.12 mm makes the thread smoother; print the thread slowly.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines: the socket carries a full bottle.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "50 % is enough; the socket is solid where it carries the bottle.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 50,
   "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)"
  }
 ]
}