-
Notifications
You must be signed in to change notification settings - Fork 10
/
start_docker.sh
74 lines (61 loc) · 2.14 KB
/
start_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# /usr/bin/env bash
#
# Helper script to start up the Wenet Docker image.
#
# This script is intended to be downloaded using wget or otherwise,
# and modified prior to use.
#
# Your station callsign, which will be shown on https://ssdv.habhub.org
# when receiving packets.
# Make sure there is no space between the = and your callsign.
MYCALL=CHANGEME
# Receive Frequency (Hz)
# The normal receive frequency used by Project Horus is 443.5 MHz
RXFREQ=443500000
# RTLSDR Device ID. Leave this at 0 if you don't want to use a particular device
DEVICE=0
# Receiver Gain. Set this to 0 to use automatic gain control, otherwise if running a
# preamplifier, you may want to experiment with lower gain settings to optimize
# your receiver setup.
# You can find what gain range is valid for your RTLSDR by running: rtl_test
# A very rough figure that may work if you are running a preamp with ~20 dB gain is
# 32.8 - your performance may vary!
GAIN=0
# Bias Tee Enable (1) or Disable (0)
# Enable this is you are intending on powering a preamplifer via coax from your RTLSDR
BIAS=0
# Baud Rate & FSK Demod Oversampling Settings
#
# Default: 115177 baud 8x oversampling (Default using a RPi Zero W's UART)
# Other parameters which *may* work, but are un-tested:
# 9600 baud, 100x oversampling
# 4800 baud, 200x oversampling
#
BAUD_RATE=115177
OVERSAMPLING=8
# UDP Payload Summary
# Default: 0 (disabled)
# Set this to a valid UDP port (55673 typically) to emit payload summary packets for use
# with Chasemapper
UDP_PORT=0
# Stop and remove any existing wenet instances
echo "Stopping/Removing any existing Wenet instances..."
docker stop wenet || true && docker rm wenet || true
# Start the container!
echo "Starting new Wenet instance..."
docker run -d \
--name wenet \
-e MYCALL=$MYCALL \
-e RXFREQ=$RXFREQ \
-e GAIN=$GAIN \
-e BIAS=$BIAS \
-e BAUD_RATE=$BAUD_RATE \
-e OVERSAMPLING=$OVERSAMPLING \
-e DEVICE=$DEVICE \
-e UDP_PORT=$UDP_PORT \
-v ~/wenet/rx_images/:/opt/wenet/rx_images/ \
--device /dev/bus/usb \
-p 5003:5003 \
--restart="always" \
ghcr.io/projecthorus/wenet:latest
echo "Navigate to http://localhost:5003/ in your web browser to see the Wenet interface!"