location-awareness

0
0
Source

Location awareness via privacy-friendly GPS tracking (Home Assistant, OwnTracks, GPS Logger). Set location-based reminders and ask about movement history, travel time, and nearby POIs.

Install

mkdir -p .claude/skills/location-awareness && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7969" && unzip -o skill.zip -d .claude/skills/location-awareness && rm skill.zip

Installs to .claude/skills/location-awareness

About this skill

Location Awareness

This skill provides commands to execute. When the user asks about location, RUN the appropriate command below.

⚠️ IMPORTANT: All commands use scripts/location.sh

Every command must be run via scripts/location.sh. Example:

User asks: "How long to walk home?"
You run:

scripts/location.sh eta home --mode walk

Output: 4.6 km, about 45 min walk
You reply with the output directly.

Do NOT run eta or other subcommands directly — they don't exist as standalone commands.

Quick Reference — What to Run

User saysRun this (copy exactly)Reply with
"Where am I?"scripts/location.sh statusZone name only
"Map" / "map link"scripts/location.sh herewegoJust the URL
"What are my coordinates?"scripts/location.sh statusLat/lon from output
"How long to walk home?"scripts/location.sh eta home --mode walkDistance + duration
"How long to bike to X?"scripts/location.sh eta X --mode bikeDistance + duration
"How far is X by car?"scripts/location.sh eta X --mode carDistance + duration
"Remind me to X when I get to Y"scripts/location.sh remind "X" YBrief confirm
"What reminders do I have?"scripts/location.sh remindersBullet list or "None"
"List my places"scripts/location.sh placesBullet list
"List places nearby"scripts/location.sh places --nearSorted by distance
"List my pubs downtown"scripts/location.sh places --region downtown --category pubFiltered list
"Save this spot as X"scripts/location.sh addplace "X"Confirm
"Delete place X"scripts/location.sh delplace XConfirm
"Disable the grocery rule"scripts/location.sh disable groceryConfirm
"List my geofence rules"scripts/location.sh geofencesBullet list
"When was I last at X?"scripts/location.sh history XDate/time
"Where have I been today?"scripts/location.sh history --days 1List of places
"Find me a cafe nearby"scripts/location.sh nearby cafePOI list with distances
"Any pubs within 1km?"scripts/location.sh nearby pub 1000Filtered POI list
"How long was I at work this week?"scripts/location.sh stats --days 7Hours per place

Response style: Terse. No preamble. No "Here's your location:". Just the answer.

All Commands

All via scripts/location.sh <command>:

CommandDescription
statusCurrent location, geofences inside, map link
herewegoJust the HERE WeGo map link
checkCheck for triggered actions/reminders (used by cron)
places [--near] [--region R] [--category C]List saved places
geofencesList all geofences with full details
remind <text> <place_id>Add one-shot location reminder
remindersList pending reminders
addplace <name> [radius] [--region R] [--category C]Save current location
editplace <id> [--name] [--radius] [--region] [--category] [--action] [--cooldown]Modify a place
delplace <id>Delete a place
enable <id> / disable <id>Toggle geofence on/off
history [place] [--days N]When was I last at a place?
nearby <category> [radius]Find nearby POIs (cafe, pub, restaurant, etc.)
stats [--days N]Time spent at each place, visit counts
proximity <text> <place/lat> [lon] [radius]Alert when approaching a location
eta <place> [--mode walk|bike|car]Travel time and distance to a place

Note: eta accepts saved place names, coordinates (lat,lon), or any place name (geocoded via OpenStreetMap, biased to current location).

Note: status returns the zone name if in a known place, otherwise reverse geocodes to a street address (e.g., "123 Main Street, Downtown").

Concepts

Geofences — Saved places with lat/lon, radius, and optional action. Persistent.

Reminders — One-shot alerts tied to a place. Deleted after delivery.

Region/Category — Optional tags for filtering (e.g., "downtown", "pub").


Setup (for administrators)

Provider Configuration

Edit scripts/config.json:

Home Assistant (default):

{
  "provider": "homeassistant",
  "homeassistant": {
    "url": "https://your-ha.example.com",
    "token": "your-long-lived-token",
    "entity_id": "device_tracker.phone"
  }
}

OwnTracks:

{
  "provider": "owntracks",
  "owntracks": {
    "url": "https://owntracks.example.com",
    "user": "username",
    "device": "phone"
  }
}

Generic HTTP:

{
  "provider": "http",
  "http": {
    "url": "https://your-api.com/location",
    "headers": {"Authorization": "Bearer token"}
  }
}

GPSLogger (file-based):

{
  "provider": "gpslogger",
  "gpslogger": {
    "file": "/path/to/location.json"
  }
}

Secrets support: "env:VAR_NAME" (reads from environment variable) or plain string.

Alternative: Configure entirely via environment variables (no config.json needed):

ProviderEnv variables
LOCATION_PROVIDERhomeassistant, owntracks, http, or gpslogger (default: homeassistant)
Home AssistantHA_URL, HA_TOKEN, HA_ENTITY_ID
OwnTracksOWNTRACKS_URL, OWNTRACKS_USER, OWNTRACKS_DEVICE, OWNTRACKS_TOKEN
HTTPLOCATION_HTTP_URL
GPSLoggerGPSLOGGER_FILE

Env vars take precedence over config.json values. Set them in ~/.openclaw/.env or your shell environment.

Output format: Most query commands output human-readable text by default. Add --json for JSON output (useful for scripting).

Travel Speeds

Customize walking/biking speeds for ETA calculations in scripts/config.json:

{
  "speeds_kmh": {
    "walk": 6,
    "bike": 15
  }
}

Geofence Config

Edit scripts/geofences.json:

{
  "geofences": [
    {
      "id": "grocery",
      "name": "Grocery Store",
      "lat": 40.7128,
      "lon": -74.0060,
      "radius_m": 30,
      "action": "shopping_tasks",
      "cooldown_hours": 4,
      "enabled": true,
      "region": "downtown",
      "category": "shop"
    }
  ],
  "location_reminders": [],
  "proximity_alerts": []
}

Automatic Notifications (OpenClaw Cron)

Use OpenClaw's built-in cron to run periodic location checks. Add a job to ~/.openclaw/cron/jobs.json:

{
  "name": "Location Check",
  "schedule": "*/5 * * * *",
  "prompt": "Run scripts/location.sh check --json and notify me of any triggered actions, reminders, or proximity alerts.",
  "channel": "signal",
  "to": "+1234567890",
  "wakeMode": "now"
}

This keeps scheduling within OpenClaw rather than requiring external systemd services.

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

9521,094

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

846846

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

571699

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

548492

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

673466

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

514280

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.