Skip to content

feat: add location-based reminder triggers#22

Open
octaviofroid wants to merge 1 commit intosteipete:mainfrom
BohmCapital:main
Open

feat: add location-based reminder triggers#22
octaviofroid wants to merge 1 commit intosteipete:mainfrom
BohmCapital:main

Conversation

@octaviofroid
Copy link

Adds support for location-based (geofence) reminder triggers via new flags:

  • --location <address>: Address string that gets geocoded to coordinates
  • --leaving: Trigger when leaving location (default: trigger on arriving)
  • --radius <meters>: Geofence radius in meters (default: 100)

Examples

# Trigger when arriving at an address
remindctl add "Check mailbox" --location "50 West St, New York, NY"

# Trigger when leaving
remindctl add "Lock up" --location "Home" --leaving

# Custom radius
remindctl add "Get groceries" --location "123 Main St" --radius 200

Implementation

  • Added LocationTrigger and LocationProximity types to Models.swift
  • Added createLocationAlarm to EventKitStore.swift using EKStructuredLocation and CLGeocoder
  • Added flags to AddCommand.swift

Closes the gap for CLI-based location reminders that previously required the Reminders app GUI.

Add --location, --leaving, and --radius flags to the add command:
- --location: Address string (will be geocoded)
- --leaving: Trigger when leaving (default: arriving)
- --radius: Geofence radius in meters (default: 100)

Examples:
  remindctl add "Check mailbox" --location "50 West St, New York, NY"
  remindctl add "Lock up" --location "Home" --leaving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant