@smartplant/ventilation
v1.0.0
Published
Plugin for automatic ventilation adjustment in SmartPlant
Readme
@smartplant/ventilation
This plugin automatically adjusts ventilation based on temperature and humidity sensors. It integrates AI models (Gemini, OpenAI, Grok, Claude, Ollama) for optimal airflow recommendations, using emojis for status.
Functionality
- Controls fans or vents via sensor data.
- AI optimizes to prevent issues like condensation.
- All AI models supported.
- Emojis for airflow (e.g., 💨 for active).
Installation
- Install the base library:
npm install -g smartplant - Install this plugin:
npm install @smartplant/ventilation - In your project:
const ventilation = require('@smartplant/ventilation'); ventilation.init({ model: 'claude' });
Usage Example
const smartplant = require('smartplant');
const ventilation = require('@smartplant/ventilation');
ventilation.init({ model: 'openai' });
const adjustment = await ventilation.adjustVentilation({ temperature: 28 });
console.log(adjustment); // e.g., { advice: 'Increase fan speed', emoji: '💨' }
