Created
July 12, 2024 08:10
-
-
Save smotesko/5ec865eb3cc8edac82d619c5af8af8e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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