demoseed

package
v0.13.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package demoseed holds canned data used by graywolf's -demo mode. It exists so a fresh launch can look like a busy real Salt Lake-metro APRS station for screenshots and demo recordings, without depending on a real device DB or live RF. All data here is public APRS information (callsigns + positions broadcast over the air), captured from a real tablet and filtered to a Salt Lake bounding box.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Messages

func Messages() []configstore.Message

Messages returns a canned DM thread between NW5W-8 and KK7GBE-7 so the Messages screen renders a real-looking conversation for screenshots. Timestamps are stamped to now at call time (same reasoning as Stations).

func Packets

func Packets() []packetlog.Entry

Packets returns canned packet-log entries derived from the demo stations, so the dashboard's recent-packets panel renders real-looking traffic instead of "Waiting for packets...". Timestamps are stamped to now at call time (same reasoning as Stations).

func Stations

func Stations() []stationcache.CacheEntry

Stations returns the canned demo stations as cache entries with timestamps stamped to now (offset by a few minutes so they look freshly heard but distinct). They are stamped at call time because stationcache.QueryBBox filters by a now-relative cutoff; stale timestamps would make them invisible on the map.

Types

type Counters

type Counters struct {
	UptimeSeconds int64
	RxFrames      uint64
	TxFrames      uint64
	RxBadFCS      uint64
	IgateGated    uint64
	IgateDownlink uint64
	AudioPeakDBFS float32
	AudioRmsDBFS  float32
}

Counters is the canned dashboard status used by /api/status in demo mode.

func StatusCounters

func StatusCounters() Counters

StatusCounters returns plausible "active station" dashboard values. ~2 days uptime with ~4250 RX frames (roughly 2100 packets/day, a believable rate for a busy metro APRS receiver). TX/iGate are bogus but plausible.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL