journey-log
OpenClaw skill for JourneyLog. Handles IP-geolocation lookups, camera capture requests, single-entry exports, and full-trip travelogue compilation. All journal content lives on the R1 device (creationStorage); this skill is only active when you use SCENE capture or the export feature.
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- journey-log
- author
- rabbit-r1-skillz
- version
- 1.0.0
- description
- OpenClaw skill for JourneyLog. Handles IP-geolocation lookups, camera capture requests, single-entry exports, and full-trip travelogue compilation. All journal content lives on the R1 device (creationStorage); this skill is only active when you use SCENE capture or the export feature.
02 资源文件 3
- 资产文件card.jpg22.1 KB
- 资产文件icon.png10.0 KB
- 参考文档index.html61.2 KB
03 SKILL.md 正文
JourneyLog — OpenClaw Skill
JourneyLog runs entirely on-device. The R1 handles recording, AI prose-shaping (via the built-in LLM), and local storage. The OpenClaw skill is optional and only needed for three features:
| Feature | Requires OpenClaw? |
|---|---|
| Voice note capture (MOMENT, REFLECTION, ENCOUNTER) | No |
| AI prose shaping + travelogue synthesis | No (on-device LLM) |
| Location lookup (IP geolocation) | Yes |
| Camera image capture (SCENE type) | Yes |
| Export single entry as Markdown | Yes |
| Export full travelogue as Markdown | Yes |
What this skill does
| Command | Description |
|---|---|
get-location |
Returns a readable location name via IP geolocation |
capture-image |
Triggers the device camera (or a local webcam), saves the image, returns the path |
export-entry |
Writes a single journal entry as a Markdown file to a local folder |
export-travelogue |
Writes the full trip log — all entries and AI-written travelogue passages — as one Markdown file |
Prerequisites
- OpenClaw installed and running on your machine. See
clawhound/README.md. - Node.js 18+.
- (Optional) A local webcam accessible via the Node
canvas+mediadevicesapproach, or a dedicated capture script at~/.openclaw/skills/journey-log/capture.sh.
Setup
1. Install the skill
cp -r path/to/rabbit-r1-skillz/journey-log ~/.openclaw/skills/journey-log
Or add journey-log to your openclaw.config.json skill list if your installation
supports auto-discovery.
2. Configure
Create ~/.openclaw/skills/journey-log/config.json:
{
"journalDir": "~/Documents/JourneyLog",
"imageDir": "~/Documents/JourneyLog/images",
"geoEndpoint": "https://ipapi.co/json/",
"captureScript": ""
}
journalDir— where Markdown exports are saved (auto-created).imageDir— where captured scene images are saved (auto-created).geoEndpoint— any IP-geolocation JSON endpoint returning acityorregionfield. Default usesipapi.co(free tier, 1 000 req/day). Alternatives:ip-api.com/json,ipinfo.io/json.captureScript— optional path to a shell script that captures an image and writes the path to stdout. Leave empty to skip actual capture.
3. Skill handler (Node.js)
Create ~/.openclaw/skills/journey-log/index.js:
const fs = require('fs');
const path = require('path');
const os = require('os');
const https = require('https');
const http = require('http');
const { execFile } = require('child_process');
const CFG_PATH = path.join(__dirname, 'config.json');
let cfg = {
journalDir: '~/Documents/JourneyLog',
imageDir: '~/Documents/JourneyLog/images',
geoEndpoint: 'https://ipapi.co/json/',
captureScript: '',
};
try { Object.assign(cfg, JSON.parse(fs.readFileSync(CFG_PATH, 'utf8'))); } catch (_) {}
const journalDir = cfg.journalDir.replace('~', os.homedir());
const imageDir = cfg.imageDir.replace('~', os.homedir());
fs.mkdirSync(journalDir, { recursive: true });
fs.mkdirSync(imageDir, { recursive: true });
function fetchJson(url) {
return new Promise((resolve) => {
const mod = url.startsWith('https') ? https : http;
const req = mod.get(url, { timeout: 5000 }, (res) => {
let data = '';
res.on('data', c => { data += c; });
res.on('end', () => {
try { resolve(JSON.parse(data)); } catch (_) { resolve({}); }
});
});
req.on('error', () => resolve({}));
req.on('timeout', () => { req.destroy(); resolve({}); });
});
}
module.exports = async function handleCommand(skill, command, params) {
if (skill !== 'journey-log') return null;
/* ── get-location ─────────────────────────────────────── */
if (command === 'get-location') {
const geo = await fetchJson(cfg.geoEndpoint);
const parts = [geo.city, geo.region, geo.country_name].filter(Boolean);
const location = parts.length > 0 ? parts.slice(0, 2).join(', ') : '';
return { location };
}
/* ── capture-image ────────────────────────────────────── */
if (command === 'capture-image') {
const ts = params.ts || Date.now();
const filename = `scene-${ts}.jpg`;
const filepath = path.join(imageDir, filename);
// If a capture script is configured, run it
if (cfg.captureScript) {
await new Promise((resolve) => {
execFile(cfg.captureScript, [filepath], { timeout: 15000 }, (err) => {
resolve(); // non-fatal — proceed even if capture fails
});
});
}
// Whether or not the file exists, return the intended path
// so JourneyLog can embed the image reference in the export
const geo = await fetchJson(cfg.geoEndpoint);
const locParts = [geo.city, geo.region].filter(Boolean);
return {
path: filepath,
location: locParts.join(', '),
};
}
/* ── export-entry ─────────────────────────────────────── */
if (command === 'export-entry') {
const { filename, content } = params;
if (!filename || !content) return { saved: false, error: 'Missing filename or content' };
const filepath = path.join(journalDir, filename);
fs.writeFileSync(filepath, content, 'utf8');
return { saved: true, path: filepath };
}
/* ── export-travelogue ────────────────────────────────── */
if (command === 'export-travelogue') {
const { filename, content } = params;
if (!filename || !content) return { saved: false, error: 'Missing filename or content' };
const filepath = path.join(journalDir, filename);
fs.writeFileSync(filepath, content, 'utf8');
return { saved: true, path: filepath };
}
return null;
};
4. Restart OpenClaw
openclaw restart
How the SCENE entry type works
- User holds PTT from idle — JourneyLog sends the
capture-imagecommand to OpenClaw. - OpenClaw runs your
captureScript(if configured) and looks up location via IP geolocation. - The image path and location are returned to JourneyLog.
- JourneyLog starts recording the voice note.
- After recording, the transcript and image path are bundled into one entry.
- The AI prose-shapes the voice note into a literary scene description (on-device LLM).
- The image path is embedded in all Markdown exports.
How AI travelogue synthesis works
After every 4 new entries, JourneyLog automatically:
- Gathers the un-synthesized entries.
- Sends them to the R1's built-in LLM (
useLLM: true) with a prompt asking for a literary travelogue paragraph in the style of a published travel memoir. - Saves the resulting passage alongside the entries in
creationStorage. - Blinks the teal LED to signal completion.
No external service, no network call — the synthesis runs entirely on the R1.
Export file structure
Single entry
entry-2026-06-14-venice-station.md
---
title: "SCENE @ Venice Santa Lucia Station"
date: 2026-06-14T10:23:11.000Z
type: SCENE
location: "Venice, Veneto"
hasImage: true
---
# SCENE — Venice Santa Lucia Station
*6/14/2026, 10:23 AM*
## Travelogue
The station smelled of coffee and rain. The tiles caught the afternoon
light in ways that felt deliberate, as if the building itself were trying
to slow arrivals down.
## Raw Note
so there was this huge hall with marble floors and the light was coming
in from these high windows and it smelled like espresso and wet stone
*Scene image: /Users/you/Documents/JourneyLog/images/scene-1718360591000.jpg*
Full travelogue
travelogue-2026-06-14.md
---
title: "JourneyLog — Full Travelogue"
exported: 2026-06-14T18:00:00.000Z
entries: 12
passages: 3
---
# Travel Journal
## Travelogue Passages
### Passage 1 (Jun 12 – Jun 13)
We arrived in rain, the kind that doesn't announce itself. The market at
Rialto was half-shuttered, vendors folding canvas over pyramids of late
tomatoes, and a boy with a red umbrella stood perfectly still in the middle
of the bridge as if posing for a painter who hadn't shown up yet...
### Passage 2 (Jun 14)
...
## Entry Transcripts
### MOMENT — Rialto Bridge
*Jun 14, 2026, 9:04 AM*
**Travelogue passage:**
A man selling masks gestured at the canal below as if introducing us.
**Raw voice note:**
there was a mask seller on the bridge and he kind of waved at the canal
like he was proud of it or something
Camera capture setup (optional)
If you have a webcam or want to capture from the R1's camera through OpenClaw,
create a small capture script. Example using ffmpeg:
#!/bin/sh
# ~/.openclaw/skills/journey-log/capture.sh
# $1 = output file path
ffmpeg -f avfoundation -i "0" -vframes 1 "$1" -y -loglevel quiet
Then set "captureScript": "~/.openclaw/skills/journey-log/capture.sh" in config.json.
On Linux with a USB webcam:
#!/bin/sh
ffmpeg -f v4l2 -i /dev/video0 -vframes 1 "$1" -y -loglevel quiet
IP geolocation
The default https://ipapi.co/json/ returns city and region with no API key
required (1 000 requests/day free). For heavier use, swap to https://ipinfo.io/json
(50 000/month free with registration) or a self-hosted solution.
The location string is used in the app's header display, in exports, and as context for the AI prose prompt.
Privacy
- All journal content is stored locally on the R1 device in
creationStorage. - No content leaves the device except when you explicitly trigger an export.
- The only outbound network call this skill makes is to the geolocation endpoint (IP address only — no content, no text).
- Exported Markdown files are written to your own machine via OpenClaw's local file bridge. No cloud upload.
Troubleshooting
| Symptom | Cause / Fix |
|---|---|
| Location shows "Location unavailable" | OpenClaw not running, or no internet — location is optional |
| SCENE capture produces no image | captureScript not configured or ffmpeg not installed |
| Export fails | OpenClaw not running — start with openclaw start |
| Travelogue never generates | Need 4+ entries without a synthesis — check stat-unsynth counter |
| AI prose is empty | R1 LLM timed out — ensure the device is not in low-power mode |
creationStorage access denied |
Running outside R1 WebView — export won't work in a browser tab |
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.