@smartplant/fertilizer
v3.0.5
Published
Feeding schedule and nutrient guidance from conductivity and care history.
Maintainers
Readme
🌱 @smartplant/fertilizer
Recommends what to feed, how much and when, from conductivity and care history.
A plugin for smartplant — a bridge between AI and plants.
Install
npm install smartplant @smartplant/fertilizerUse
import { createPlant } from 'smartplant'
import fertilizer from '@smartplant/fertilizer'
const plant = await createPlant( {
name : 'Ivy',
species : 'Monstera deliciosa',
sensor : 'mock', // no hardware needed
ai : { provider : 'ollama' }, // or gemini / openai / claude / grok
} )
await plant.use( fertilizer )
await plant.read()
const result = await plant.plugin( 'fertilizer' ).guideFertilization( { season : 'spring' } )
console.log( result.advice, result.emoji )API
guideFertilization( input? )
Returns { advice, emoji, severity, npk, dilution, daysUntilFeed }.
input is optional; anything you pass is handed to the AI as extra context alongside the plant's readings, trends and care history.
If the AI is unreachable or unconfigured, the call returns the deterministic offline result rather than throwing.
Errs toward underfeeding
Nutrient burn is much harder to undo than a deficiency, so the guidance is deliberately conservative.
await plant.plugin( 'fertilizer' ).recordFeeding( { product : 'seaweed extract' } )Test
npm testRuns against the mock sensor and mock AI provider — no hardware, no API key, no network.
📜 License
MIT — see LICENSE.

