lardoon

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Lardoon

Lardoon is a web repository that provides a clean interface for listing, searching, and downloading ACMI files. Lardoon is intended to be used alongside TacView and jambon to automatically record and import server-side TacView recordings.

Web UI

Lardoon comes with a web UI that displays a list of all imported replays, and allows you to view individual flight tracks within those replays. Additionally Lardoon can quickly trim TacView files to only the specific portion related to a given flight, reducing ACMI file/download size greatly.

Example

Example Setup

Lets explore an example lightweight setup that allows you to automatically record and import ACMIs remotely via the TacView realtime protocol.

Recording

We can use jambon to automatically record TacViews remotely, simply by running a process somewhere like so:

$ while :; do jambon record --server coldwar.hoggitworld.com --output saw-$(date +"%m-%d-%y-%H-%M").acmi; sleep 30; done 

This doesn't account for some hiccups like network or server outages, but will give you a good starting point.

Importing

Lardoon requires ACMI files to be processed to extract metadata. This can be done iteratively on files while they are being recorded, so the following is enough:

$ while :; do lardoon import -p /mnt/bigdata/lardoon/; sleep 300; done
Pruning

If you decide to delete files from disk you will need to run a prune:

lardoon prune --no-dry-run

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportFile

func ImportFile(target string) error

func ImportPath

func ImportPath(path string) error

func InitDatabase

func InitDatabase(dbPath string) error

func PruneReplays

func PruneReplays(dryRun bool) error

Types

type HTTPServer

type HTTPServer struct {
}

func (*HTTPServer) Run

func (h *HTTPServer) Run(bind string) error

type Replay

type Replay struct {
	Id            int    `json:"id"`
	Path          string `json:"path"`
	ReferenceTime string `json:"reference_time"`
	RecordingTime string `json:"recording_time"`
	Title         string `json:"title"`
	DataSource    string `json:"data_source"`
	DataRecorder  string `json:"data_recorder"`
	Duration      *int   `json:"duration"`
	Size          int    `json:"size"`
}

type ReplayObject

type ReplayObject struct {
	Id            int    `json:"id"`
	ReplayId      int    `json:"replay_id"`
	Types         string `json:"types"`
	Name          string `json:"name"`
	Pilot         string `json:"pilot"`
	CreatedOffset int    `json:"created_offset"`
	DeletedOffset int    `json:"deleted_offset"`
}

type ReplayWithObjects

type ReplayWithObjects struct {
	Replay

	Objects []*ReplayObject `json:"objects"`
}

Directories

Path Synopsis
cmd
lardoon command

Jump to

Keyboard shortcuts

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