Organizes 11 projects for Cerbo GX/Venus OS into a single repository: - axiom-nmea: Raymarine LightHouse protocol decoder - dbus-generator-ramp: Generator current ramp controller - dbus-lightning: Blitzortung lightning monitor - dbus-meteoblue-forecast: Meteoblue weather forecast - dbus-no-foreign-land: noforeignland.com tracking - dbus-tides: Tide prediction from depth + harmonics - dbus-vrm-history: VRM cloud history proxy - dbus-windy-station: Windy.com weather upload - mfd-custom-app: MFD app deployment package - venus-html5-app: Custom Victron HTML5 app fork - watermaker: Watermaker PLC control UI Adds root README, .gitignore, project template, and per-project .gitignore files. Sensitive config files excluded via .gitignore with .example templates provided. Made-with: Cursor
47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# Download and install NFL Tracking for Venus OS
|
|
# Run: wget -O /tmp/install.sh https://raw.githubusercontent.com/.../download.sh && bash /tmp/install.sh
|
|
|
|
set -e
|
|
REPO_URL="${REPO_URL:-https://github.com/noforeignland/nfl-signalk}"
|
|
BRANCH="${BRANCH:-main}"
|
|
INSTALL_DIR="/data/dbus-no-foreign-land"
|
|
TMP_DIR="/tmp/nfl-tracking-install"
|
|
|
|
echo "Downloading NFL Tracking..."
|
|
|
|
mkdir -p "${TMP_DIR}"
|
|
cd "${TMP_DIR}"
|
|
|
|
# Fetch the venus-nfl-tracking folder from the repo
|
|
if command -v wget >/dev/null 2>&1; then
|
|
wget -q -O venus-nfl-tracking.tar.gz "${REPO_URL}/archive/refs/heads/${BRANCH}.tar.gz" || {
|
|
echo "Failed to download. Check REPO_URL and network."
|
|
exit 1
|
|
}
|
|
tar xzf venus-nfl-tracking.tar.gz
|
|
SRC="${TMP_DIR}/nfl-signalk-${BRANCH}/venus-nfl-tracking"
|
|
elif command -v curl >/dev/null 2>&1; then
|
|
curl -sL -o venus-nfl-tracking.tar.gz "${REPO_URL}/archive/refs/heads/${BRANCH}.tar.gz" || {
|
|
echo "Failed to download. Check REPO_URL and network."
|
|
exit 1
|
|
}
|
|
tar xzf venus-nfl-tracking.tar.gz
|
|
SRC="${TMP_DIR}/nfl-signalk-${BRANCH}/venus-nfl-tracking"
|
|
else
|
|
echo "Need wget or curl"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d "${SRC}" ]; then
|
|
echo "Source not found at ${SRC}"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p "${INSTALL_DIR}"
|
|
cp -r "${SRC}"/* "${INSTALL_DIR}/"
|
|
rm -rf "${TMP_DIR}"
|
|
|
|
echo "Running install.sh..."
|
|
bash "${INSTALL_DIR}/install.sh"
|