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
33 lines
988 B
Bash
Executable File
33 lines
988 B
Bash
Executable File
#!/bin/bash
|
|
# Uninstall Windy Station for Venus OS
|
|
|
|
INSTALL_DIR="/data/dbus-windy-station"
|
|
SERVICE_LINK="dbus-windy-station"
|
|
|
|
# Find service directory
|
|
if [ -d "/service" ] && [ ! -L "/service" ]; then
|
|
SERVICE_DIR="/service"
|
|
elif [ -d "/opt/victronenergy/service" ]; then
|
|
SERVICE_DIR="/opt/victronenergy/service"
|
|
else
|
|
SERVICE_DIR="/opt/victronenergy/service"
|
|
fi
|
|
|
|
echo "Uninstalling Windy Station..."
|
|
|
|
# Remove GUI modifications first
|
|
if [ -f "$INSTALL_DIR/install_gui.sh" ]; then
|
|
bash "$INSTALL_DIR/install_gui.sh" --remove
|
|
fi
|
|
|
|
# Stop and remove service
|
|
if [ -L "$SERVICE_DIR/$SERVICE_LINK" ] || [ -e "$SERVICE_DIR/$SERVICE_LINK" ]; then
|
|
echo "Stopping and removing service..."
|
|
svc -d "$SERVICE_DIR/$SERVICE_LINK" 2>/dev/null || true
|
|
rm -f "$SERVICE_DIR/$SERVICE_LINK"
|
|
rm -rf "$SERVICE_DIR/$SERVICE_LINK"
|
|
fi
|
|
|
|
echo "Service removed. Config and data in $INSTALL_DIR are preserved."
|
|
echo "To remove everything: rm -rf $INSTALL_DIR /var/log/dbus-windy-station"
|