physical

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/physical - Physical Location Awareness

/physical - 物理位置感知

Check Nat's current physical location from FindMy data.
通过FindMy数据查询Nat的当前物理位置。

Usage

使用方法

/physical
/physical

Data Source

数据来源

  • Repo:
    laris-co/nat-location-data
    (GitHub)
  • Files:
    current.csv
    (now),
    history.csv
    (today's log)
  • Updated: Every 5 minutes via white.local cron
  • Source: FindMy via Sate's iMac
  • 代码仓库:
    laris-co/nat-location-data
    (GitHub)
  • 文件:
    current.csv
    (当前数据),
    history.csv
    (今日日志)
  • 更新频率: 每5分钟通过white.local的cron任务更新
  • 数据来源: 通过Sate的iMac获取FindMy数据

Instructions

操作说明

Use a Haiku subagent to fetch and display location data:
bash
undefined
使用Haiku子代理获取并显示位置数据:
bash
undefined

Locate the script (optimized search)

Locate the script (optimized search)

LOCATIONS=( "$HOME/.config/opencode/command/physical/scripts/location-query.ts" "./.opencode/command/physical/scripts/location-query.ts" "$HOME/.claude/skills/physical/scripts/location-query.ts" "./skills/physical/scripts/location-query.ts" )
SCRIPT="" for loc in "${LOCATIONS[@]}"; do if [ -f "$loc" ]; then SCRIPT="$loc" break fi done
if [ -z "$SCRIPT" ]; then

Fallback to slow search only if explicit paths fail

SCRIPT=$(find ~ -name location-query.ts -not -path "/node_modules/" 2>/dev/null | head -1) fi
if [ -z "$SCRIPT" ]; then echo "Error: location-query.ts not found. Check install." else bun "$SCRIPT" all fi

Parse and display:
📍 Physical Status ═══════════════════
🏠 Currently At: [place column, or locality if empty]
DeviceBatteryPrecisionUpdated
[one row per device, sorted by accuracy]
📍 [address from iPhone row] 🗺️ Map: https://maps.google.com/?q=[lat],[lon]
⏱️ At this location: [X hours] (from TIME_AT_LOCATION section)
undefined
LOCATIONS=( "$HOME/.config/opencode/command/physical/scripts/location-query.ts" "./.opencode/command/physical/scripts/location-query.ts" "$HOME/.claude/skills/physical/scripts/location-query.ts" "./skills/physical/scripts/location-query.ts" )
SCRIPT="" for loc in "${LOCATIONS[@]}"; do if [ -f "$loc" ]; then SCRIPT="$loc" break fi done
if [ -z "$SCRIPT" ]; then

Fallback to slow search only if explicit paths fail

SCRIPT=$(find ~ -name location-query.ts -not -path "/node_modules/" 2>/dev/null | head -1) fi
if [ -z "$SCRIPT" ]; then echo "Error: location-query.ts not found. Check install." else bun "$SCRIPT" all fi

解析并显示:
📍 Physical Status ═══════════════════
🏠 Currently At: [place column, or locality if empty]
DeviceBatteryPrecisionUpdated
[one row per device, sorted by accuracy]
📍 [address from iPhone row] 🗺️ Map: https://maps.google.com/?q=[lat],[lon]
⏱️ At this location: [X hours] (from TIME_AT_LOCATION section)
undefined

Known Places (with coordinates)

已知地点(含坐标)

PlaceLatLonType
cnx18.766998.9625airport
bkk13.6900100.7501airport
dmk13.9126100.6067airport
bitkub13.7563100.5018office
maya18.802498.9676mall
central-cnx18.807298.9847mall
cmu18.802898.9531university
PlaceLatLonType
cnx18.766998.9625airport
bkk13.6900100.7501airport
dmk13.9126100.6067airport
bitkub13.7563100.5018office
maya18.802498.9676mall
central-cnx18.807298.9847mall
cmu18.802898.9531university

Directions

路线查询

If user asks "how far to X":
🛫 To [destination]:
- Distance: [calculate km]
- 🗺️ Directions: https://maps.google.com/maps?saddr=[lat],[lon]&daddr=[dest_lat],[dest_lon]
如果用户询问"how far to X":
🛫 To [destination]:
- Distance: [calculate km]
- 🗺️ Directions: https://maps.google.com/maps?saddr=[lat],[lon]&daddr=[dest_lat],[dest_lon]