Skip to content

Instantly share code, notes, and snippets.

@smotesko
Created July 12, 2024 08:10
Show Gist options
  • Save smotesko/5ec865eb3cc8edac82d619c5af8af8e1 to your computer and use it in GitHub Desktop.
Save smotesko/5ec865eb3cc8edac82d619c5af8af8e1 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z "$1" ]; then
echo -n "Charge current limit is "
dbus -y com.victronenergy.settings /Settings/SystemSetup/MaxChargeCurrent GetValue
exit 0
fi
dbus-send --system --type=method_call --dest=com.victronenergy.settings /Settings/SystemSetup/MaxChargeCurrent com.victronenergy.BusItem.SetValue "int32:$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment