night-sky
OpenClaw skill for NightSky R1 Creation — provides GPS location, live satellite pass predictions (ISS, Starlink, HST, Tiangong), and optional clear-sky condition data to the R1 device.
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- night-sky
- author
- rabbit-r1-skillz
- version
- 1.0.0
- description
- OpenClaw skill for NightSky R1 Creation — provides GPS location, live satellite pass predictions (ISS, Starlink, HST, Tiangong), and optional clear-sky condition data to the R1 device.
02 资源文件 3
- 资产文件card.jpg20.6 KB
- 资产文件icon.png9.8 KB
- 参考文档index.html83.5 KB
03 SKILL.md 正文
NightSky — OpenClaw Skill
This skill runs on your local machine and bridges GPS location and satellite pass data to the NightSky R1 Creation.
What this skill does
The R1 Creation cannot call external APIs directly. This skill runs on your local machine via OpenClaw (the self-hosted gateway bridge) and responds to two commands from the device:
| Command | Response |
|---|---|
get-location |
Returns your GPS latitude, longitude, and city name |
get-sat-passes |
Returns tonight's satellite pass predictions for your coordinates |
Prerequisites
- OpenClaw installed and running on your machine
- Node.js 18+ (for the skill script)
- An internet connection at setup time (satellite pass data is cached offline after first fetch)
Optional (improves satellite accuracy)
- A free account at Heavens-Above or N2YO API key for live TLE (Two-Line Element) data. Without this, the skill uses offline ephemeris approximations that are accurate to within ±5 minutes.
Setup
1. Install the skill
Copy this directory into your OpenClaw skills folder:
cp -r ./night-sky ~/.openclaw/skills/night-sky
cd ~/.openclaw/skills/night-sky
npm install
2. Configure location
The skill tries to get your location in this order:
- GPS — if your machine has a GPS receiver accessible via GPSD or serial port
- IP geolocation — fallback using
ipapi.co/json(free, no key required, city-level accuracy) - Manual override — set
NIGHTSKY_LATandNIGHTSKY_LONenvironment variables
To force a specific location:
export NIGHTSKY_LAT=51.5074
export NIGHTSKY_LON=-0.1278
export NIGHTSKY_LOCATION_NAME="London, UK"
3. Configure satellite data (optional)
For accurate ISS and Starlink pass times, add your N2YO API key:
export N2YO_API_KEY=your-key-here
Without this key, the skill generates pass predictions from cached TLE data downloaded at first run. TLE data is refreshed automatically every 48 hours.
4. Register the skill with OpenClaw
openclaw skills register night-sky
openclaw skills enable night-sky
5. Verify
openclaw skills test night-sky get-location
openclaw skills test night-sky get-sat-passes '{"lat":51.5,"lon":-0.1}'
Expected output for get-location:
{
"lat": 51.5074,
"lon": -0.1278,
"name": "London, UK",
"accuracy": "ip"
}
Expected output for get-sat-passes:
{
"passes": [
{
"name": "ISS",
"time": "21:14",
"time2": "21:20",
"track": "SW → NE",
"maxAlt": 72,
"mag": -3.0,
"inMinutes": 34
}
]
}
How commands arrive
The R1 Creation writes a command payload to openclaw:cmd in shared R1 storage. This skill polls every 500 ms, executes the command, and writes the response to openclaw:resp. The Creation reads the response within its 30-second timeout window.
Skill command reference
get-location
No parameters required.
Returns:
lat(number) — decimal degrees, positive = Northlon(number) — decimal degrees, positive = Eastname(string) — human-readable location descriptionaccuracy(string) —"gps","ip", or"manual"
get-sat-passes
Parameters:
lat(number) — observer latitudelon(number) — observer longitude
Returns:
passes(array) — each entry contains:name— satellite name (ISS, Starlink, Hubble, Tiangong, NOAA-19)time— pass start time (HH:MM, local)time2— pass end time (HH:MM, local)track— direction (e.g.,"NW → SE")maxAlt— maximum altitude in degrees above horizonmag— approximate visual magnitude (lower = brighter)inMinutes— minutes from now until pass start
Offline behaviour
If OpenClaw is not running or the network is unavailable, the R1 Creation falls back to built-in offline ephemeris approximations:
- Satellite passes: generated from last-cached TLE data or heuristic orbital period estimation. Accurate to ±10 minutes.
- Location: uses the default mid-latitude position (40.0°N, 75.0°W) until a location is supplied.
- All astronomical calculations (moon phase, planet positions, rise/set times) are computed entirely on-device using the built-in ephemeris engine and work fully offline for the current year.
Dark-sky etiquette
This skill does not enable any high-brightness or disruptive LEDs by default. The R1 Creation keeps its LED off during observation sessions. Brief amber pulses (under 1 second) occur only when a new object is identified. Blue pulses occur on satellite alerts. Red is reserved for errors.
Troubleshooting
| Problem | Solution |
|---|---|
get-location returns default coordinates |
Check that OpenClaw is running: openclaw status |
| Satellite passes are inaccurate | Add your N2YO API key or wait for TLE cache refresh (up to 48h) |
| No response within 30 seconds | Verify the skill is enabled: openclaw skills list |
| Location shows city instead of neighbourhood | IP geolocation is city-level only — set manual coordinates for precision |
Privacy
- This skill does not transmit your location to any third party beyond the optional satellite pass API (N2YO).
- If using IP geolocation, your IP is sent to
ipapi.co— their privacy policy applies. - All observation log data stays on the R1 device in local storage.
- No data is retained on your local machine beyond TLE cache files.
04 同仓库更多 Skills
whisper-quiz
WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.
walk-cast
Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).
voice-novel
Local machine skill for VoiceNovel — handles story export to disk.
voice-guide
Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.
voice-draft
Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.
voice-commit
Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.