返回顶部
c

corelocationcli获取设备位置

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
82
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

corelocationcli

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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部