闲社服务运行正常AI智能体自动化平台
c

获取设备位置

技能标识:corelocationcli

Get the physical location of your macOS device and print it to stdout.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

获取设备位置

CoreLocationCLI

获取设备的物理位置并将其输出到标准输出。使用 CTRL-C 终止。

注意: 请确保 Wi-Fi 已开启,否则您将看到 kCLErrorDomain error 0 错误。

使用方法

bash
CoreLocationCLI --help
CoreLocationCLI --version
CoreLocationCLI [--watch] [--verbose] [--format FORMAT]
CoreLocationCLI [--watch] [--verbose] --json

开关描述
-h, --help显示帮助信息并退出
--version
显示程序版本 | | -w, --watch | 持续打印位置更新 | | -v, --verbose | 显示调试输出 | | -f, --format | 使用指定的替换格式打印字符串 | | -j, --json | 以 JSON 对象格式打印所有可用信息 |

格式说明符

位置:%latitude %longitude %altitude %direction %speed %haccuracy %vaccuracy %time

反向地理编码:%address %name %isoCountryCode %country %postalCode %administrativeArea %subAdministrativeArea %locality %subLocality %thoroughfare %subThoroughfare %region %timeZone %time_local

默认格式:%latitude %longitude

示例

bash
CoreLocationCLI

50.943829 6.941043

CoreLocationCLI --format %latitude %longitude\n%address

50.943829 6.941043


Kaiser-Wilhelm-Ring 21


科隆 北莱茵-威斯特法伦州 50672


德国

CoreLocationCLI --json

{latitude:40.141196,longitude:-75.034815,altitude:92.00,...}

安装

bash
brew install cask corelocationcli

门禁系统

首次运行可能被 macOS 门禁系统阻止。请前往系统设置 → 隐私与安全性 → 安全性进行批准。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 corelocationcli-1776057199 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 corelocationcli-1776057199 技能

通过命令行安装

skillhub install corelocationcli-1776057199

下载

⬇ 下载 corelocationcli v1.0.0(免费)

文件大小: 1.59 KB | 发布时间: 2026-4-14 14:31

v1.0.0 最新 2026-4-14 14:31
Initial release of corelocationcli.

- Get the physical location of your macOS device and print it to stdout.
- Supports output in plain text (with customizable format) or JSON.
- Options include: watch mode, verbose/debug output, formatting, and version/help commands.
- Reverse geocoding supported with detailed fields.
- Installation instructions provided for Homebrew.
- Notes on Wi-Fi requirements and macOS Gatekeeper approval included.
返回顶部