I am trying to create new local settings to be stored in the persistent configuration file, these setting will be for additional sensors I have added dbus services for.
I am trying to follow the instructions in /opt/victronenergy/localsettings/localsettings.py which say
## Dbus method AddSetting. # Add a new setting by the given parameters. The object-path must be a group. # Example 1: dbus /Settings AddSetting Groupname Settingname 100 i 0 100 # Example 2: dbus /Settings AddSetting Groupname Settingname '/home/root' s 0 0 # When the new setting is of type string the minimum and maximum will be ignored.
When I try "dbus /Settings AddSetting Temperature Offset 1 i 0 10"
I get the message:
"org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead"
If I try: "dbus -y /Settings AddSetting Temperature Offset 1 i 0 10"
I get:
ValueError: Invalid bus name '/Settings': contains invalid character '/'
What is the correct way to create a new permanent setting?