@smartplant/diary
v1.0.0
Published
Plugin for interactive care diary with sensor data in SmartPlant
Readme
@smartplant/diary
This plugin creates an interactive care diary with sensor data and manual entries. It uses AI (Gemini, OpenAI, Grok, Claude, Ollama) for weekly summaries, featuring emoji-based visual logs.
Functionality
- Logs daily sensor data and user notes.
- AI generates summaries and tips.
- Supports all models for analysis.
- Emojis for diary entries (e.g., 📔 for logged).
Installation
- Install the base library:
npm install -g smartplant - Install this plugin:
npm install @smartplant/diary - In your project:
const diary = require('@smartplant/diary'); diary.init({ model: 'grok' });
Usage Example
const smartplant = require('smartplant');
const diary = require('@smartplant/diary');
diary.init({ model: 'ollama' });
const summary = await diary.logAndSummarize({ note: 'Watered today' });
console.log(summary); // e.g., { advice: 'Good progress', emoji: '📔' }
