Files
venus/venus-html5-app/bin/deploy-multiple.sh
dev 9756538f16 Initial commit: Venus OS boat addons monorepo
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
2026-03-16 17:04:16 +00:00

50 lines
1004 B
Bash
Executable File

#!/bin/zsh
BUILD=false
REBOOT=false
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-b|--build)
BUILD=true
shift # past argument
;;
esac
case $key in
-r|--reboot)
REBOOT=true
shift # past argument
;;
esac
done
if $BUILD; then
echo "Building app.."
npm run build
fi
# Source: https://gitlab.elnino.tech/elnino/snooze/victron-mfd/-/wikis/Home
# Simrad MFD: 172.25.9.234
# Raymarine MFD: 172.25.9.64
# Furuno MFD: 172.25.9.35
# Garmin MFD: 172.25.9.217
# Garmin 2 MFD: 172.25.9.122
# Associative array
declare -A MFDs
MFDs[Simrad]="172.25.9.234"
MFDs[Raymarine]="172.25.9.64"
MFDs[Furuno]="172.25.9.35"
MFDs[Garmin]="172.25.9.217"
MFDs[Garmin2]="172.25.9.122"
# Call deploy.sh for each MFD in a loop
for MFD in "${MFDs[@]}"; do
echo "Deploying to $MFD..."
bin/deploy.sh ${MFD}
# Reboot device if requested
if $REBOOT; then
echo "Rebooting $MFD..."
ssh root@${MFD} "reboot"
fi
done