← 返回
开发者工具 中文

Find My Location

Track a shared contact's location via Apple Find My with street-level accuracy. Returns address, city, and context (home/work/out) by reading map landmarks. Supports configurable known locations and vision fallback for unknown places.
通过 Apple 查找功能追踪共享联系人的位置,精确至街道级别。通过读取地图地标返回地址、城市及场景(家/公司/外出)。支持自定义已知位置,并为未知地点提供视觉回退功能。
poiley
开发者工具 clawhub v1.1.1 1 版本 100000 Key: 无需
★ 5
Stars
📥 3,566
下载
💾 6
安装
1
版本
#latest

概述

Find My Location

Track shared contacts via Apple Find My with street-corner accuracy.

Requirements

  • macOS 13+ with Find My app
  • Python 3.9+
  • iCloud account signed in on your Mac (for Find My access)
  • Location sharing enabled from the contact you want to track
  • peekaboo - screen reading CLI (GitHub)
  • Hammerspoon (optional) - for reliable UI clicking (hammerspoon.org)

Prerequisites

1. iCloud & Find My Setup

Your Mac must be signed into an iCloud account with Find My enabled:

  • System Settings → Apple ID → iCloud → Find My Mac (enabled)
  • The person you want to track must share their location with this iCloud account via Find My

2. Install peekaboo

brew install steipete/tap/peekaboo

Grant Accessibility and Screen Recording permissions when prompted (System Settings → Privacy & Security).

3. Install Hammerspoon (optional but recommended)

Hammerspoon provides reliable clicking that works across all apps. Without it, clicks may occasionally go to the wrong window.

brew install hammerspoon
open -a Hammerspoon

Add to ~/.hammerspoon/init.lua:

local server = hs.httpserver.new(false, false)
server:setPort(9090)
server:setCallback(function(method, path, headers, body)
    local data = body and hs.json.decode(body) or {}
    if path == "/click" then
        hs.eventtap.leftClick({x=data.x, y=data.y})
        return hs.json.encode({status="clicked", x=data.x, y=data.y}), 200, {}
    end
    return hs.json.encode({error="not found"}), 404, {}
end)
server:start()

Reload config (Hammerspoon menu → Reload Config), then create ~/.local/bin/hsclick:

#!/bin/bash
curl -s -X POST localhost:9090/click -d "{\"x\":$2,\"y\":$3}"
chmod +x ~/.local/bin/hsclick

Installation

git clone https://github.com/poiley/findmy-location.git
cd findmy-location
./install.sh

Or via ClawdHub:

clawdhub install findmy-location

Configuration

Create ~/.config/findmy-location/config.json:

{
  "target": "John",
  "known_locations": [
    {
      "name": "home",
      "address": "123 Main St, City, ST",
      "markers": ["landmark near home"]
    },
    {
      "name": "work",
      "address": "456 Office Blvd, City, ST",
      "markers": ["landmark near work"]
    }
  ]
}
FieldDescription
--------------------
targetContact name to track (optional - defaults to first shared contact)
known_locationsArray of places you want labeled with addresses
markersLandmarks visible on the Find My map when at that location

Usage

findmy-location          # Human-readable output
findmy-location --json   # JSON output

Example Output

123 Main St, City, ST (home) - Now
{
  "person": "contact@email.com",
  "address": "Main St & 1st Ave",
  "city": "Anytown",
  "state": "WA",
  "status": "Now",
  "context": "out",
  "screenshot": "/tmp/findmy-12345.png",
  "needs_vision": false
}
FieldDescription
--------------------
contexthome, work, out, or unknown
needs_visionIf true, use AI vision on screenshot to read street names
screenshotPath to captured map image

How It Works

  1. Opens Find My app and selects target contact
  2. Captures map and reads accessibility data
  3. Matches visible landmarks against configured known locations
  4. Returns address and context, or flags for vision analysis

Troubleshooting

IssueSolution
-----------------
Clicks go to wrong windowInstall Hammerspoon (see prerequisites)
"No person found"Ensure location sharing is enabled in Find My
Always shows needs_vision: trueAdd markers for frequently visited places
Permission errorsGrant peekaboo Accessibility + Screen Recording access

License

MIT

版本历史

共 1 个版本

  • v1.1.1 当前
    2026-03-28 11:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,899
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 426 📥 118,072
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,936