Skip to content
log-viewer logo

Log Viewer for WaveCap-SDR

log-viewer

View and analyze WaveCap-SDR server logs, debug output, and error messages. Use when troubleshooting server issues, debugging API errors, monitoring SDR device status, or investigating capture/channel problems.

SKILL.md

Full skill instructions

Log Viewer for WaveCap-SDR

This skill provides tools to view, search, and analyze logs from the WaveCap-SDR server including API errors, SDR device messages, and debug output.

When to Use This Skill

Use this skill when:

  • Troubleshooting API errors (500, 4xx responses)
  • Investigating SDR device connection issues
  • Debugging capture or channel problems
  • Monitoring server health and status
  • Reviewing recent API requests
  • Checking for SoapySDR driver messages

Log Sources

SourceDescriptionLocation
Server stdoutAPI requests, startup messagesTerminal/​console
Server stderrErrors, warnings, SoapySDRTerminal/​console
Debug logDetailed error tracebacks/​tmp/​wavecapsdr_error.log
SoapySDRSDR driver messagesEmbedded in stderr

Usage Instructions

Step 1: View Recent Error Logs

Check the debug error log for recent exceptions:

cat /​tmp/​wavecapsdr_error.log 2>/​dev/​null || echo "No error log found"

Or use the helper script:

PYTHONPATH=backend backend/​.venv/​bin/​python .claude/​skills/​log-viewer/​view_logs.py --errors

Step 2: Get Server Status

Check if the server is running and get process info:

PYTHONPATH=backend backend/​.venv/​bin/​python .claude/​skills/​log-viewer/​view_logs.py --status

Step 3: View API Request History

Get recent API requests from server logs (if available):

PYTHONPATH=backend backend/​.venv/​bin/​python .claude/​skills/​log-viewer/​view_logs.py --requests

Step 4: Check SDR Device Logs

View SoapySDR-related messages:

PYTHONPATH=backend backend/​.venv/​bin/​python .claude/​skills/​log-viewer/​view_logs.py --sdr

Step 5: Test API Health

Verify API is responding and check health endpoint:

curl -s http://127.0.0.1:8087/​api/​v1/​health | jq

Helper Script Reference

# View all available log info
python view_logs.py --all

# View only errors
python view_logs.py --errors

# View server status
python view_logs.py --status

# View recent API requests
python view_logs.py --requests

# View SDR device logs
python view_logs.py --sdr

# Specify custom port
python view_logs.py --port 8087 --all

# Filter by time (last N minutes)
python view_logs.py --errors --minutes 5

Common Log Patterns

Successful API Request

INFO:     127.0.0.1:12345 - "GET /​api/​v1/​captures HTTP/​1.1" 200 OK

Failed API Request

INFO:     127.0.0.1:12345 - "PATCH /​api/​v1/​captures/​c1 HTTP/​1.1" 500 Internal Server Error

SDR Device Message

[SOAPY] Using stream format: CF32
[DEBUG] Device RTLSDR: Available antennas: ('RX',)

Error Traceback (in /​tmp/​wavecapsdr_error.log)

--- 2025-11-22 12:34:56.789 ---
[ERROR] update_capture failed: Device timeout
Traceback (most recent call last):
  ...

API Endpoints for Log Analysis

GET /​api/​v1/​health

Returns server health status.

{
  "status": "healthy",
  "captures": 2,
  "channels": 2,
  "devices": 3
}

GET /​api/​v1/​captures

Returns all captures with their current state and any error messages.

[
  {
    "id": "c1",
    "state": "running",
    "errorMessage": null
  }
]

GET /​api/​v1/​channels/​{chan_id}/​metrics/​extended

Returns detailed channel metrics including stream health.

Troubleshooting Common Issues

Issue: API Returns 500 Internal Server Error

Steps:

  1. Check /​tmp/​wavecapsdr_error.log for traceback
  2. Look for device-related errors in the log
  3. Verify SDR device is connected: SoapySDRUtil --find
  4. Check server stderr for SoapySDR errors

Issue: Capture Stuck in "starting" State

Steps:

  1. Check for SDR driver errors in logs
  2. Verify device isn't in use by another process
  3. Look for timeout messages
  4. Try restarting the capture

Issue: No Audio / Channel Not Working

Steps:

  1. Check channel state via API
  2. Look for demodulator errors in logs
  3. Verify capture is running
  4. Check signal metrics (RSSI, SNR)

Files in This Skill

  • SKILL.md: This file - instructions for using the skill
  • view_logs.py: Helper script for viewing and analyzing logs

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View