@smartplant/fertilizer
v1.0.0
Published
Plugin for sensor-guided fertilization in SmartPlant
Readme
@smartplant/fertilizer
This plugin guides fertilization timing based on sensor data like humidity and temperature. It employs AI models (Gemini, OpenAI, Grok, Claude, Ollama) to recommend applications, tracking impact via emojis.
Functionality
- Analyzes sensor data for nutrient needs.
- AI suggests fertilization schedules.
- Compatible with all AI providers.
- Emoji for post-fertilization health (e.g., 🌱 for nourished).
Installation
- Install the base library:
npm install -g smartplant - Install this plugin:
npm install @smartplant/fertilizer - In your project:
const fertilizer = require('@smartplant/fertilizer'); fertilizer.init({ model: 'claude' });
Usage Example
const smartplant = require('smartplant');
const fertilizer = require('@smartplant/fertilizer');
fertilizer.init({ model: 'openai' });
const guide = await fertilizer.guideFertilization({ temperature: 22 });
console.log(guide); // e.g., { advice: 'Apply now', emoji: '🌱' }
