Skip to content

Update vector.yaml #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

####################################################################################################
################################## Stage: builder ##################################################
FROM balenalib/"$BUILD_BOARD"-debian-python:bullseye-build-20230530 AS builder

Check warning on line 7 in Dockerfile

GitHub Actions / main (raspberrypi3-64, arm64, v8, linux/arm64/v8)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG balenalib/"$BUILD_BOARD"-debian-python:bullseye-build-20230530 results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 7 in Dockerfile

GitHub Actions / main (generic-amd64, amd64, linux/amd64)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG balenalib/"$BUILD_BOARD"-debian-python:bullseye-build-20230530 results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

ARG READSB_COMMIT=4f7a7f18c5f88ed57145c04038a04a10d48f8638
ARG TEMP_INSTALL="git libusb-1.0-0-dev libncurses-dev build-essential librtlsdr-dev debhelper zlib1g-dev libzstd-dev pkg-config libzstd1"
@@ -26,7 +26,7 @@

####################################################################################################
################################### Stage: runner ##################################################
FROM balenalib/"$BUILD_BOARD"-debian-python:bullseye-run-20230530 AS runner

Check warning on line 29 in Dockerfile

GitHub Actions / main (raspberrypi3-64, arm64, v8, linux/arm64/v8)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG balenalib/"$BUILD_BOARD"-debian-python:bullseye-run-20230530 results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 29 in Dockerfile

GitHub Actions / main (generic-amd64, amd64, linux/amd64)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG balenalib/"$BUILD_BOARD"-debian-python:bullseye-run-20230530 results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

EXPOSE 30154

@@ -40,7 +40,7 @@
ENV DUMP1090_ADAPTIVE_MIN_GAIN=""
ENV DUMP1090_ADAPTIVE_MAX_GAIN=""
ENV DUMP1090_SLOW_CPU=""
ENV WINGBITS_CONFIG_VERSION=0.0.5
ENV WINGBITS_CONFIG_VERSION=0.0.7

ARG PERM_INSTALL="wget curl gettext-base tini ncurses-bin zlib1g lighttpd gettext-base libusb-1.0-0 librtlsdr0 rtl-sdr libncurses6 jq"

40 changes: 24 additions & 16 deletions vector.yaml
Original file line number Diff line number Diff line change
@@ -14,27 +14,35 @@ transforms:
drop_on_abort: true
source: |
read_at, _ = .now * 1000
new_event.read_at = to_int!(read_at)
new_event.processed_at, _ = to_unix_timestamp(.timestamp, unit: "milliseconds")
new_event.lat = .lat
new_event.lon = .lon
new_event.hex = .hex
new_event.flight = if is_null(.flight) { "" } else { .flight }
new_event.device_id = if is_null("${DEVICE_ID}") { "not set" } else { "${DEVICE_ID}" }
new_event.true_heading = if is_null(.track) { 0.0 } else { .track }
new_event.alt_baro = .alt_baro
new_event.category = if is_null(.category) { "" } else { .category }
new_event.alt_geom = .alt_geom
new_event.ab = .alt_baro
new_event.ag = .alt_geom
new_event.c = .category
new_event.d = if is_null("${DEVICE_ID}") { "not set" } else { "${DEVICE_ID}" }
new_event.f = .flight
new_event.gr = .geom_rate
new_event.gs = .gs
new_event.geom_rate = .geom_rate
new_event.on_ground = (.alt_baro == "ground")
new_event.squawk = .squawk
new_event.rssi = .rssi
new_event.h = .hex
new_event.la = .lat
new_event.lo = .lon
new_event.ra = to_int!(read_at)
new_event.rs = .rssi
new_event.sq = .squawk
new_event.th = .true_heading
new_event.tr = .track
new_event.n = .nic
new_event.nb = .nic_baro
new_event.np = .nac_p
new_event.nv = .nac_v
new_event.gv = .gva
new_event.s = .sil
new_event.st = .sil_type
new_event.rc = .rc
new_event.v = .version
. = new_event

sinks:
vector:
type: "vector"
inputs:
- "remapped"
address: "feed.wingbits.com:6000"
address: "feed.wingbits.com:6001"