@smartplant/pests
v1.0.0
Published
Plugin for pest monitoring with extended sensors in SmartPlant
Readme
@smartplant/pests
This plugin monitors for pest risks using extended sensor data (e.g., high humidity for fungi). It uses AI (Gemini, OpenAI, Grok, Claude, Ollama) for detection and treatments, with emoji vulnerability indicators.
Functionality
- Detects pest-prone conditions from sensors.
- AI recommends organic treatments.
- Supports multiple AI models.
- Emojis for risk levels (e.g., 🐛 for potential pests).
Installation
- Install the base library:
npm install -g smartplant - Install this plugin:
npm install @smartplant/pests - In your project:
const pests = require('@smartplant/pests'); pests.init({ model: 'grok' });
Usage Example
const smartplant = require('smartplant');
const pests = require('@smartplant/pests');
pests.init({ model: 'ollama' });
const monitoring = await pests.monitorPests({ humidity: 80 });
console.log(monitoring); // e.g., { advice: 'Inspect for fungi', emoji: '🐛' }
